System Test Records [Class A, B, C]: For system testing, retain protocol reference, pass/fail with anomaly list, software version tested, hardware/software configuration, test tools, date, and tester identity. Rationale: 5.7.5.
Retest Records [Class A, B, C]: After changes, test documentation includes the same record elements for retest/regression (align with DOC-PROBLEM-RES). Rationale: 9.8.
Recommended Practices
Use IDs for test plans (TPL-###), cases (TC-###), protocols (TPR-###), and reports (TRP-###).
Include data sets and seeds where applicable.
For automation, capture logs and artifacts (coverage, waveforms, power traces).
Patterns
Test plan snippet (Markdown):
TPL-210: Pump Safety Verification Plan
Scope: Class C control loop, door-open safety
Entry: unit/int tests pass; firmware v1.3.0
Exit: all TC pass; defects triaged; coverage targets met
Trace: REQ-62304-102, HZ-07, RISK-CTRL-19
Protocol entry (table):
Step | Action | Expected
1 | Open door sensor | Motor stops within 50 ms; alarm active
System test records include version, configuration, tools, date, tester (5.7.5).
Retest after changes includes full record fields (9.8).
Traceability
IDs (TPL-###, TC-###, TPR-###, TRP-###) linked to REQ-### and HZ-###; stored with release artifacts.
References
IEC 62304:2006+A1:2015, 5.7.5 (system test records), 9.8 (retest documentation).
DOC-PROBLEM-RES, TEST-INTEGRATION, CICD-RELEASE.
FDA/MDR submission formats for test evidence (device-specific).
Changelog
1.1.0 (2026-05-21): Added 5.7.5 and 9.8 mandatory test record fields.
1.0.0 (2026-01-04): Initial test documentation skill with plans, protocols, and reports.
Audit History
2026-01-04: Audit performed. Verified:
IEC 62304 verification documentation expectations accurate
FDA/MDR submission format references appropriate
1---2name: test-docs3description: Test Documentation4---56# Test Documentation78## Purpose9Define structure and content for test plans, protocols, and reports that support regulatory submissions and internal verification.1011## When to Apply12- Planning and executing verification/validation across unit, integration, system, and HIL.13- Preparing evidence for submissions or audits.1415## Requirements (testable)161. Test Plan: Objectives, scope, environment, roles, entry/exit criteria, and traceability to requirements/risks. Rationale: structured verification.172. Protocols: Step-by-step procedures, inputs, expected results, and acceptance criteria; include negative cases. Rationale: repeatability.183. Reports: Actual results, deviations, defects, and conclusion vs acceptance criteria. Rationale: evidence of execution.194. Traceability: Each test case links to requirements/hazards; matrices maintained. Rationale: completeness.205. Configuration Control: Environments, tools, and versions recorded; reproducible setups. Rationale: consistency.216. System Test Records [Class A, B, C]: For system testing, retain protocol reference, pass/fail with anomaly list, software version tested, hardware/software configuration, test tools, date, and tester identity. Rationale: 5.7.5.227. Retest Records [Class A, B, C]: After changes, test documentation includes the same record elements for retest/regression (align with `DOC-PROBLEM-RES`). Rationale: 9.8.2324## Recommended Practices25- Use IDs for test plans (`TPL-###`), cases (`TC-###`), protocols (`TPR-###`), and reports (`TRP-###`).26- Include data sets and seeds where applicable.27- For automation, capture logs and artifacts (coverage, waveforms, power traces).2829## Patterns30Test plan snippet (Markdown):31```markdown32TPL-210: Pump Safety Verification Plan33Scope: Class C control loop, door-open safety34Entry: unit/int tests pass; firmware v1.3.035Exit: all TC pass; defects triaged; coverage targets met36Trace: REQ-62304-102, HZ-07, RISK-CTRL-1937```3839Protocol entry (table):40```41Step | Action | Expected421 | Open door sensor | Motor stops within 50 ms; alarm active43```4445Report excerpt:46```markdown47TRP-210 Result: PASS48Deviations: None49Defects: DEF-88 (UI lag) - not safety relevant50```5152System test record (YAML):53```yaml54test_record:55 protocol: TPR-SYS-21056 result: pass57 anomalies: []58 software_version: 1.3.059 configuration: hw_rev_B2, host_test_runner_ubuntu2260 tools: [hil_runner 2.1, logic_analyzer_fw 0.9]61 date: 2026-05-2062 tester: jdoe63```6465## Anti-Patterns (risks)66- Missing traceability -> risk: unverifiable coverage.67- Only positive tests documented -> risk: gaps in error handling evidence.68- Uncontrolled environments -> risk: irreproducible results.69- Reports without deviations/defects -> risk: incomplete transparency.7071## Verification Checklist72- [ ] Test plan exists with scope, criteria, and traceability.73- [ ] Protocols include steps, inputs, expected results (positive/negative).74- [ ] Reports capture actual results, deviations, defects, and conclusions.75- [ ] Environments/tools/configurations recorded.76- [ ] Traceability matrix maintained requirements↔tests.77- [ ] System test records include version, configuration, tools, date, tester (5.7.5).78- [ ] Retest after changes includes full record fields (9.8).7980## Traceability81- IDs (`TPL-###`, `TC-###`, `TPR-###`, `TRP-###`) linked to `REQ-###` and `HZ-###`; stored with release artifacts.8283## References84- IEC 62304:2006+A1:2015, 5.7.5 (system test records), 9.8 (retest documentation).85- `DOC-PROBLEM-RES`, `TEST-INTEGRATION`, `CICD-RELEASE`.86- FDA/MDR submission formats for test evidence (device-specific).8788## Changelog89- 1.1.0 (2026-05-21): Added 5.7.5 and 9.8 mandatory test record fields.90- 1.0.0 (2026-01-04): Initial test documentation skill with plans, protocols, and reports.9192## Audit History93- **2026-01-04**: Audit performed. Verified:94 - IEC 62304 verification documentation expectations accurate95 - FDA/MDR submission format references appropriate
Run npx skillmds@latest add aminalam/test-docs in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Test Documentation It is listed under Docs & Writing on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
AminAlam (@aminalam) published this skill. Their other Agent Skills are listed on their SkillMD profile.