/checkpickerupper-skills:ruthless-bottleneck-destroyerfrom checkpickerupper-skills
Enforces five strict properties on every test, check, hook, gate, and CI job: each must have something to catch, catch its break, be unique, run only on input changes, and cost only what its claim needs. Deletes weak or duplicate checks and eliminates slow shared causes.
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.
A check earns what it costs. Every test, hook, gate and CI job has five properties, each with its own proof:
| Property | Bad state | Proof |
|---|---|---|
| It has something to catch | a test the user never asked for; a test whose expected value was copied from the code; a check of code nothing uses; a check repeating what a tool in the gate already refuses; a check standing in for a type, import, schema or generator that would make the bad state impossible to write | the user's request for the test, quoted, with the expected result in their words; a search of every place a user could live finds one; the break gets past every tool; a stated reason the owner upstream cannot refuse it |
| It catches its break | a test that passes whether or not the behaviour happened | break the rule on purpose; the test fails |
| It is the only one that does | two tests, or two stages, prove the same thing | the same break: exactly one test fails |
| It runs only when its inputs change | reruns on unchanged code, coarse cache keys, a second checkout rebuilding | an unchanged rerun does zero work; one changed input redoes only its own unit |
| It costs only what its claim needs | setup rebuilt per test, sleeps, process spawns, hardware thrown at repeats | each test's recorded time under the bar, with its slow shape removed at the owner so it cannot be written again |
The break proof cannot tell a test the user wanted from one that repeats the code. When an agent writes both the code and the test, both are its reading of the user's intent: a test asserting the code's own constant, seed or offset fails whenever that value changes, so it catches its break and is the only one that does, and still checks nothing the user asked for. Only the user's quoted request shows a test has something to catch.
A check with nothing to catch is deleted, along with any dead code it guards; when the rule can move upstream, move it there and delete the check. A check that does not catch its break says "checked" when nothing was, which is worse than no check. A check missing any other property is time paid for nothing. The job ends when every check has all five, the cause of each failure is fixed so it cannot return, and the result reaches every checkout. Until then there is nothing to report.
Before running a test suite, build, check or review, ask: what wrong behaviour does this run catch that nothing cheaper already catches? Name the behaviour, the boundary the run exercises and what would make it fail. Read what the command really runs, nested scripts included; its name, its length or its presence in an old brief does not answer the question.
Each run you decide on is run, narrow (the smaller check named), reuse
(the earlier result named, with its commit), omit (with what already covers
it) or wait (naming what it waits for and who owns that).
slow tag, no raised timeout and no skip. A test
over the bar goes through "Audit existing tests" before anyone makes it
fast: a flagged test is listed for deletion, and only a test with a
request is made fast. A declared timeout above the bar is the
author saying the test may take that long; treat it as a measured offender.Report a weak, unfailable, duplicate or slow check and leave it. Finding it is the start of the fix. Telling another agent to stop is not a fix either.
Answer slow tests with a gate. A limit that fails the run, refuses a push or blocks a commit only stops slow tests from landing; the slow tests still exist. The job is that none exists: make each one fast at its shared cause. Never offer a gate as the response to a list of slow tests.
Call a cost "expensive" without naming the operation. "Expensive setup" leaves the reader to guess what to remove. Name what the test does: starts a process, creates a repository or file tree, boots a world, runtime or browser, or compiles a program. Then give the fix for that operation: the decision as a function of plain values, and one test of the real boundary per claim.
Return before the bar is met. No timing table, no "next thing to cut", no "these stay as they are", no asking whether to continue or which repeats to remove. Every return costs the user a turn.
Say "unconfirmed", "not checked" or "probably" about anything you can read or run, and never ask the user whether a rule is covered elsewhere. Break the rule and look.
Keep a test because it might catch something. It catches only what its break shows.
Keep a test because it catches its break. A test the user never asked for, or whose expected value came from the code, catches every change to that value and checks nothing the user wanted. List it for deletion.
Write a test the user did not ask for. Ask instead, saying what the user would see go wrong without it and how long it takes to run.
Delete a check without the break proof. A check is redundant only when breaking its rule fails another check that stays. An existing test flagged by "Audit existing tests" needs no break proof: it goes on the deletion list.
Fix an unfailable test by loosening or deleting it when the code collapsed the failures it should tell apart; fix the code.
Fix one test at a time when its cause is shared. Name the class first.
Count an open issue as the fix. "Issue #N already requires it" leaves the slow check running. The fix lands now, as the next thing you land.
Queue the speed fix behind the work that pays for it. When queued commits each pay a slow gate, test or landing step, the commit that makes it fast lands first, ahead of every one of them.
Fake the number. No moving work out of the timed region, no splitting a slow test into several just under the bar, no caching that skips the assertion, no tuning to a hair under the bar. Fix the slow algorithm, the slow design or the slow tool.
Throw hardware at it. Parallel subtests, more workers, more build slots, more cores or a bigger machine spread the same work wider and remove none of it; the time comes back on a busier machine. They are allowed only after every remaining unit of work is accounted for and none repeats (step 7), and never reported as the fix.
Hand-roll a mechanism this skill prescribes. Breaking code on purpose is mutation testing, per-test timing and limits belong to the runner's reporter and hooks, and shared templates, locks and caches have maintained owners too. Name the standard tool for the stack and use it; write your own only when a search shows none fits, and say which you checked.
Cut parallelism to make a repeat fit. Fewer workers or a lower concurrency limit spreads the same repeated setup over more time instead of removing it; it is throwing hardware at it in reverse.
Guard a slow shape with a slow check. A script that walks the tree for the shape after the fact is more cost; make the shape unwritable at its owner (step 10).
Pay for a measurement twice. Read the recorded times before rerunning anything to time it. Never rerun a suite to see whether it got faster when the per-test record can say.
Answer "is it fast now" with a time measured before a change. Read the current record, or measure once when none exists since the change. Until then the answer is "not measured since ", with no number beside it.
Report red herrings. Leave each of these out entirely, even as a footnote, a caveat or "what I haven't measured":
Fixing a bug or repairing a test once is the cost of doing business, never slowness: write that time off and report only the repeated work around it. A bug that comes back after its fix is repeated work, and it is reported.
When everything you find is on this list, the answer is "no repeated work found", followed by what you checked.
Run this for every test you write, keep, delete or judge, and before any deletion in making it fast.
1. **Quote the user's request** for the test: the message, issue line or spec that asked for it and stated its expected result. An existing test with no request found is judged by "Audit existing tests" below, not by this section. For a test with a request, name the rule it states in one sentence: what must be true and at which entry point. 2. **Break the rule on purpose.** Run the stack's mutation-testing tool first (cosmic-ray or mutmut for Python, StrykerJS for JavaScript and TypeScript, cargo-mutants for Rust, PIT for Java, gremlins for Go): it breaks one site at a time and records which tests fail, so a test no break fails shows at once. A tool's break that fails several tests marks a suspect, never a duplicate. Then break the rule the test names by hand, in the smallest plausible wrong way: skip the request, return the default, swap the currency, drop the write, take the other branch. Also break what the test depends on, not just what it asserts: make the request never arrive, the file never open, the service unreachable. 3. **Run the tests of that module** and record which fail. - Nothing fails: the test cannot fail. Go to step 4. - Only this test fails: it is needed. Keep it. - This test and another fail: one is a duplicate. Keep the one at the public entry point against the real boundary, and delete the other. 4. **Fix a test that cannot fail at its cause.** The usual cause is in the code, not the test: several different failures collapse into one answer ("unavailable", `None`, an empty list, a generic error), so a test expecting that answer passes when the request never arrived. Give each failure its own variant carrying its facts (the status code, the missing field, the address that refused), and have each test assert its own variant. When the assertion is the problem (it checks a default the code returns anyway, a fake answers before the real path runs, it asserts a mock was called), assert the observable result only the correct path produces. 5. **Undo the break,** run the module's tests again, and confirm all pass. 6. **Write a new test only when the user asked for it** and stated its expected result. Then do steps 1 to 3 for its rule against the existing tests first, and write it only when nothing else fails for the break. Its expected values come from the user's words, never from the code, its constants or a run of it. Names never show coverage by proxy: an end-to-end test that asserts the final price already checks the currency rule, though its name says "creates a product". Only a deliberate break shows it.An existing test usually has no record of whether the user asked for it, and breaking the code once per test costs too much on a large suite. Judge existing tests from one run and one read instead.
1. **Run the suite once with per-test coverage,** so each test's covered lines are recorded: pytest-cov's `--cov-context=test` for Python, or the runner's own per-test coverage. Where the runner records coverage only for a whole run, run each test file alone with coverage on. 2. **Read every test file,** split across cheap sub-agents when the suite is large. For each test the reader reports: - the request, when one can be found: the issue line, spec or message that asked for it, or a commit naming it; - each expected value, and whether that literal appears in the code under test or the test imports it from that code; - one line on what a user would see go wrong if the tested code broke, or "nothing a user sees". 3. **Flag each test without a request** by these three signals: - **Duplicate:** another test covers all of its lines and asserts the same result. - **Copied value:** its expected values come from the code under test. - **Nothing at stake:** a user sees nothing go wrong if its code breaks. 4. **Give the user two lists.** The deletion list holds every flagged test, grouped by signal, with each group's file count, line count and recorded time; the user approves it by group. The decision list holds each unflagged test without a request, with its stakes line and recorded time; the user keeps or deletes each. Break the code for a test on the decision list only when the user wants proof before deciding. 5. **Delete what the user approves,** along with the fixtures, helpers, build setup and production code only those tests used. Record the user's words beside each test they keep, as its request. 6. **Run "Prove each test"** over every test that has a request.Done when every test left has a recorded request, the deletion and decision lists are settled by the user, and no file exists only for the deleted tests.
Judge inputs per unit: each test, package, module or file, never the whole command. A command whose commit changed can still redo hundreds of units whose own inputs did not, and "no command ran twice on identical code" proves nothing about them.
| Cause | Fix |
|---|---|
| A test that starts a process, creates a repository or file tree, boots a world, runtime or browser, or compiles a program, to check a decision that only reads values from it | Pull the decision out as a function of plain values that the real code calls after its reads, and test that function in-process. Keep exactly one test per claim about the real boundary itself |
| Script logic in a command file, so a test can only run it as a child process | The work is an exported function the test imports; the command file only parses arguments and prints |
| A blocking child process per test | One non-blocking spawn helper, wiring tests run concurrently, one per command, and a check that refuses blocking spawn calls in tests |
| A fixed sleep, or polling until a lock or lease clears | Wait for the event: the process exit, the written row, the listener accepting, the lock released |
| A small program started for every lookup (version control, path resolution, file locks) on every step | Read those facts once per run, or in-process |
| A new database connection, schema run or fsync per write | One prepared connection per thread, reused |
| Setup built again in every test: migrations replayed, a scratch repository with fixture commits, a dependency tree copied into each fixture, a whole store copied in and out | Build it once from a template keyed by its inputs, only when no template with that key exists, under a lock so concurrent runs build it once; give each test a cheap copy |
| A server or service (database, broker, browser, emulator) started per test file, per worker or per test | One per machine or run, started once by the runner's global setup; each file gets a copy inside it |
| A fresh copy per test where a rolled-back transaction would isolate it | A transaction per test, rolled back; a test whose claim needs committed data uses a separately named helper |
| Checks that fire only on commit (deferred constraints, commit hooks, triggers on commit), which a rolled-back test never reaches | The shared setup makes them fire right after each statement, so rollback tests still exercise them; the few tests that depend on commit timing keep their own copy |
| Copies or servers left behind by killed runs | Name each by its owner process; at startup, remove those whose process is gone |
| A test that runs on a large input to prove something a tiny one shows | Test on the smallest real input that can show the behaviour |
| A browser, runtime or emulator booted per test or per lookup | One per run, a fresh context per test |
| A cache keyed on a whole folder, or on more files than the tool reads, so a docs edit reruns everything | Key per unit, on exactly the inputs the tool reads, plus the toolchain |
| A test moving the cache location | Pin the cache path at process start |
| Rebuilding or reparsing unchanged input on every step | A content-keyed store shared by every step and checkout |
| Compiling and linking when only compiling proves the claim | Compile only |
| Code that multiplies compile work (generic wrappers instantiated per type, reflection that keeps every method alive) | Plain types at the hot boundary; typed dispatch |
| A wrapper or launcher whose fixed startup cost every nested step pays again | Nested steps run inside their parent's process or session |
| Native fixtures built per test | Built once per machine, keyed by their inputs |
| A slow tool where a faster one enforces the same rules | Swap it, then prove each rule still fires (step 9) |
| A transaction or resource with no cleanup on failure | A helper that registers the rollback or close as test cleanup, so a failure reports instead of hanging |
| The same check in two stages, or a full suite for a change to one unit | Delete it from the stage that runs more often; run only the tests whose imports reach the changed files |
| A test another test already catches | Delete it, once Prove each test shows the other fails for its break |
Fix the cause at its owner, once, for every test or run that has it: the shared helper, the fixture, the runner, the cache key, the build step, the check's own entry point. The fix changes the measured cause and nothing else: a new script, hook, service or check that measures or guards the slow thing is not a speed fix, and is built only when the user asks for it.
First ask whether the step needs to exist. When another step proves what it proves, earlier or later (a release that runs after the push counts), delete it from the stage that runs more often, together with any agent rule that requires it. Prove it with a break: breaking the rule must still fail the step that stays. "A bug could slip through" is not a reason to keep a step whose proof already exists. A stored result is only for a step that must stay.
Remove work before spreading it. Account for every unit of work the slow test or step still does (each process started, each file judged, each build, each boot) and remove each one that repeats: reuse a stored result keyed by everything it read, and build, load or start each thing once per process. When the product already stores such results, the test goes through that store rather than around it. Prove it: an unchanged rerun does zero units, and one changed input redoes exactly its own unit. Only then may the remaining, justified units run in parallel.
Put each piece of setup at the widest scope its inputs allow, and give each test the cheapest isolation that still proves its claim:
| Scope | What lives there | Keyed by |
|---|---|---|
| Machine | servers and services: a database, broker, browser, emulator, runtime | tool version and config |
| Run | prepared state: migrated schema, seeded data, built fixtures | the files that make it |
| File or worker | a cheap copy of the prepared state | its owner process |
| Test | isolation inside that copy, undone at the end | nothing |
Isolation, cheapest first: a transaction rolled back at the end; a copy of a template (a template database, a copy-on-write file or folder, a fresh browser context, a key prefix on a shared server); a fresh instance, only for a test whose claim needs one, through a separately named helper so the exception shows in the test.
Put the fix inside a step agents already run (the commit hook, the existing check command, the compile step), so nobody has to remember a new command. Prefer per-unit results keyed by contents, toolchain and the public interface of dependencies, shared by every caller and checkout. A stored result beats a background process; a prose rule or a new manual step is never the fix.
A repeat that has been found is never paid again, by anyone. The first commit is the smallest change that stops it, touching nothing that would set it off, and everything else waits for it. Stop a slow run in progress rather than wait it out. Before any commit, yours or another agent's, check it against the table from step 4: a change that touches every package sets off the most, and waits until the repeat it would set off is stopped. Tell everyone working in the repository what the repeat is and to hold changes that would set it off. A plan's time for a fix is the edit alone; a plan whose time includes a repeat pays it, so reorder it until no step does.
Name what must invalidate each stored result: toolchain, plugin or config versions; ambient or global types; dependents through other files; generated files; staged contents rather than the working folder; separate compilation projects. Say how the fix handles each.
Prove the fix keeps its meaning. Every test the fix touched still passes Prove each test. A swapped tool runs on the same files with the same rules; check it with a probe file that breaks each rule on purpose, because some tools silently ignore a rule name they do not know. A reused result is reused only when its inputs are unchanged and its last run passed; a failed or unknown result reruns. Delete only after searching every config for the deleted name. When setup moves to a wider scope, break isolation on purpose: one test writes, and the next test or file must not see it. If it does, the shared setup leaks and the fix is not done.
Make it impossible to come back. Make the slow shape unwritable at its owner, so no check is needed to catch it:
Only when the owner cannot make the shape unwritable, add a rule to a
linter or type checker the repository already runs on every change,
never a new script that walks the tree. Then write the shape and its
owner into the repository's agent rules (AGENTS.md or its equivalent)
in the same commit as the fix.
Make every checkout get it. A speed-up that lands only on the development branch while other worktrees and branches keep the slow code is not done: every checkout gets it with no extra work from anyone.
When several agents work in parallel, give each shared or generated file exactly one writer, and put standing answers in the shared brief.
Loop to step 1 with the new record until nothing is over the bar and nothing repeats.
Done when every test written, kept, deleted or judged has its recorded request or a place on the deletion or decision list, its rule, its break and the list of tests that failed for it; every step a change runs has its inputs and cache key written down; the three paths are traced and every pair of places compared; the per-test record shows every test and every check under the bar; each fixed cause has its rule and, where possible, a check that refuses it; each stored result has its invalidation list; and every checkout has the fixes.
When the user asks why work takes so long to land, from an issue to a pushed commit or a feature the user can use, the answer is the repeated work on that path. The red herrings above stay out of it.
git log, the issue timeline,
reverts); never answer from memory.correct-by-construction for a bug's class, then report.Report one item per repeat, bullets only:
file:line or the rule.Then "Left:" with repeats not yet fixed, or "nothing". When nothing repeated, the answer is "no repeated work found", followed by the work items checked.
Only when done, and in the time section of any status update, summary or handoff. Bullets only.
One line per test proved:
test name: the user's request; rule; break used; tests that failed →
kept, deleted (duplicate of other test), or fixed (what changed in code
or assertion).One line per deletion-list group: its signal (duplicate, copied value, nothing at stake), file count, line count and recorded time, for the user to approve. One line per decision-list test: its stakes line and recorded time, for the user to keep or delete.
One item per slow cause or repeat:
file:line of its
owner, and how many tests or runs had it.Then two lines: the slowest test and the slowest check now, with their times; and "Left after these fixes:" with the remaining repeated work, or "nothing". Explain a technical term in a few words the first time it appears.
Wrong:
exports_report is slow because the machine was busy. (A red herring, and
unconfirmed.)imports_catalog into three tests of 4.9 s each. (Faked; the slow
import is still there.)judges_all_fixtures went from 46 s to 12 s by running its 66 fixtures as
parallel subtests. (Same work on more cores; every fixture is still judged
from scratch on every run although none changed.)renders_invoice to skip its child process. (One test; the 40
others that spawn the same command still do.)retry_waits_250_ms because breaking the delay fails it and nothing
else. (Nobody asked for it, and 250 was copied from the code: the test
fails on every change to the delay and checks nothing the user wanted.)checkout_log_records_cart fast, 48 s → 7 s. (No request, and a user
sees nothing go wrong if its code breaks; it goes on the deletion list.)check_queries.py because it catches broken SQL and no other check
does. (Nothing opens that SQL; the check and the SQL both go.)check_route_ids.py because it catches a renamed id. (The page and
the test could import the id, so a rename fails the build; the check has
nothing to catch.)Right:
translates_on_500: an error reply is reported as unavailable; break: the
request never sent; failed: none → fixed: the translator records why it is
unavailable (ServiceError(500), EmptyReply, Unreachable(address)), and
the test asserts ServiceError(500). It now fails when the request never
arrives.
Deletion list, for the user to approve by group: 14 duplicates (3,200
lines, 4 min), 9 with copied values (1,100 lines, 1 min). Decision list:
push_hook_refuses_failing_build: without it, a commit with a failing
build could be pushed; 0.4 s.
prices_manual_item_in_cad: request: "a manual item priced in CAD charges
the CAD total" (issue line); break: price in USD; failed: this and
creates_product_from_scrape → deleted, duplicate of
creates_product_from_scrape, which checks the same price at the public
entry point.
Cause: 41 tests ran the CLI as a blocking child process, because its
logic lived in the command file (src/commands/export.ts:12).
Before → after: 9–14 s each → 0.2–0.8 s; the suite 6 min → 40 s.
Guard: "Scripts and their tests" rule in AGENTS.md; a lint refuses
spawnSync in test files.
Cause: judges_all_fixtures judged all 66 fixtures from scratch on
every run, bypassing the stored verdicts the product keys by what each
judgement read (tests/judge_fixtures_test.go:30).
Before → after: 46 s → 0.3 s unchanged (zero fixtures judged); one edited fixture re-judges only its own row, 0.4 s.
Guard: "Tests go through the verdict store" rule in AGENTS.md; the
test asserts an unchanged rerun starts zero judgements.
Cause: the push gate compiles the whole workspace, builds both apps and
walks the shop (scripts/gate.sh:40), all of which the release runs again.
Before → after: not measured → the push runs format and the changed units' tests only.
Guard: deleted from the gate after breaking the price rule failed the release's shop walk; the release keeps the full build.
Cause: the compile cache is keyed on a hash of the whole source folder
(build/cache.ts:18), so any edit rebuilds everything.
Before → after: 124 full compiles in 12 hours, about 1.5 min each → one file's recompile per edit.
Guard: the store is keyed per file by its contents, the toolchain and its imports' public types; the compile, type check and single-file check all read it.
Slowest test now: migrates_orders, 1.1 s. Slowest check: the full check,
7 s. Left after these fixes: nothing.
What SKILL.md sets; muted values are Claude Code's defaults
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./antimatter-code-quality-reviewDeep code-quality and pre-merge review of a commit, PR, branch, or diff. Audit correctness, intent, naming, cohesion, types, boundaries, control flow, duplication, cost, allocation, generalization, and the tests and checks the change adds or edits. Check predictability: does a feature or fix create a second way to perform a capability the codebase already has? Compare existing implementations, reuse or extend sound patterns, and extract shared behavior without letting one feature own the abstraction or inventing flexibility. Every finding needs evidence, a concrete before-and-after, behavior preservation, and adversarial refutation./audit-issuesAudit a GitHub issue tracker: group issues by the fix that would make them all disappear, rewrite workaround premises to the proper fix, close what is done, duplicated or out of date, and show the owner a short before-and-after page to approve before anything changes. Use when asked to audit, clean up, triage, groom, merge or sweep issues, or to say which open issues are still real. Reads and changes open issues only, never closed ones. A script suggests likely slices of one cause and oversized milestones, checks the plan, and applies it only once approved; closes go through close-issues; scope decisions go to the owner./be-conciseCut words, keep facts. Use for every reply, and hardest for status updates, audits, plans, explanations of a failure, and choices put to the reader. Cuts anything that costs the reader effort without adding a fact, reason or decision they need: preamble, narration, restatement, apologies, hedges, bare numbers and references; keeps every reason, example, number, path and finding. Changes how you write, never what you do.Other plugins' skills for the same job