# anti-slop

Adopt this skill: https://proskills.md/skills/other/codeyousef-skills-md-skills-anti-slop

Page: https://proskills.md/skills/other/codeyousef-skills-md-skills-anti-slop
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: skills/anti-slop/SKILL.md
size: 1525
sha: cf7d3d9097a95f4e15681a699049cd3d547efef7
upstream: https://github.com/codeyousef/skills.md/blob/main/skills/anti-slop/SKILL.md

```text
---
name: anti-slop
description: Review, improve, or configure code to reject low-evidence and low-signal implementation patterns in any programming language. Use when a user asks for anti-slop review, evidence-first code generation, safer boundary handling, or native anti-slop lint setup and verification.
---

# Anti-Slop

Apply evidence-first engineering without inventing language support.

## Workflow

1. Read repository instructions and inspect the working tree. Preserve unrelated work.
2. Identify source languages from manifests and owned source files.
3. Read [core principles](references/core-principles.md).
4. For every matching adapter manifest in `references/adapters/`, read its linked guidance and follow its native-check contract.
5. For languages without an executable adapter, perform advisory review using the core principles. State that native enforcement is unavailable.
6. Report findings with concrete evidence, a safer alternative, native-check output when run, and anything not verified.

## Enforcement rules

- Treat native-check output and exit status as authoritative. Do not parse or normalize diagnostics unless an adapter explicitly requires it.
- Do not add suppressions, weaken rules, or modify application code unless the user asks for remediation.
- Do not substitute text-pattern scans for a missing native adapter.
- Preserve each source file's language, conventions, and comments.
- Read [the adapter contract](references/adapter-contract.md) before adding or changing an adapter.

```

## File: skills/anti-slop/references/adapter-contract.md
size: 776
sha: 48c0910a7b72670d0ed7e4a4db2b161bc257a22f
upstream: https://github.com/codeyousef/skills.md/blob/main/skills/anti-slop/references/adapter-contract.md

```text
# Adapter contract

Every adapter is a JSON file in `references/adapters/` conforming to
`adapter.schema.json`.

Required fields:

- `schemaVersion`: currently `1`.
- `id` and `displayName`: stable language identity.
- `enforcement`: `native` or `advisory`.
- `detection.manifests` and `detection.extensions`: non-empty language signals.
- `guidance`: a path relative to the adapter file.

Native adapters also require `check.argv` and `check.cwd`. `argv` must contain
the exact documented command and `cwd` must be `project-root` unless the
adapter documents another validated policy.

Add fixtures for manifest detection, extension-only detection, unsupported
workspaces, missing native tooling, successful checks, and failing checks before
advertising native enforcement.

```

## File: skills/anti-slop/references/adapter.schema.json
size: 1036
sha: be6380965808f42f120e04821b457e7382111130
upstream: https://github.com/codeyousef/skills.md/blob/main/skills/anti-slop/references/adapter.schema.json

```text
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Anti-Slop adapter",
  "type": "object",
  "required": ["schemaVersion", "id", "displayName", "enforcement", "detection", "guidance"],
  "properties": {
    "schemaVersion": { "const": 1 },
    "id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$" },
    "displayName": { "type": "string", "minLength": 1 },
    "enforcement": { "enum": ["native", "advisory"] },
    "detection": {
      "type": "object",
      "required": ["manifests", "extensions"],
      "properties": {
        "manifests": { "type": "array", "minItems": 1, "items": { "type": "string" } },
        "extensions": { "type": "array", "minItems": 1, "items": { "type": "string" } }
      }
    },
    "check": {
      "type": "object",
      "required": ["argv", "cwd"],
      "properties": {
        "argv": { "type": "array", "minItems": 1, "items": { "type": "string" } },
        "cwd": { "type": "string" }
      }
    },
    "guidance": { "type": "string", "minLength": 1 }
  }
}

```

## File: skills/anti-slop/references/adapters/seen.json
size: 288
sha: a1b7921019f08f179ccd7225d173fcbe6193316d
upstream: https://github.com/codeyousef/skills.md/blob/main/skills/anti-slop/references/adapters/seen.json

```text
{
  "schemaVersion": 1,
  "id": "seen",
  "displayName": "Seen",
  "enforcement": "native",
  "detection": {
    "manifests": ["Seen.toml"],
    "extensions": [".seen"]
  },
  "check": {
    "argv": ["seen", "lint"],
    "cwd": "project-root"
  },
  "guidance": "../languages/seen.md"
}

```

## File: skills/anti-slop/references/core-principles.md
size: 1317
sha: 416aca23c7de7b915aab00fb9256cb57f3039493
upstream: https://github.com/codeyousef/skills.md/blob/main/skills/anti-slop/references/core-principles.md

```text
# Core anti-slop principles

Use these principles for every language. A language adapter may provide more
specific native enforcement, but it must not contradict them.

## Preserve evidence

- Keep known values, keys, and types precise instead of widening them and later
  asserting precision back.
- Prefer named domain contracts over shapeless containers and catch-all values.
- Make assumptions explicit where the language cannot prove them.

## Validate at boundaries

- Parse or validate untrusted input at the boundary, then pass typed values
  inward.
- Preserve failure context rather than converting errors into speculative
  defaults.
- Prefer explicit capability and ownership boundaries to ambient access.

## Make risky operations reviewable

- Use static calls and explicit dependencies when they are available.
- Keep unsafe, reflective, dynamic, or foreign-function transitions narrow.
- Document the checked invariant immediately beside a necessary unsafe step.
- Prefer real dependency seams over module-wide replacement or hidden global
  behavior.

## Review output

For each finding, identify the evidence that is missing or erased, explain the
risk, and propose the smallest behavior-preserving repair. Do not report a
style preference as an anti-slop finding without a concrete evidence loss.

```

## File: skills/anti-slop/references/languages/seen.md
size: 912
sha: e23953096c6bde8dbe52befc0bc3c32b8832d233
upstream: https://github.com/codeyousef/skills.md/blob/main/skills/anti-slop/references/languages/seen.md

```text
# Seen adapter

Use this adapter when the repository contains `Seen.toml` or owned `.seen`
source files.

1. Resolve the intended `seen` executable. Prefer the project-selected compiler
   and record `seen --version`.
2. Run top-level `seen --help` and confirm that it exposes `lint`. Do not assume
   subcommand flags, profiles, JSON output, or a configuration format.
3. Find the nearest `Seen.toml`; otherwise use the selected source directory as
   the project root.
4. Run exactly `seen lint` at that root. Preserve its output and exit status.
5. Use the core principles to explain findings. Preserve multilingual Seen
   keywords and do not replace native linting with English-token searches.

If `seen` or `seen lint` is unavailable, report the missing prerequisite and
perform advisory review only. Do not modify Seen source, lint configuration, or
compiler code unless the user explicitly requests it.

```

## File: skills/anti-slop/agents/openai.yaml
size: 222
sha: d901b9b65e32277322d5d5dfe2988ce7bd87e753
upstream: https://github.com/codeyousef/skills.md/blob/main/skills/anti-slop/agents/openai.yaml

```text
interface:
  display_name: "Anti-Slop"
  short_description: "Evidence-first code review across languages"
  default_prompt: "Use $anti-slop to review this repository for low-evidence code and run supported native checks."
```

## File: README.md
upstream: https://github.com/codeyousef/skills.md/blob/main/README.md

````text
# SKILLS.md

A small, reusable collection of agent skills. Each skill is self-contained in
`skills/<name>/` and is listed in the root [catalog](SKILLS.md).

## Install

Use a compatible skill manager to install an individual skill from this
repository. For managers supporting the `skills` CLI convention:

```bash
npx skills add codeyousef/SKILLS.md --skill anti-slop
```

Manual installation is also supported: copy `skills/anti-slop` into the
consumer's skill directory. Target repositories do not need Node merely to use
the installed skill; Node is used only for this repository's development checks.

## Development

```bash
npm run check
```

Add a skill under `skills/<name>/`, register it in `SKILLS.md`, and keep its
language-specific material isolated within that skill.
````
