Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By felipebasurtov1.4.1MITIn 1 marketplace
Cuts a test suite down to the tests that guard real risk and moves the intent behind the rest into SPEC.md files. Gates new tests as the agent writes them, and reports contradictions with clear intent as bugs rather than green tests.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
test-pruning, test-suite-cleanup, spec-driven-development, bdd, snapshot-testing, test-audit, tests, spec ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
One agent skill for tests: it stops low-value tests at write time, cuts an existing suite down to the tests that matter, and moves the rest of the intent into Markdown specs.
Most tests in an agent-written repo are a second copy of the logic: they assert constants, mock the helpers the code calls, compute the expected value with the function under test, and stay green when the real bug ships. They also cost every agent run minutes and tokens.
Deleting all of them throws away the part that is not a copy: intent. "The total is never negative" lives in a README or an issue, not in the code, and nothing in the code can check it. testectomy keeps that part and drops the rest.
SPEC.md. One file per area, next to the code: numbered rules, example tables, non-goals, open questions. Written from the README, issues and you, never copied from the code.npx skills add felipebasurto/testectomy -g
Then, in your agent:
/testectomy
/testectomy src/billing
With no argument it works on the whole repo, one area at a time. Codex uses $testectomy, the Claude Code plugin uses /testectomy:testectomy.
| Mode | When | What it does |
|---|---|---|
| Gate | Automatically, whenever the agent writes, changes or reviews a test | Asks which rule the test guards, what regression makes it fail and why existing coverage misses it, and rejects it if it matches a junk pattern. Never deletes anything. |
| Pass | You run /testectomy [path] | Specs, a verdict for every test, deletions, gaps filled, bite checks, report |
| Campaign | You ask to prune a whole subsystem in a large repo | The pass split into lanes, with a written ledger per chunk of tests, a layer plan, and an independent review that hunts for contracts that lost their only proof (CAMPAIGN.md) |
The gate loads on its own. Deleting tests only happens when you ask for a pass or a campaign.
If a user sent you this repo and said "use this":
testectomy is already in your skills folder: npx skills add felipebasurto/testectomy -g (drop -g for the current project only).testectomy, or open skills/testectomy/SKILL.md and follow its nine steps by hand: baseline, inventory, intent, specs, classify, apply, bite-check, AGENTS.md, report.Three layers, cheapest first:
| Layer | Holds | Checked by |
|---|---|---|
SPEC.md | Rules, examples, non-goals, open questions | The agent, before and after every change |
| Types and schemas | Shapes, nullability, exhaustiveness | The compiler |
| Executable tests | Only rules that pass the keep bar | The test runner, filtered to the rules a change touches |
Every rule in a spec says how it's checked: type, read (the default) or test. A rule earns test only if at least one of these holds:
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub felipebasurto/testectomy --plugin testectomyPlugins from other owners that cover similar ground