/testing:plan [range or scope]from testing
Analyzes code changes to produce a test plan: classifies changed files by test type, identifies coverage gaps, and prioritizes by regression risk. Useful during PR prep or after implementation.
Ships in testing. 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.
Coverage-gap analysis: what needs testing, at what level, in what priority. Per-ecosystem test structure (frameworks, locations, architecture-test project) comes from the consuming project's testing conventions; infer it from existing test projects when undocumented.
$ARGUMENTS, optional diff range or scope description. Default: uncommitted changes plus the
current branch's commits vs the default branch.
Examples: /testing:plan, /testing:plan HEAD~3, /testing:plan the auth module.
git diff --stat HEAD~N # or appropriate range
git diff --name-only HEAD~N
Classify each changed file:
| File type | Testing implication |
|---|---|
| Domain entity / value object | Unit tests (behavior, invariants, state transitions) |
| Command/query handler | Unit tests (logic) + integration tests (DI, pipeline) |
| API endpoint | Integration tests (HTTP round-trip, status codes, response shape) |
| Middleware / filter | Integration tests via the ecosystem's HTTP-test harness |
| Infrastructure (external services, DB clients) | Integration tests with real infrastructure |
| Configuration / DI registration | Integration tests (verify resolution, no runtime errors) |
| Project file / build infrastructure changes | Architecture tests (when the project has an architecture-test project) |
| UI components | E2E testing via browser automation (see /testing:run-e2e) |
| Analyzer / lint rules | Analyzer tests (verify diagnostic output) |
| Parser, serializer, pure transform, collection or stateful class | Property tests beside examples (invariants from the spec, a model or metamorphic relation; see /testing:write) |
| Replace, rewrite, migrate or port of existing behavior | Characterization or differential tests first (old output as a pin, intentional differences in a ledger; see /testing:write), then the usual rows for the new code |
| Parser, decoder or handler whose input is untrusted (request bodies, uploaded files, hook or webhook payloads, CLI arguments from another process) | Fuzz target: generated and mutated inputs fed to the entry point, asserting no crash, hang, unbounded resource use or failure other than the documented rejection, with a seed corpus of valid inputs; a parser matching the property row too gets both |
| Client of a service whose provider will run the verification, or an endpoint another service consumes | Consumer-driven contract test: the consumer records the requests it sends and the responses it relies on, and the provider's build verifies it still meets them. A public third-party API's provider runs none: plan its canned responses per testing:test-value (if enabled) instead |
When step 1 found no changed file in the range, nothing is planned: say there is nothing to classify and end there, skipping the rest of this process and the Output suggestions, with no template section and no test type named as considered or skipped.
For each change area, produce the plan below. Omit a fuzz-target or contract-test section when no changed code matches its row: do not print it empty, write it as "none", or list it under "Not testing".
Every planned test's entry names where its expected value comes from and cites
testing:test-value (if enabled) for that choice, canned responses for a third-party client
included.
Test names follow the project's documented pattern; when undocumented, mirror the ecosystem's idiom:
## Test Plan for [branch/PR description]
### Unit tests
- [ ] `{test name}` — {why this matters}; expected value: {source}, per `testing:test-value`
- [ ] ...
### Integration tests
- [ ] `{test name}` — {what this validates}; expected value: {source}, per `testing:test-value`
- [ ] ...
### Architecture tests
- [ ] {rule the structure must keep} — {if project structure changed}
### Property tests (if parsers, serializers, transforms or stateful classes changed)
- [ ] {Property stated from the spec} — {pattern: model, metamorphic, round trip}
### Pins (if replacing or migrating behavior)
- [ ] {Behavior pinned} — {recorded corpus, comparator, intentional-differences ledger}
### Fuzz targets (only if code whose input is untrusted changed; otherwise omit this section)
- [ ] {Entry point} — {input shape, seed corpus, what must not happen: crash, hang, unbounded memory}
### Contract tests (only if a service client or consumed endpoint changed; otherwise omit this section)
- [ ] {Consumer} → {provider interaction} — {requests sent, response fields relied on, where the provider verifies it}
### E2E verification (if UI/API changes; an API endpoint change counts even when no served app exists)
- [ ] Navigate to {endpoint}, verify {behavior}
- [ ] Submit {form}, confirm {response}
- [ ] Screenshot: {page} showing {expected state}
### Not testing (with rationale)
- {File}: pure contract, no behavior to test
- {File}: covered transitively by {consumer test}
Check existing tests against the plan:
Prioritize gaps by:
Present the test plan to the user. Then suggest:
/testing:write for identified unit/integration gaps/testing:run-e2e for UI/API verification scenarios, an API endpoint change included even when
no served app exists (/testing:run-e2e non-ui then covers it)/testing:write organize if new test projects are needed/testing:write
Writes the tests the plan names.
/testing:write/toolchain:check (if enabled) (SSOT for CLI invocation)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub melodic-software/claude-code-plugins --plugin testing9 skills in this plugin
/auditportability-ok: R6 kept-adapter operation - cant-fail-scan.shRead-only: find tests that cannot fail (assertion-free, tautological, vacuous, mock-only, dead asserts, snapshot-only, change detectors, retry-masking configs, test.only). JS/TS, Python, C#, Bash, PowerShell, Go. Use when: 'find tests that prove nothing', 'audit test quality', can't-fail CI gate (--check, --strict), or --persist-findings. Load it to judge any test, even a pasted one./check-visual-parityCheck visual parityHold UI pixel-for-pixel steady through a change: PNG screenshots of listed states before first edit (baseline), then at each green checkpoint counting differing pixels vs pixel_tolerance (compare). Never edits baseline. Use when plan phase has Parity contract line, refactor must leave UI unchanged, 'check visual parity', 'did this change the UI'./cleanupClean up low-value/tautological/vacuous/flaky tests in folder/whole repo's tests via /testing:audit findings: quarantine, rewrite (default), delete, merge, keep per test; mutation gate or --cannot-fail-only; unattended never commits. Use on existing test suites/tests: 'clean up these tests', 'prune the useless tests', 'fix the tests audit flagged'.Other plugins' skills for the same job