agentleFS
dewdaddewdad/slop-gate/SKILL.md

slop-gate

Skill0 starsChanged 4 months agoMITView on GitHub

Deterministic anti-slop quality gate for agent-generated code and docs/prose. Use after generating, editing, or reviewing code files, READMEs, documentation, release notes, or any prose output. Installs and runs aislop (code) and slop-guard (prose), enforces score thresholds, and remediates findings before declaring work done.

  • Installs packages

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. huytieu/COG-second-brain★ 1.3ksame name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If cargo is missing and cannot be installed, fall back to npx -y ai-slop-detect <file> for prose and note the substitution in the report.

    line 32
  2. Very specific:

    Run aislop scan in the repo root (or the task worktree).

    line 44
  3. Distinctive:

    Read the score (0–100) and findings.

    line 45
  4. Very specific:

    Run aislop fix first (mechanical fixes only).

    line 48
  5. Distinctive:

    Never disable rules or lower thresholds to force a pass without telling the user.

    line 51
  6. Distinctive:

    Always end with this block:

    line 65
  7. Distinctive:

    Never claim output is "clean", "done", or "ready to commit" without a GATED verdict in this session.

    line 80
  8. Distinctive:

    Never modify files outside the task's scope while remediating.

    line 81
  9. Distinctive:

    Never scan files the user did not ask you to produce or review.

    line 82

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

slop-gate: Anti-Slop Quality Gate

Deterministic gate for agent output. No LLM reviewers in the first pass. Fail loudly, fix, re-scan.

Tools

TargetToolCheck commandFix command
Code (TS/JS, Python, Go, Rust, Ruby, PHP)aislopaislop scan (or npx -y aislop@latest scan)aislop fix (or npx -y aislop@latest fix)
Docs / prose (.md, .txt, .rst, .adoc)slop-guardslop-guard check <file>agent rewrites flagged lines

Setup (run once per machine, skip if already installed)

# aislop — pick one
command -v aislop >/dev/null || npm install -g aislop          # Node available
# fallback: brew install scanaislop/tap/aislop || pipx install aislop

# slop-guard (Rust)
command -v slop-guard >/dev/null || cargo install slop-guard

If cargo is missing and cannot be installed, fall back to npx -y ai-slop-detect <file> for prose and note the substitution in the report. If neither prose tool is available, do NOT skip the gate silently — report it as UNGATED.

Routing

Decide by artifact type. When a task produced both code and docs, run both gates.

  1. Code files or repo diff → code gate.
  2. Markdown / prose files → prose gate. For .docx/.pdf, extract text first (pandoc <f> -t plain or pdftotext <f> -), scan the extracted text, and never scan the binary.
  3. Unsure → run the code gate on the repo and the prose gate on any changed .md files.

Code gate

  1. Run aislop scan in the repo root (or the task worktree). Use --base <branch> or the project's .aislop/config.yml if present.
  2. Read the score (0–100) and findings.
  3. Thresholds: PASS ≥ 90, WARN 75–89, FAIL < 75. A project config overrides these defaults.
  4. On WARN/FAIL:
    • Run aislop fix first (mechanical fixes only).
    • Re-scan. Remaining findings → fix them yourself, smallest possible diffs. Do not refactor beyond the findings.
    • Re-scan after every fix round. Max 3 rounds; if still FAIL, stop and report.
  5. Never disable rules or lower thresholds to force a pass without telling the user.

Prose gate

  1. For each doc/prose file produced or edited: slop-guard check <file> (0–100; higher = worse).
  2. Thresholds: PASS 0–20, WARN 21–40, FAIL > 40.
  3. On WARN/FAIL:
    • Identify flagged patterns (throat-clearing openers, hedging, emphasis crutches, filler transitions, "delve", "it's worth noting", etc.).
    • Rewrite the flagged lines yourself: cut filler, replace abstractions with concrete facts, keep the author's facts intact. Never invent content to replace slop.
    • Re-scan after rewriting. Max 2 rounds; if still FAIL, report with remaining flags quoted.
  4. READMEs and release notes inside a code repo still go through this gate.

Output format

Always end with this block:

SLOP-GATE REPORT
code:  <aislop score>/100  PASS|WARN|FAIL|SKIPPED(reason)
prose: <worst slop-guard score>/100 across N files  PASS|WARN|FAIL|SKIPPED(reason)
fixes: <n auto-fixed>, <n manually fixed>
remaining: <findings not resolved, or "none">
verdict: GATED | UNGATED

Overall gate fails if any sub-gate is FAIL or UNGATED.

Hard rules

  • Never claim output is "clean", "done", or "ready to commit" without a GATED verdict in this session.
  • Never modify files outside the task's scope while remediating.
  • Never scan files the user did not ask you to produce or review.
  • Deterministic tools judge; the agent fixes. Do not ask another LLM pass to decide pass/fail.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.