/trove-dev:trove-test-gap-auditfrom trove-dev
Read-only audit for missing, weak, stale, or mis-scoped test coverage. Scopes to a feature, PR, route, or full repo. Produces concrete, prioritized test recommendations grounded in code paths and risk.
Ships in trove-dev. 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; scripts run unread.
This skill ships Trove conventions. Prefer existing project patterns over generic best practices when they conflict.
Find the tests that should exist but do not, or tests that exist but do not prove the important behavior. Produce concrete, prioritized test recommendations grounded in code paths, risk, and existing test conventions.
When no scope is given, audit the whole repository. Inventory the repo's major testable surfaces and report which important areas do not have tests, do not have enough assertions, or are only indirectly covered.
Accept any specific testing scope, including:
audit test gaps in this PR, what tests should this branch add.test gap audit uploads, what coverage is missing for billing.review tests for POST /orders, check auth tests around exports.invite teammate -> accept invite -> set role -> revoke access.what regression test should cover this fix.what tests prove the security audit fixes, do examples have tests.If scope is blurry, infer the smallest useful boundary and state it. If no scope is stated, do not ask for one; proceed with a full-repo audit. Ask only when different scopes would require materially different test plans.
Establish repo context.
git status --short.Map the behavior under review.
Map existing coverage.
scripts/coverage_map.py first when it is available. It detects the test framework and naming convention, then matches every source file against the tests by name, mirrored path, and what the test files actually import, and returns the unmatched files ranked with risk keywords plus test files that have cases but almost no assertions. The path is relative to this skill's own directory, which varies by host. Use python if python3 is not on PATH.python <skill-dir>/scripts/coverage_map.py --top 25, or --format json to filter the results yourself.P0 or P1. Report a gap as confirmed only after you have looked.Identify gaps.
Verify safely.
python -m compileall and py_compile emit .pyc files, formatters rewrite sources, and installers touch lockfiles. .pyc output is usually gitignored, so git status will look clean while the tree has in fact been modified. Prefer checks that write nothing, and if a language offers no read-only check, say so under checks skipped.P0: Missing tests for code that can cause data loss, security/privacy exposure, payment/billing errors, destructive actions, or production outage with no practical safety net.P1: High-impact missing coverage for common user paths, auth/authorization, critical API contracts, migrations, background jobs, or release-blocking behavior.P2: Meaningful regression risk around important edge cases, validation, error handling, state transitions, integrations, or stale/weak tests.P3: Lower-risk test cleanup, naming drift, fixture improvement, redundant tests, or useful coverage polish.Confidence: high/medium/low.Use this structure unless the user asks otherwise:
**Test Gap Audit: <scope>**
No code changed. I reviewed <brief scope>, existing tests, and repo test conventions. <verification summary>. No P0s found / P0s found: <count>.
1. **P1: <gap title>.**
Gap: <behavior or risk not covered>.
Current coverage: <what existing tests cover or why none were found>.
Evidence: code `<path>:<line>`; tests `<path>:<line>` or "no direct tests found in <area>".
Suggested test: <specific test level, file/location, scenario, and key assertions>.
2. **P2: <gap title>.**
Gap: <missing or weak coverage>.
Current coverage: <what is currently proven>.
Evidence: code `<path>:<line>`; tests `<path>:<line>`.
Confidence: <high/medium/low if inferred>.
Suggested test: <specific recommendation>.
**Suggested Test Plan**
- <ordered list of concrete tests to add first>
**Untested Or Weakly Tested Areas**
- <for full-repo audits, list important routes/features/services/packages/workflows that lack proper tests, with brief evidence>
**Existing Coverage Worth Keeping**
- <only include useful tests that already protect important behavior>
**Surveyed But Not Deeply Inspected**
- <For full-repo audits only: surfaces that were inventoried but not inspected deeply this pass, and which to run next. Omit this section entirely for scoped audits.>
**Checks Run**
- `<command>`: <result>
**Not Tested**
- <test suites, services, browsers, credentials, or dependency gaps and why>
**Assumptions**
- <only include if useful>
If no meaningful gaps are found, say that clearly, name the strongest coverage observed, and list any residual risk.
When the user asks to add tests:
This skill shares one report contract with the other Trove audit skills: every
finding carries a P0-P3 severity and a path:line you can open. It reports
gaps; trove-tdd writes the failing test that closes one. Route to
trove-docs-sync-audit for documentation drift and trove-review for a code
review of the diff.
What SKILL.md sets; muted values are Claude Code's defaults
what tests are missing; is our coverage enough; what regression tests should we add; audit test coverage
Three short reads, in order
17 skills in this plugin
/trove-architectDesign the shape before the code: sketch types, signatures, and module structure with not-implemented bodies, agree, then fill in. Scrap the sketch when implementation proves it wrong. Use for non-trivial work where jumping straight to code would lock in the wrong shape./trove-commitGit commit workflow and message conventions. Use when creating, drafting, or reviewing atomic commits with conventional messages./trove-docs-sync-auditRead-only documentation drift audit comparing what the docs claim against what the code does. Covers READMEs, setup guides, API and env docs, changelogs, examples, and generated docs. Use when asked whether docs are stale, missing, or inconsistent after a code change. This is not a code review.npx claudepluginhub bravew/trove --plugin trove-devOther plugins' skills for the same job