shut-up-and-code
Load-bearing comments only. A Claude Code plugin that stops the agent narrating your code back to you.
Claude comments reflexively. Most of what it writes restates the line below it — or, on anything exported, swells into a doc block that restates the signature and pastes in whatever context it was handed. A rule in CLAUDE.md doesn't reliably stop either. This ships that rule as a skill instead — as something Claude can load on its own, or that gets injected at the top of every session.
The difference
Before:
// Function to calculate the total price
function calculateTotal(items: Item[], taxRate: number): number {
// Initialize the sum
let sum = 0;
// Loop through all the items
for (const item of items) {
// Add the item price to the sum
sum += item.price;
}
// Apply the tax rate and return
return sum * (1 + taxRate);
}
After:
function calculateTotal(items: Item[], taxRate: number): number {
let sum = 0;
for (const item of items) {
sum += item.price;
}
return sum * (1 + taxRate);
}
Nothing was lost. That's the point.
The same test applies to doc comments, which is where the bulk usually hides. Hand Claude an incident, a ticket and an RFC as background, and all three end up above the function:
Before:
/**
* Handles a single Stripe webhook delivery.
*
* Resolves with 200 for every event it accepts, dedupes, or discards: Stripe
* redelivers on any non-2xx or on no reply within 10 seconds, and a redelivery
* is what charged 14 customers twice (PREF-3102, docs/rfc/047-webhook-idempotency.md).
*
* Effects run at most once per `event.id`, enforced by the unique constraint on
* `processed_events.event_id` rather than by a prior read, so concurrent
* deliveries of the same event cannot both proceed.
*
* Events older than 72 hours are discarded unprocessed and still answered 200.
*
* Rejects only when the database is unreachable, which is the one case that
* should reach the caller as a 5xx and earn a Stripe retry.
*/
export async function handleStripeWebhook(event: Stripe.Event): Promise<Response>
After:
/**
* Always 200; duplicates and events older than 72h are dropped silently — any
* other status makes Stripe redeliver. See docs/rfc/047-webhook-idempotency.md.
*/
export async function handleStripeWebhook(event: Stripe.Event): Promise<Response>
The incident stayed in the postmortem. What reached the file is the constraint that outlived it.
Install
claude
Then, in the session:
/plugin marketplace add chl03ks/shut-up-and-code
/plugin install shut-up-and-code@shut-up-and-code
Two ways to use it
1. Call it. Type the skill name in any session:
/shut-up-and-code
It applies from there until the session ends. Claude will also reach for it on its own when it's about to write code.
2. Always-on. Create the flag file once, and the ruleset is injected at the start of every session — on startup, resume, clear, and compact:
touch ~/.claude/.shut-up-and-code-always
You'll know it's live because the session opens with:
SHUT UP AND CODE ACTIVE (always-on).
Turning it off
| Scope | How |
|---|
| This session | Say normal comments |
| Always-on, permanently | rm ~/.claude/.shut-up-and-code-always |
| Uninstall | /plugin uninstall shut-up-and-code@shut-up-and-code |
What it actually enforces
The default is no comment. A comment ships only if it's load-bearing — delete it, and a competent reader loses something the code cannot tell them. In practice, five kinds survive:
- Why, not what — a decision, tradeoff, or constraint the code can't express.
// Retry 3x — the upstream 502s on cold start.
- A landmine — something that looks safe to change and isn't.
// Set the auth header before reading the body.
- A deliberate omission — something absent on purpose a reader would take for a bug.
// Unsorted; the caller re-sorts by locale.
- A pointer out of the file — a ticket, RFC, or upstream bug that explains the code's shape. A ticket number stamped on a change because a ticket existed is filing, and
git blame already files it.
- A toolchain annotation —
// eslint-disable-next-line, # type: ignore, pragmas, codegen markers.
Doc comments get a narrower rule than "public means documented." A contract is written when the signature leaves a question the caller must answer to call correctly — units, failure modes, call ordering, thread safety, edge cases. export alone is not the trigger, and a contract that re-spells the function's name in prose fails on the same grounds as // increment the counter.