/sdlc-documentation:02-test-planfrom sdlc-documentation
Produces or updates a detailed test plan with cases, data, environments, schedule, ownership, traceability, and exit evidence from an approved SRS and test strategy.
Ships in sdlc-documentation. 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.
test-strategy and consume it here.| Artefact | Source/provider | Required? | Behaviour when absent |
|---|---|---|---|
| Project _context/, approved requirements, and relevant architecture | Project owner and upstream phase skills | Required | Stop at a gap register; do not invent scope, thresholds, integrations, or owners. |
| Existing artefact, implementation, configuration, and evidence named below | Repository, delivery team, or service owner | Required when updating or assessing | Mark inaccessible items not assessed; do not treat them as passed. |
| Target audience, environment, risk tolerance, and authority | Requester and accountable owner | Required | Produce a read-only outline with explicit assumptions; do not mutate project or production state. |
| Artefact | Consumer | Observable acceptance condition |
|---|---|---|
| Detailed test plan | QA engineers, developers, and release owner | Every in-scope requirement and material risk maps to a test case, data need, environment, owner, expected result, and retained evidence. |
| Decision and gap register | Reviewer and downstream phase owner | Every assumption, rejected option, unresolved dependency, waiver, and owner is explicit. |
| Validation evidence | Release or governance reviewer | Checks identify command or method, date, result, evidence location, and all unassessed items. |
| Evidence | Minimum content | Acceptance |
|---|---|---|
| Traceability record | Source artefact, decision, output section, owner | No mandatory decision is source-free. |
| Quality-gate result | Check, expected result, observed result, evidence path | Failures and unavailable checks cannot appear as passes. |
| Review record | Reviewer, date, disposition, open actions | The consumer can reproduce the acceptance decision. |
If files, execution, network, rendering, environment access, fonts, or current evidence are unavailable, return the narrowest useful draft plus a gap register. Label affected checks not assessed, retain the intended acceptance oracle, and state who must supply or verify the missing evidence. Never convert an unavailable check into a pass.
| Choice | Action | Failure or risk avoided |
|---|---|---|
| Evidence is complete and authority is explicit | Derive cases and priorities from requirement criticality and product risk, then produce the plan. | Untraceable tests or effort spent on low-risk paths while critical paths remain uncovered. |
| A required source or approval is missing | Stop the affected branch; record the gap, owner, and unblock condition. | Fabricated requirements or unauthorised action. |
| Evidence conflicts across sources | Preserve both claims, identify the controlling owner, and request a recorded decision. | Silent selection of a convenient but wrong source. |
| A check cannot run in the available environment | Keep its oracle and mark it not assessed; require later execution evidence. | False assurance from capability limits. |
For a high-level design, turn its decisive assumption into a case with the same units, interval, population and build. Include the smallest counterexample that would invalidate the chosen design, the expected state visible to the caller after recovery, and the owner who must reconsider the decision on failure. Record predicted values separately from observed results.
not assessed, preserve the oracle, and name the verifier.test-strategy inside the plan. Fix: reference its policy and use this artefact for executable cases, resources, sequence, and evidence.Given FR-PAY-014 and a payment retry design, map successful, declined, timeout, duplicate-callback, and reconciliation paths to named cases. Record required fixtures and expected ledger or status outcomes. Stop if the retry authority or idempotency contract conflicts; resume after the accountable owner records the controlling decision.
This is the second skill in Phase 05 (Testing Documentation). It transforms the SRS functional and non-functional requirements into a detailed test plan containing test cases, test data definitions, schedule, resource allocation, and a requirement-to-test traceability matrix. Every "shall" statement in SRS Section 3.2 becomes a test case. The output conforms to BS ISO/IEC/IEEE 29119-3 Sections 7-8 and references the deterministic checklist for artifact completeness.
Test_Strategy.md exists in projects/<ProjectName>/<phase>/<document>/ with test levels, types, and criteria.SRS_Draft.md exists in projects/<ProjectName>/<phase>/<document>/ with functional requirements containing "shall" statements.acceptance_criteria.md exists in projects/<ProjectName>/<phase>/<document>/ for agile projects requiring acceptance-test mapping.| Attribute | Value |
|---|---|
| Inputs | projects/<ProjectName>/<phase>/<document>/SRS_Draft.md, projects/<ProjectName>/<phase>/<document>/Test_Strategy.md, projects/<ProjectName>/<phase>/<document>/acceptance_criteria.md (optional) |
| Output | projects/<ProjectName>/<phase>/<document>/Test_Plan.md |
| Tone | Detailed, case-driven, QA-facing |
| Standard | BS ISO/IEC/IEEE 29119-3 Sec 7-8 |
| File | Location | Required | Purpose |
|---|---|---|---|
| SRS_Draft.md | projects/<ProjectName>/<phase>/<document>/SRS_Draft.md | Yes | Functional (Section 3.2) and non-functional (Sections 3.3, 3.5) requirements as test case sources |
| Test_Strategy.md | projects/<ProjectName>/<phase>/<document>/Test_Strategy.md | Yes | Test levels, types, tools, and criteria governing test case structure |
| acceptance_criteria.md | projects/<ProjectName>/<phase>/<document>/acceptance_criteria.md | No | Agile acceptance criteria for mapping to UAT test cases |
| File | Location | Description |
|---|---|---|
| Test_Plan.md | projects/<ProjectName>/<phase>/<document>/Test_Plan.md | Complete test plan with test cases, traceability matrix, schedule, and resources |
Follow these nine steps in order. Halt and notify the user if a required input file is missing.
Read SRS_Draft.md and Test_Strategy.md from projects/<ProjectName>/<phase>/<document>/. Optionally read acceptance_criteria.md from projects/<ProjectName>/<phase>/<document>/ if it exists. Log the absolute path of each file read. If any required file is missing, halt execution and report the gap.
Parse SRS Section 3.2 and extract every "shall" statement as a testable requirement. Keep approved requirement IDs. For an unnumbered statement, assign a collision-free local ID and cite its source section. Log the total count of extracted requirements.
If acceptance_criteria.md exists, map each acceptance criterion to its corresponding SRS requirement and note which test cases shall validate it at the UAT level. If the file does not exist, skip this step and note that UAT cases derive from SRS requirements directly.
Document the selected test design techniques (equivalence partitioning, boundary values, state machine testing, decision tables, use case testing) and cite the applicable 29119-3 clause (§7.3.3). Each technique shall reference the requirements it exercises. Where three or more parameters interact (configuration, permission, device, locale or currency matrices), add pairwise combinatorial design with a coverage statement per references/pairwise-combinatorial-test-design.md.
Establish the test case format using the nine normative 29119-3 fields: TC-ID, Objective/Purpose, Priority, Traceability to requirement ID, Preconditions, Test Input, Expected Result (with deterministic pass/fail), Actual Result (filled at execution), and Test Result (Pass/Incident). Include Steps (numbered actions) beneath the structured fields. For a user-facing state transition, add state, first information the user must see, primary action (or reason no action is appropriate), and observed focus/reading order to the case. Test each material state separately from the same task brief. Attach the actual rendered screen and observation at execution.
For each functional requirement extracted in Step 2, generate one or more test cases. Each test case shall define preconditions, sequential steps, and a deterministic expected result. Group test cases by SRS feature (Section 3.2.x subsections). When the SRS carries FR-DOCNUM items, instantiate TC-DOCNUM-001 to TC-DOCNUM-020 from the document numbering standard with project data; at minimum contiguity under concurrency, rollback burns no number, replay returns the same number, void keeps its number, draft delete leaves no gap and history untouched after migration.
For a native app that sends a consequential request, add a case where the service completes it but the app loses the acknowledgement. Reopen the same user journey after replacing the process. Pair the visible outcome with an independent count and identity check at the service. Write separate test rows for each supported platform and distinguish simulator, emulator and physical device evidence.
For each affected phone journey, carry the design review criteria into acceptance. Assign an observer to give a representative first-time or returning user a concrete task. Specify the shortest intended path, primary action, device, assistive settings and time budget. Record completion, steps, assistance, errors and elapsed time. If no participant is available, leave that observation open and name the follow-up owner.
Keep a same-process view recreation as a control. In a separate case, deliver the earlier search or write response after a different item becomes current. State which item the user must see and which service record must exist. A passing count alone can conceal a wrong-item receipt. Preserve approved requirement IDs when linking tests. See the mobile trial and decision record.
Generate test cases for non-functional requirements: Performance tests from SRS Section 3.3 (response time, throughput, capacity), Security tests from SRS Section 3.5.3 (authentication, authorization, data protection). Each NFR test case shall include measurable acceptance thresholds.
For algorithm-dependent budgets, trace the NFR, ADR, oracle-first test and release decision. The workflow evidence procedure covers build, query and end-to-end receipts and reopening evidence.
For each test case group, define the test data required: data entities, volume, generation method (manual, scripted, anonymized production data), and precondition data state. Identify shared test data dependencies across test case groups.
Define the test execution schedule: phases aligned with Test_Strategy.md test levels, estimated duration per phase, resource assignments (roles, not named individuals), and dependencies between phases. Identify parallel execution opportunities.
Generate a requirement-to-test traceability matrix mapping every REQ-ID to its TC-IDs, confirming full coverage. Flag any requirements without test cases as coverage gaps. Before writing output, verify the deterministic gate in ../references/29119-deterministic-checks.md has been satisfied (mandatory artifact tree, clause annotations, entry/exit criteria). Write the completed document to projects/<ProjectName>/<phase>/<document>/Test_Plan.md. Log the total count of test cases, coverage percentage, and any gaps.
The generated Test_Plan.md shall contain these sections in order: Document Header (project name, date, version, standards), 1. Test Scope, 2. Test Case Summary Table, 3. Detailed Test Cases (grouped by feature), 4. Test Data, 5. Schedule, 6. Resources, 7. Traceability Matrix, Appendix A: Coverage Gap Report.
manifest.mdAfter generating all section files, create (or overwrite) manifest.md in this document's directory listing the section files in the correct assembly order:
# Document Manifest — Test Plan
# Generated by test-plan. Edit to reorder or exclude sections before building.
01-test-scope.md
02-test-cases.md
03-test-data.md
04-schedule.md
05-resources.md
06-traceability.md
07-coverage-gaps.md
This ensures scripts/build-doc.sh assembles sections in the intended order rather than alphabetical fallback.
| Pitfall | Remedy |
|---|---|
| Test cases without preconditions | Every test case shall state the required system state before execution |
| Expected results without pass/fail criteria | Every expected result shall define a deterministic observable outcome |
| NFR test cases without measurable thresholds | Performance and security tests shall include numeric acceptance criteria |
| Missing traceability for edge-case requirements | Every "shall" statement in SRS Section 3.2 shall have at least one test case |
Test_Plan.md exists in projects/<ProjectName>/<phase>/<document>/ with all seven sections populated.| Direction | Skill | Relationship |
|---|---|---|
| Upstream | 01-test-strategy | Consumes test levels, types, tools, and criteria framework |
| Upstream | Phase 02 (Requirements Engineering) | Consumes SRS_Draft.md for requirement extraction |
| Downstream | 03-test-report | Feeds test case inventory and traceability matrix for report template |
| Downstream | Phase 09 (Governance) | Feeds test plan as audit evidence for compliance verification |
logic.prompt -- Executable prompt containing the step-by-step test plan generation logic.README.md -- Quick-start guide for this skill.README.md (opens in a new tab)examples/representative/README.md (opens in a new tab)examples/representative/expected-output/tc.md (opens in a new tab)examples/representative/inputs/functional-requirements.md (opens in a new tab)logic.prompt (opens in a new tab)references/pairwise-combinatorial-test-design.md (opens in a new tab)references/workflow-evidence.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub peterbamuhigire/chwezi-sdlc-documentation --plugin sdlc-documentation160 skills in this plugin
/01-deployment-guideUse when producing or updating deployment guide for release prerequisites, migration choreography, verification, rollback, and ownership. Use runbook for the neighbouring concern; this skill owns the named document contract and its acceptance evidence./01-high-level-designUse when approved requirements need a system-level architecture with boundaries, components, critical flows, deployment topology and ADRs, or an as-built design must be recovered from existing code; use system-overview for orientation, low-level-design for module internals, and infrastructure-design for infrastructure depth./01-initialize-srsUse when writing a new SRS (software requirements specification) for a business system or module: create the Waterfall SRS workspace, IEEE structure, identifiers and source context; use context-engineering next for boundaries and actors.Other plugins' skills for the same job