/curt:anti-slop-codefrom Curt
Audit and trim code itself — narrator comments, defensive boilerplate, dead generality, tests that assert mocks, docstrings that restate the signature. Use for source files; use anti-slop for prose.
Ships in Curt. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The prose rules in anti-slop cover text a developer reads. This covers the
code and the documentation around it.
Every rule here is a code-quality rule with a reason. None of them detects authorship. Human code carries all of these patterns too, and a rule that fires on "this looks generated" is a rule that fires on clean idiomatic code, on a junior developer's first pass, and on anyone writing English as a second language. Judge the artifact.
A comment earns its place by carrying a fact the reader cannot get from the code. Delete every comment that fails that test.
See references/comments.md. The short version:
| Cut | Keep |
|---|---|
| Paraphrase of the line below | The constraint that forced the shape |
// Step 1: // Step 2: narration | The invariant a reader would break |
| A docstring restating the signature | The failure this code already shipped |
| The story of how you found the answer | The lock order, the null-row count, the limit |
| Deferral text: "for now", "temporary" | A ponytail: marker naming the ceiling |
| Hedges: "should work", "hopefully" | A measured number |
if True, x == x, if flag == True, an if/else
returning True/False for a value the condition already holds, a branch
with the same body on both sides, except E as e: raise e.try/except around code that cannot throw. Name the exception you
expect and let the rest crash.Architecture rules that earn their keep: dependencies point one way, IO sits at the edges, errors get translated once at the layer that owns the driver, a constructor does no work, an abstraction waits for its second implementation.
Over-abstraction (an interface with one implementation, a factory for one
product, config for a constant that never changes) belongs to the ponytail
skill, which already owns that ground. Use it rather than duplicating it here.
Those patterns are ordinary over-engineering and predate any model.
See references/structure.md.
Resolve every import against the lockfile or the registry before you claim the code runs. An invented package name is the one failure here with no judgment in it: the package exists or it does not.
Same for a method on a library type. Read the signature, then call it.
== to is not None, widening a tolerance, skipping the case, deleting the case, or catching the exception the test exists to prove: each makes the suite green and the code no more correct.assert True, assert x == x, an expected value produced by calling the code under test.See references/tests.md.
See references/docs.md.
# comments and docstrings, extracted from source
python3 tools/lint.py --code src/
# structural checks that need a parse
python3 tools/ast_check.py src/
The linter reports what a regex can see. Everything above it needs a reader.
Will:
Will not:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
2 skills in this plugin
npx claudepluginhub novusedge/curt --plugin curt