/shut-up-and-code:shut-up-and-codefrom shut-up-and-code
Enforces a load-bearing comments policy when writing or editing code in any language. Only write comments that explain why decisions were made, mark landmines, or reference external specs.
Ships in shut-up-and-code. 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.
A comment earns its place by being load-bearing: delete it and a competent reader loses something the code cannot tell them. Write those. Let the code speak for everything else.
This holds for every file you write or edit for the rest of the session, and does not lapse when the topic changes. If you are unsure whether it still applies, it does. The user turns it off by saying "normal comments" — confirm in one line, then return to your default style.
Before writing a comment, name what the reader loses without it. A concrete answer means it is load-bearing, so write it. Silence — or an answer that restates the line below — means the code already carries it, so let the code carry it.
Say it in different words than the code. A comment assembled from the identifiers beneath it is that line spelled twice. If the only phrasing you have reuses the names already on screen, there was nothing to add.
The test runs per clause, not per comment. A sentence can smuggle restatement inside itself — a load-bearing fact up front, a "…so we must" tail respelling the code below it. Keep the clause that carries the answer; every further clause needs its own. A four-line comment with one load-bearing line is one line long.
Comments describe the code as it stands, in the voice of the file. The edit that produced them belongs in the commit message.
Apply the same test to comments already in code you touch: load-bearing ones stay as they are, and one your own edit made false gets corrected or removed in that same edit. An edit can falsify a comment it never touched — reread the comments around the edit site, not only the ones you rewrote.
Five kinds, in practice:
// Retry 3x — the upstream 502s on cold start.// Set the auth header before reading the body.// Unsorted; the caller re-sorts by locale.git blame already files it.// eslint-disable-next-line, # type: ignore, pragmas, codegen markers.And what fails, in the same practice:
// Increment the counter above count++ — the line, spelled twice.// Using a Map for O(1) lookups — the data structure announcing itself.// PREF-2841: fix rate limiter — filing, not shape.// Handles a single webhook delivery on handleWebhookDelivery — the signature in prose.// Stripe retried and we double-charged 14 customers on 2026-08-04 — incident history. It belongs in the postmortem the ticket links to; the code needs only the constraint that survived it.Density follows the file. An uncommented neighbourhood stays uncommented. A heavily commented one sets its ceiling by its load-bearing comments, not by its total.
Everything above governs comments inside a function. The comment on it is a different instrument — and it is not owed to every function that happens to be exported.
A contract exists so callers never read the body. Write one when the signature leaves a question a caller must answer to call correctly:
timeout in what? Is end inclusive?unsafe block trusts.Name the question before you write. If you cannot name one, the signature is already the contract — write nothing. export is not the trigger; an unanswered question is.
Then answer it and stop. A sentence that re-spells the function's name in prose — "Handles a single webhook delivery", "Stores the session" — is the whole signature restated, and it fails on the same grounds as // increment the counter. Open on the answer, in the form the language expects.
Where a project's own standard overrides this skill, the project wins. Internal helpers carry no contract; they get the ordinary test.
Most explanations land better somewhere other than a comment:
Difficulty explaining a block is a fact about the code, not about your prose. Split the function, name the intermediate value, or fix the abstraction — then the comment either writes itself or turns out to be unnecessary. A block that needs a paragraph was asking to be two functions.
A commit — or the end of any turn that edited files — is where the audit runs, unprompted. Account for every comment in the diff, contracts included: for each one, state what the reader loses without it, clause by clause. Keep the ones with a concrete answer, drop the rest, then rewrite each survivor to the shortest phrasing that still carries its answer — the examples above are the target length.
Then search the file for every identifier your edit renamed or deleted. A comment still naming one is now false, and a false comment is worse than none.
Test names are comments the runner prints: a describe or it string claims only what its body exercises.
The diff is ready when every surviving clause has an answer, and none can be shorter without losing it.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub chl03ks/shut-up-and-code --plugin shut-up-and-codeOther plugins' skills for the same job