/checkpickerupper-skills:zen-of-checkpickerupperfrom checkpickerupper-skills
Thirty-one principles for judging designs, fixes, abstractions, types, names, structure, and questions. Use when settling design choices, choosing between options, or evaluating code quality.
Ships in checkpickerupper-skills. 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.
None: SKILL.md is the whole skill.
Unrepresentable is better than validated.
A shape is better than a check, and a check is better than a comment.
The witness is not the writer.
Fix the class, not the case.
The earliest owner that knows is the right owner.
There should be one owner—and only one—for every fact.
Shape the type where it is built; never carve or loosen it downstream.
Absence is a state, not a hole.
Decide once; downstream takes the piece, not the whole.
Return the thing, not whether you have it.
The first instance is evidence, not the owner.
Strip the incident's words; what remains is the class.
The form decides, not the number of callers.
Although an invented knob is worse than none.
A second way to do a thing is a bug waiting to happen.
Prevalence is not proof.
Read the definition, not the name.
A bypass left open means the class is still open.
A timeout, retry, or catch does not make a bad state valid.
Structure exists to show ownership.
Every finding must survive its refutation.
A clean approval is a real answer.
If the rules can derive it, do not ask it.
A restatement is a copy, and copies drift.
A decision is a statement, not a value.
Name every case; an if on one case guesses about the rest.
Start plain; move the field at the first kind check.
A collection's length is its count.
An operation lives with its rule, not on the data it reads.
Every input shows at the call site.
If a stranger cannot guess it from the name, the name is wrong.
Make an invalid combination fail in the shape of the data: a sum type for
mutually exclusive states, a product type for data that exists together, a
closed public surface. To place a field, ask whether it means something for
every case, or whether a value on the wrong case is nonsense: the first stays
a plain shared field, the second goes only on the cases that have it. Every
enemy has health, so health is shared; a goblin with rage is nonsense, so
rage lives only on the kinds that rage. A validator leaves the raw value forgeable and every
caller wondering whether validation ran. Runtime validation can enforce
behavior, but it does not close the class. Source: correct-by-construction.
This ranks enforcement. A type or schema that cannot spell the bad state beats
a runtime check that catches it, and a check beats a comment or doc warning,
which prevents nothing. Use the strongest form the language allows; when the
type system cannot express a property, say so instead of faking it with a
brand or cast. Source: correct-by-construction.
The crash site, the failing reader, the error message, and the consumer that
noticed are evidence. The fix belongs where the bad state is written. Find that
writer before changing anything; a fix at the witness is a patch. Source:
correct-by-construction.
A fix that stops this incident but lets a sibling case through has fixed
nothing general. Swap the incident's nouns for a sibling: if the same bad state
can still happen, the fix sits too low. Source: correct-by-construction.
Climb toward the place that can make the bad state impossible to spell: the
judge, the source of truth, the schema or generator, the public surface, the
type, the constructor or parser, then the runtime writer. Accept a runtime
owner only after proving nothing earlier can carry the rule. Source:
correct-by-construction.
Two representations of one fact drift: a hand-written type beside a schema, two
enums joined by a mapping table, a status rebuilt from a label, two accessors
that answer "has it" for exactly the same cases, or one value reachable both
inside a variant and through a sibling field. Derive
everything from the one source and delete the conversion. An exhaustive mapping
between two spellings of one fact is evidence of the problem, not its cure.
Source: correct-by-construction.
Needing Pick, Omit, Extract, a cast, Partial, or a non-null assertion at
a use site means the upstream type has the wrong shape. Fix the type where the
value is created so every receiver gets exactly what it needs. Deriving from
one authoritative schema is fine; patching the shape at each use is not.
Source: correct-by-construction.
"Not there" is a real state. Model it as a named variant, such as present or
absent, and parse absence into that variant at the boundary. An optional, null,
or missing field that reaches a domain type is the defect, however it is
spelled. Source: correct-by-construction.
Branch on the case at one boundary, then hand each function the narrower
piece it needs: the parsed value, the variant's payload, the capability. A
function that takes the whole value and switches on it again re-asks a
question its caller already answered, still accepts the cases it cannot use,
and breaks again when a case is added. When the function takes only the piece,
a case without that piece cannot be passed in, and a new case breaks only the
boundary. Source: correct-by-construction.
A yes/no that guards data it does not hold can disagree with that data: the
check says yes and the value is missing, or says no while the value is there,
and the value stays reachable to callers who skip the check. Return the data,
or a named outcome that carries it, and let the caller's yes/no come from that
outcome's tag. Never hand-build a value-and-flag pair. Source:
correct-by-construction.
The feature where a need first appeared shows that a capability exists; it does
not get to name it, house it, or decide who may call it. When the first
feature's vocabulary or folder defines a general operation, that operation is
instance-bound. Source: antimatter-code-quality-review.
Remove the names, files, screens, commands, and local lifecycle words the
example donated, then restate the bug or abstraction. If it still makes sense,
that sentence is the class. Add a word back only by showing every valid
instance needs it. Sources: correct-by-construction, antimatter-code-quality-review.
If the concrete code is a specialization of a combinator you can name in one
line with no invented parameters, extract it, even with one caller. "Only one
caller", "no second use yet", and YAGNI are not reasons to keep a general form
trapped in one place. Source: antimatter-code-quality-review.
The counterweight to line 13. A parameter, strategy seam, or config field with
no basis in what the operation requires is invented variation. Delete it and
state the smaller operation that remains. Source:
antimatter-code-quality-review.
New code that repeats an existing capability under a different spelling makes
the codebase unpredictable, and the two paths drift. Compare by behavior, not
by name, then reuse, extend, generalize, or keep them separate with the
concrete difference named. Source: antimatter-code-quality-review.
An existing pattern earns reuse by being correct and fitting the requirement.
"The codebase already does it this way" justifies nothing, and a defect
repeated ten times is still a defect, not a precedent. Source:
antimatter-code-quality-review.
Open the definition at the line you cite: the fields, the variants, the body,
the callers. Names, docstrings, comments, and PR descriptions are claims about
the code. When the name and the definition disagree, the disagreement is a
finding. Source: antimatter-code-quality-review.
A correct owner does not close the class while another writer, fallback,
manual lane, or escape hatch can still create the bad state. Remove, redirect,
or seal every bypass before calling it fixed. Source: correct-by-construction.
Stopping, retrying, catching, and falling back are control flow. They can be
real requirements, but they do not decide which states are valid. Used only to
hide a bad state, they are mitigation, not a fix. Source:
correct-by-construction.
Folders, nesting, and names should tell a reader who owns what and where the
next thing goes. Use the least structure that makes ownership, placement, and
growth clear. Depth, file count, and name length are prompts to look, never
verdicts. Source: antimatter-codebase-structure-review.
Before reporting a problem, try to destroy it: it falls if it cannot be proven,
has no concrete before-and-after, or would change behavior. Findings inflated
to look rigorous bury the real ones. Sources: antimatter-code-quality-review,
antimatter-codebase-structure-review.
When nothing survives refutation, approve without qualification. A finding
manufactured to look thorough is a failure of the review. Sources:
antimatter-code-quality-review, antimatter-codebase-structure-review.
Before asking anyone, consult the governing standard, the project's rules, and
the code, and record which settled it. Offer only options that pass every rule.
Never ask for a fact whose only use is narrowing a general design to today's
callers. Source: correct-by-construction.
Line 6 carried into prose. History belongs to version control, behavior to the code, and settings to the config file. A comment that narrates a change, describes what the next line does, or copies a setting is a second record that stops being true at the next edit. Comments carry only the reason the code cannot show; anything else written twice is deleted or generated from its one source.
A ternary, x if c else y, or an if whose result feeds a binding or an
argument decides inside an expression, so the decision has no name and a
yes/no stands in for the real set of cases. Write an if statement whose
branches return or assign, or a switch over the closed set.
A switch over a closed set names every member, so adding a member breaks the
build at each place that must handle it. if kind == Orc sends every member
it does not name down the other branch, including members added next year.
When every kind seems to have a field, make it a plain shared field. The
first if kind == Orc before reading it, or a stand-in such as rage = 0
meaning "does not apply", is the signal to move it onto the kinds that have it,
in the same change (line 1).
A fixed-size array beside a count field lets the two disagree, and the slots past the count look like real elements. Hold exactly the elements that exist in a growable sequence; a limit such as "at most 50" is a constant checked where the collection is filled.
combat.attack(attacker, defender, weapon), not player.attack(enemy, weapon): an operation that reads several types belongs to the module of its
rule. A method fits only when it guards its receiver's private invariant or
implements an interface the type must satisfy.
A function that reads a global, shared mutable state, or its receiver hides what decides its result, and its tests have to set that hidden state up. Pass those values in as parameters.
Say what the thing does in one plain sentence without programming words, then
build the name from that sentence's key words: create_account, not
RegistrationHandler. A name that says the wrong thing is a defect, and it is
renamed in the change that makes it false.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (checkpickerupper/skills) — no native marketplace selected
npx claudepluginhub p/checkpickerupper-checkpickerupper-skills23 skills in this plugin
/agent-mdlintReview AGENTS.md changes for Markdown defects, duplicated or conflicting instructions, and unintended semantic drift. Use when editing or reviewing agent instruction files, especially large rewrites or diffs that remove existing rules./anti-ai-slop-writingUse whenever writing or editing prose for people to read: website and landing-page copy, articles, blog posts, documents, READMEs, emails, replies, comments, docstrings, reviews, release notes, cover letters, bios, and any rewrite or edit of existing text. Bans every sign of AI writing, including answering a different question, windup openers, padded lists of three, puffed-up significance, promotional tone, corporate verbs such as owning or spearheading, 'not X but Y', privatives, abstraction laundering, AI vocabulary, em dashes, trailing -ing clauses, signpost transitions, choppy disconnected sentences, chatbot talk, notes to the writer, placeholders and summary endings./antimatter-codebase-structure-reviewPedantic structural audit of a commit, PR or branch, selected directory or module, or an entire codebase — hierarchy, nesting, naming, ownership, dependency boundaries, and growth readiness. Use when a change may distort repository shape, when a file or folder needs structural review, or when deciding whether to reorganize before expansion. Every finding must survive adversarial refutation and include evidence plus a concrete current→proposed change.Other plugins' skills for the same job