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 shmulc8v1.5.0MIT
Finds and deletes tests that can never fail in TypeScript and Python suites, such as always-true assertions and duplicates. Detection is deterministic with no LLM, using the type checker, and uncertain cases go to the agent for review.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 caution to review before installing
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
AI agents write tests that can never fail. This skill deletes them.
Every AI-generated test suite has them:
assert isinstance(add(1, 2), int) # the function is typed `-> int`. mypy knew.
expect(true).toBe(true); // bold claim
Tests like these can't catch a regression — they re-assert what the compiler already proved, or assert nothing at all. They burn CI minutes and inflate coverage into false confidence. Empirical studies find test smells in 38–100% of LLM-generated test suites.
Detection is fully deterministic — no LLM in the loop, one script invocation per repo. Instead of asking an AI "is this test useful?", it asks the tools that already know:
typeof result === 'number' is a fact of the
type, the assertion is not a test. Plain-JS test files (.test.js etc.) get
the syntactic categories; type-guaranteed needs TypeScript (or stays off
without checkJs).mypy reveal_type probes (one mypy run for the whole
repo) answer the same for isinstance(...) and is not None.return, assertions swallowed by empty catch/except: pass, duplicate
bodies, len(x) >= 0.Every finding is one of two tiers, and each tier is handled by whoever can actually decide it:
--fix, no LLM
involved. The scripts guard every known way types lie: any/unknown,
as casts, non-null !, index signatures, unchecked index access, structural
instanceof (only nominal classes are provable), cast()/type: ignore.instanceof, mock-echo variants, pytest.raises(Exception), unawaited async
assertions, rotten-green conditional asserts). The script writes down exactly
why it's uncertain, and the coding agent running the skill adjudicates each
one against the surrounding code — delete, keep, or rewrite — then
proposes the calls for your approval before touching anything.It also knows what not to flag: toBeDefined() on .find() results
(T | undefined — a real check), enum contract locks, custom assertion
helpers, deliberate determinism tests, and "must not raise" contract tests.
The skill now asks four questions the scanner cannot answer: What observable contract does the test protect? What regression would make it fail? Is that contract already covered at a stronger boundary? Does the test require a production seam used only by tests? For bug regressions, run the test against the pre-fix behavior when safe to confirm it fails for the intended reason.
This review catches leads such as copied implementation expectations, source
greps, and mocks that supply the asserted outcome. They require reading the
production path and existing tests; none become automatic deletions. See the
authoring gate and
prevention examples.
.rejects.toThrow(...) never awaited, so it
silently never ran.The honest headline isn't a line count — it's that --fix only removes what it
can prove, so whatever it deletes could never have caught a regression. Clone
it and run it on your own repo.
npx skills add shmulc8/captain-obvious@captain-obvious
Also ships a .claude-plugin/plugin.json manifest, or copy
skills/captain-obvious/ into ~/.claude/skills/. Then ask your agent to
"clean up the useless tests" — or run the scanners directly:
# report-only (add --json out.json to save)
node skills/captain-obvious/scripts/captain_obvious_ts.mjs --project <repo>
python3 skills/captain-obvious/scripts/captain_obvious_py.py --path <repo> --mypy "uv run mypy"
# delete proven findings (needs a clean git tree — review the diff after)
node ... --fix
# confirm rotten-green asserts against real coverage (lcov / istanbul / coverage.py)
node ... --coverage coverage/lcov.info
python3 ... --coverage coverage.json
7-day copy clicks
Generated from the plugin's indexed repository (shmulc8/captain-obvious) — no native marketplace selected
npx claudepluginhub p/shmulc8-captain-obviousBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground