/superskills:test-coverage <optional: paths/globs to scope, or --full for the whole repo>from Superskills
Finds undertested business logic, edge cases, and past regressions, then writes missing unit/integration/E2E tests following Google Testing on the Toilet best practices.
Ships in Superskills. 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.
Read when SKILL.md points to them.
Finds where complex business logic, edge cases, corner cases, and past
regressions are undertested, then writes and applies the missing tests.
/qa-full Step 9 runs this skill as the fix phase of its coverage check, then
re-runs the suite to verify.
ENGINEERING_STANDARDS.md's TDD section (referenced, not
restated): every new public function, branch, and error path needs a test;
≥90% lines on new/changed modules is the default target; a test that can't
run in the project's real runner doesn't count.$ARGUMENTS gives paths/globs, scope to those. If it says --full,
scope to the whole repo. Otherwise default to the current branch's diff:
git diff --name-only <base>...HEAD plus git status --porcelain
(same base-branch detection as /qa-full Step 1).package.json
scripts, pytest.ini/pyproject.toml, go test, bats, *.csproj,
Gemfile). If ambiguous, ask rather than guess — writing tests against the
wrong runner is worse than asking one question.If the scope is empty, say so and stop — there's nothing to cover.
For each in-scope file, flag functions/methods that are "complex" by any of:
if/switch/ternary paths, especially ones that
return different values or take different side-effecting actions./db-optimize, /perf-profile, or a prior
/code-review as high-risk — risk-driven prioritization: spend the
budget here first, not on trivial getters.For each, grep the test tree for a reference to that function/class name. No reference (or only a shallow "doesn't throw" smoke test) ⇒ gap.
For each gap from Step 2, work out the input-partition classes relevant to that logic — don't apply a rote checklist blindly, reason about what this function actually branches on. Common classes to check against:
"", [], {}, 0)Only list classes that are reachable through the function's real callers — don't invent tests for input shapes the type system or a validator already rules out upstream.
git log the in-scope files for commits whose message matches
fix|bug|regression|hotfix|revert (case-insensitive).rules/real-fake-mock-hierarchy.md);
reach for a mock only when no hermetic option exists./playwright for browser E2E — don't hand-roll a
driver here.These are Google's Testing on the Toilet rules that close real gaps in most
test suites. Each is a short standalone file under rules/ — a rule plus a
concrete good/bad example — so you pull in the detail only for the rule that's
actually in play, instead of re-reading all eleven every run. Skim the
one-liners below; open a file when its situation applies to the test you're
about to write. When you're already touching an existing test for a nearby
reason, fix violations you see rather than adding a TODO.
| Rule | Applies when |
|---|---|
real-fake-mock-hierarchy.md | About to reach for a mock — check real/fake first |
dont-mock-types-you-dont-own.md | The dependency is a third-party type, not your own |
verify-state-changes-only.md | About to verify()/assert-called-with on any call |
state-over-interaction-testing.md | Choosing what the assertion should check |
avoid-change-detector-tests.md | The test's structure is starting to mirror the code's branches |
know-your-test-doubles.md | Picking which kind of double to use |
limit-mocks-per-test.md | The test already has 2+ mocks |
damp-not-dry.md | Tempted to extract a shared fixture/setup helper |
test-behaviors-not-methods.md | Naming a test or deciding how many tests one function needs |
inject-dont-hardcode-statics.md | The gap traces back to a singleton/static/Date.now() |
descriptive-names-clean-data.md | Naming a test or building its fixture data |
For each confirmed gap (Steps 2–4), at the chosen level (Step 5), following
the Step 6 rules/ checklist:
Run the tests that cover the files you changed and every test file you added or edited, by name. Do not run the whole suite: it runs once at the merge gate (suite-stamp.sh ensure). Put that command in Runner:. When git config --local superskills.suiteCommand is empty, end with one plain sentence: "No whole-suite gate is set up here. Run the whole suite once before merging, or run suite-stamp.sh init '<command>' so it runs once per tree." Then report:
# Test coverage — <scope> @ <date>
Runner: <command> Files scoped: N New tests added: M
## Gaps closed
- <file:line> <function> — <input class(es) covered> — <unit|integration|e2e> — <test file:line>
## Regressions pinned
- <original bug commit> — <file:line> — reproduces: <what broke> — <test file:line>
## Bugs found while writing tests (not fixed here)
- <file:line> — <test that exposes it> — <why it's a real defect, not a bad test>
## Best-practice fixes applied to existing tests touched
- <file:line> — <which rules/ file> — <what changed>
## Suite result
<pass/fail summary from the related-test run>
rules/real-fake-mock-hierarchy.md).rules/dont-mock-types-you-dont-own.md).verify() on a getter/query call (rules/verify-state-changes-only.md).rules/avoid-change-detector-tests.md)./tdd — the write-code-first-with-a-failing-test loop while implementing
new code. /test-coverage runs after code exists, to close gaps in what
already landed./qa-full Step 9 — the coverage check in the pre-ship pipeline; it audits
for gaps, runs /test-coverage to close them, then re-runs the suite. New
public surface still untested afterwards is a ship blocker./playwright — the E2E harness this skill hands off to when Step 5 decides
a gap needs browser-level coverage./code-review — correctness review of the diff; /test-coverage is the
complementary "does the diff have adequate tests" pass, and can be run right
after a /code-review pass identifies risky logic./debug — when Step 7 surfaces a real bug via a new test, use /debug to
root-cause and fix it (this skill reports the bug, it doesn't fix production
code).rules/avoid-change-detector-tests.md (opens in a new tab)rules/damp-not-dry.md (opens in a new tab)rules/descriptive-names-clean-data.md (opens in a new tab)rules/dont-mock-types-you-dont-own.md (opens in a new tab)rules/inject-dont-hardcode-statics.md (opens in a new tab)rules/know-your-test-doubles.md (opens in a new tab)rules/limit-mocks-per-test.md (opens in a new tab)rules/real-fake-mock-hierarchy.md (opens in a new tab)rules/state-over-interaction-testing.md (opens in a new tab)rules/test-behaviors-not-methods.md (opens in a new tab)rules/verify-state-changes-only.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub ariadoss/superskills --plugin superskills48 skills in this plugin
/a11yAccessibility audit for frontend changes — WCAG 2.2 AA, screen-reader
compatibility, keyboard navigation, focus management, ARIA correctness, color
contrast, and reduced-motion. Static diff-scoped analysis (safe to auto-run) plus
an optional dynamic axe pass against a running app. Use when asked to "check
accessibility", "a11y audit", "screen reader check", "WCAG", "is this
accessible", "keyboard navigation", "ARIA review", or after heavy frontend work.
/articleExtract clean article content from URLs (blog posts, articles, tutorials) and save as readable text. Use when user wants to download, extract, or save an article/blog post from a URL without ads, navigation, or clutter./basic-reviewRead-only correctness review of pending changes, needing no external
install: correctness, security, reliability/performance and contract risk,
each finding cited as file:line with why it is wrong and a fix. The fallback
when gstack's /review is unavailable (not installed, or its install is
broken); /qa-full and /daily-qa call it automatically then. Applies a
vendored copy of gstack's pre-landing checklist. Use when asked for
a "basic review", a "quick review without gstack", or a review in a tool where
/review is missing. Not for quality cleanups (use /clean-code), and not the
first choice when /review is installed: /review goes deeper and applies fixes.
/cache-strategyImplement a permanent cache-first strategy: check cache before hitting the DB,
write to cache on first read, invalidate only when data changes. No TTL timeouts.
Modeled on Play Framework's cache model. Use when asked to "add caching",
"implement cache strategy", "cache DB results", or "reduce DB load".
/clean-codeAudit → fix → verify the branch diff against KISS, DRY, SOLID, and YAGNI.
Finds duplicated logic, units with more than one reason to change, needless
abstraction or speculative extensibility, wrong-altitude code, and dead code
in the changed files — then applies the smallest safe refactor for each,
one atomic commit per fix, under a green test suite. Quality only: it does
not hunt for bugs (use /review or /code-review for that). Use when asked to
"clean up the diff", "simplify this", "DRY this up", "refactor for SOLID",
"remove duplication", "KISS", "YAGNI check", or "tidy before ship".
/cli-for-agentDesign or review CLIs so coding agents can run them reliably: non-interactive
flags first, layered --help with real copy-pasteable examples, stdin/pipeline
support, fail-fast errors that include a correct invocation, idempotency,
--dry-run/--yes for destructive actions, and machine-useful success output.
Use when building a CLI, adding commands or subcommands, writing --help
text, or when asked for an "agent-friendly CLI". Not for GUIs, TUIs, or
library APIs (no CLI surface to design).
Other plugins' skills for the same job