/test-analysis:review-test-casesfrom test-analysis
This 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.
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.
Review TC-ID test case specifications for completeness, accuracy, and quality before they are implemented in any execution framework. This is a quality gate — catch problems in the spec, not in the code.
Execution context: this review must run in a fresh subagent, not the agent that authored the spec. The orchestrator enforces this via the Task tool; the skill documents the contract so a drifting caller can see they're breaking it. Self-review reliably misses the gaps the author anchored on — an independent read-only context is the cheapest way to catch them.
Parse the spec file path from: $ARGUMENTS
If no argument provided, search for docs/qa/test-cases/*.md files and review the most recently modified one.
docs/qa/feature-map.md if it existsdocs/qa/exploration-report.md if it existsdocs/qa/exploration/*.md if they existdocs/qa/coverage-plan.md if it existsEvaluate every test case against each criterion. Track findings by severity:
| Check | What to Look For |
|---|---|
| Happy path present | At least one Critical-priority test covers the primary success flow end-to-end |
| Error paths covered (when applicable) | For features that depend on backend retrieval/submission, expect coverage for meaningful server/network failures. For collection/data-driven UIs, expect empty-state coverage. For auth-gated features, expect session/auth edge cases. Missing an applicable category is a BLOCKER; a clearly documented non-applicable category is acceptable |
| Boundary conditions | Min/max values, empty inputs, special characters, long strings |
| Authentication edge cases | Session expiry, unauthorized access, role-based differences (if applicable) |
| Navigation edge cases | Back/forward, direct URL access, refresh mid-flow |
| Missing critical user actions | Every user-critical action in scope should appear in at least one test case. Ancillary controls may be omitted if they are not material to the target journey |
| TC-ID floor | Non-trivial features (more than two routes or more than one primary interactive surface per the exploration report) require ≥15 TCs. Fewer = BLOCKER "exploration too shallow — return to capture-feature-evidence" |
| Functional-to-visibility ratio | Count TCs that assert a state change (URL transition, data mutation, observable side effect, element value change after an action) vs TCs that assert render existence only. State-change TCs must be ≥60% of the total. Below 60% = BLOCKER "visibility coverage masquerading as functional coverage" |
| Deferred cap | Count TCs marked deferred / total. >20% = BLOCKER "scope too narrow, revisit exploration". Each deferred TC must carry blocker + un-defer plan + scope fields — missing fields = BLOCKER on that item |
| Inventory coverage | Compare TC count to the Element Inventory in docs/qa/exploration-report.md. If fewer than 50% of inventory rows have at least one TC that exercises them functionally, BLOCKER "coverage not proportional to observed surface area" |
| Mapped-feature grouping | If feature-map.md marks the feature MULTI-SURFACE, expect one spec per mapped sub-feature or an explicit justification for a combined file. A monolithic combined spec with no justification is a BLOCKER |
| Check | What to Look For |
|---|---|
| Steps are concrete | "Click the Submit button" not "submit the form"; "Enter '[email protected]' in Email field" not "enter email" |
| Expected results are observable | Specific text, URL change, element state — not "page updates" or "works correctly" |
| Preconditions are explicit | Auth state, test data, feature flags, starting URL, viewport/browser assumptions, locale/timezone, and any execution-relevant environment note from exploration — nothing assumed |
| TC-IDs are sequential | No gaps, no duplicates, and use the canonical TC-<FEATURE>-<NNN> format |
| Priority is justified | Critical = blocks core journey; not everything is Critical |
| Categories are accurate | Happy Path vs Validation vs Edge Case — correctly classified |
| Execution-fragile controls are called out | Promoted TCs that rely on low-confidence selectors, viewport-specific layout, coordinate clicks, overlay interception, nth-match assumptions, or guessed DOM shape must carry a note or blocker; silence here is a WARNING at minimum |
This is the most important check. Test cases should trace back to behavior that was actually observed or deliberately triggered during exploration, not assumed.
Red flags for invented scenarios:
When suspicious: delegate a spot-check to a subagent with browser access (Task tool). Pass it the target URL, the specific TC-IDs under suspicion, and the claims to verify (element existence, error message text, validation behavior). Require structured evidence back, not prose — the same shape generate-test-cases uses:
Claim checked: <the TC-ID claim under suspicion>
Observed step: <what the subagent did>
URL: <current URL after action>
Observed controls:
- Submit button: role=button, name=/submit/i
Observed result: <what actually happened — matched / differed, and how>
Re-explore before automation = y and the
spec promotes it anyway without a note, treat that as a BLOCKEROutput a structured review with this format:
# Test Case Review: <feature>
**Spec file:** <path>
**Total test cases:** <count>
**Review date:** <date>
## Verdict: PASS | PASS WITH WARNINGS | NEEDS REVISION
## Blockers (<count>)
- **TC-<ID>**: <issue description>
## Warnings (<count>)
- **TC-<ID>**: <issue description>
## Suggestions (<count>)
- **TC-<ID>**: <issue description>
## Coverage Gaps
- <Missing scenario that should be added>
## Duplication
- **TC-<ID>** and **TC-<ID>**: <overlap description>
## Summary
<2-3 sentences on overall spec quality and what to address before implementation>
Example: 0 blockers + 2 warnings = PASS. 0 blockers + 3 warnings = PASS WITH WARNINGS. 1+ blockers = NEEDS REVISION regardless of warning count.
/review-test-cases docs/qa/test-cases/login.md
/review-test-cases docs/qa/test-cases/checkout.md
What SKILL.md sets; muted values are Claude Code's defaults
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.
/plan-test-coverageUse 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.
Other plugins' skills for the same job