/test-analysis:plan-test-coveragefrom test-analysis
Use before writing specs or executable tests to decide what coverage is needed first. This shared planning skill consumes exploration evidence, existing tests, and related artifacts to produce `docs/qa/coverage-plan.md` with prioritized P0/P1/P2 coverage and TC-IDs. When `docs/qa/exploratory-charter.md` exists (produced by `exploratory-test-writer`), use it as optional risk-framing context; do not require it and do not let it replace grounded exploration evidence. Use it for requests like "what tests do I need", "coverage gaps", or "what TC-IDs are missing". It plans; it does not perform the canonical exploration step and it does not write executable tests.
Ships in test-analysis. 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.
Plan what to test by consuming shared exploration evidence and existing coverage.
This skill may consume docs/qa/exploratory-charter.md when it exists, but that file is optional
context. docs/qa/exploration-report.md remains the canonical grounded-evidence artifact whenever
real product behavior is required.
When docs/qa/feature-map.md and docs/qa/exploration/*.md exist, plan per sub-feature first
and then add cross-subfeature journeys on top of that evidence.
Match the planning effort to the request:
When in doubt, start standard and ask: "I've drafted a coverage plan — want me to go deeper on any area, or is this level right?"
Parse input — extract the target URL and feature area from: $ARGUMENTS
Load the evidence base:
docs/qa/feature-map.md when the feature may have been decomposeddocs/qa/exploration-report.md when real product evidence is required for the target
featuredocs/qa/exploration/*.md files when the feature map identifies sub-featuresdocs/qa/exploratory-charter.md when it exists and the feature came through the
exploratory workflowdocs/qa/test-cases/*.md specs for the same featureTreat the evidence sources differently:
feature-map.md supplies the decomposition, shared dependencies, and the expected exploration
unitsexploration-report.md supplies observed behavior, selectors, copy, and blockersdocs/qa/exploration/*.md supplies the deep evidence for each scoped sub-featureexploratory-charter.md supplies mission, risk framing, and investigation focusExecution-relevant environment notes, Selector confidence, and
Re-explore before automation fields from the exploration artifactsCheck existing test coverage:
Grep for feature keywords in **/*.spec.ts, **/*.test.ts
TC-<FEATURE>-<NNN> for every planned test, regardless of category. Category belongs in the plan metadata, not the ID.Block when required exploration evidence is missing:
docs/qa/exploration-report.md is missing or clearly stale, stop and run
capture-feature-evidencedocs/qa/exploratory-charter.md as a substitute for missing exploration
evidenceIdentify test categories — for the feature, determine tests needed across:
Not all categories apply to every project. Include Accessibility, Visual Regression, and Cross-Browser sections only when the project has explicit requirements, tooling, or configuration for them. Omit them from the output plan if not relevant — a focused plan is more useful than a padded one.
Flag execution-fragile controls before promoting coverage:
Re-explore before automation = y, do not promote
that TC as ordinary executable coverage without carrying that note forward.Prioritize — rank tests by:
If an exploratory charter is available, use it to sharpen final prioritization and ordering:
Plan by sub-feature when mapped:
feature-map.md says MULTI-SURFACE, create coverage sections for each mapped sub-featureWrite docs/qa/coverage-plan.md:
## Test Coverage Plan: <Feature>
**URL:** <url>
**Date:** <date>
**Evidence basis:** exploration-report | exploration-report + exploratory-charter | repo-only | mixed
**Existing coverage:** <N tests already exist / none>
**Status:** COMPLETE | PARTIAL | BLOCKED
### Feature Map Summary (include when `docs/qa/feature-map.md` exists)
- Decomposition verdict: SINGLE-SURFACE | MULTI-SURFACE
- Sub-features: <list of slugs and names>
### Already Covered
- TC-FEATURE-001: <description> (in `tests/feature.spec.ts`)
- ...
### Proposed New Tests
#### Sub-Feature Coverage (include once per mapped sub-feature)
##### <Sub-feature name>
| TC-ID | Description | Priority | Notes |
|-------|-------------|----------|-------|
| TC-FEATURE-001 | ... | P0 | derived from `<subfeature>.md`; execution note: none |
#### P0 — Critical Path
| TC-ID | Description | Why Critical |
|-------|-------------|-------------|
| TC-FEATURE-001 | Happy path: user completes full flow | Core revenue path |
#### P1 — Validation & Errors
| TC-ID | Description | Why Important |
|-------|-------------|--------------|
| TC-FEATURE-002 | Submit with empty required fields | Common user error |
#### P2 — Edge Cases
| TC-ID | Description | Notes |
|-------|-------------|-------|
| TC-FEATURE-003 | Special characters in search input | Unicode handling |
#### Accessibility (include if project has accessibility requirements or WCAG compliance goals)
| TC-ID | Description | WCAG Criterion |
|-------|-------------|----------------|
| TC-FEATURE-004 | Keyboard-only navigation through flow | 2.1.1 Keyboard |
| TC-FEATURE-005 | Form errors announced to screen readers | 1.3.1 Info and Relationships |
#### Visual Regression (if project has visual testing setup)
| TC-ID | Description | Viewport |
|-------|-------------|----------|
| TC-FEATURE-006 | Layout consistency at mobile width | 375x812 |
#### Cross-Browser Matrix (include if project runs tests across multiple browsers)
| Browser | Priority | Reason |
|---------|----------|--------|
| Chromium | P0 | Primary target |
| Firefox | P1 | Second largest desktop share |
| WebKit/Safari | P1 | Required for iOS users |
### Evidence Gaps / Blockers
- <missing exploration detail or blocker, or "None">
### Execution Fragility Notes
- <TC-ID or control>: <low-confidence selector / viewport dependency / re-explore note, or "None">
### Exploratory Inputs Applied (include only when `docs/qa/exploratory-charter.md` was used)
- <risk hypothesis or mission statement that changed prioritization>
- <exploration gap that remains open and constrains planning>
### Recommended Order
1. Write P0 tests first (N tests)
2. Then P1 validation + accessibility basics (N tests)
3. P2 edge cases, visual regression, and performance as time allows
### Next Steps
- Invoke `generate-test-cases` with this plan and the exploration report
- Hand off the reviewed spec to the execution-layer plugin
exploratory-charter.md as optional amplification, not a prerequisite.feature-map.md as the decomposition contract when it exists; do not ignore mapped
sub-features and plan everything as one blob./plan-test-coverage https://myapp.com/checkout Checkout flow
/plan-test-coverage https://myapp.com/login Authentication
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub lespaceman/athena-workflow-marketplace --plugin test-analysis3 skills in this plugin
/generate-test-casesUse to write detailed TC-ID test case specifications for a web app feature, not executable code. This shared skill consumes `docs/qa/exploration-report.md`, `docs/qa/coverage-plan.md`, and existing coverage artifacts to write structured specs under `docs/qa/test-cases/`. Use it after coverage planning or when asked for test cases or TC-IDs. It does not write framework-specific test code.
/review-test-casesThis skill should be used when a quality review of TC-ID test case specifications is needed before any framework-specific implementation begins. It reviews the spec artifact only; it does not implement or rewrite tests. Triggers: "review test cases", "check test specs", "review TC-IDs", "audit test coverage", "are my test cases good", "validate test specs", "review docs/qa/test-cases/*.md", "check for gaps in test cases", "review before writing tests", and "quality check test specs". Inserted as the shared quality gate between `generate-test-cases` and execution-layer authoring — catches gaps, duplication, weak assertions, missing error paths, and invented scenarios before they get encoded into framework-specific code.