DOC-TRACEABILITY
Ensure bidirectional traceability between requirements, hazards/risks, design, code, tests, and anomalies for medical device software.
Unsigned, install at your own risk
UnverifiedThis skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.
Install this skill
No account required. Pick your tool, or use the command that detects it for you.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install meddev-skills-doc-traceabilityManual setup by platform
Claude Code
~/.claude/skills/meddev-skills-doc-traceability/SKILL.md
Instructions
Requirements Traceability
Purpose
Ensure bidirectional traceability between requirements, hazards/risks, design, code, tests, and anomalies for medical device software.
When to Apply
- All lifecycle phases; especially during changes and release preparation.
Requirements (testable)
- ID Schema: Use stable IDs for requirements (
REQ-###), hazards (HZ-###), risks/controls (RISK-CTRL-###), design (DES-###), tests (TEST-###), and anomalies (ANOM-###). Rationale: unambiguous linkage. - Bidirectionality: Maintain trace both forward (REQ->DES->CODE->TEST) and backward (TEST->REQ). Rationale: completeness and impact analysis.
- Automation: Generate traceability matrices from managed artifacts (reqs tool + code tags + test metadata). Rationale: reduce drift.
- Change Impact: For each change, update trace links and assess affected items/tests. Rationale: controlled updates.
- Evidence Storage: Store trace outputs as release artifacts; version them with builds. Rationale: auditability.
- SDP Traceability [Class A, B, C]: Maintain trace from system requirements to software requirements, system tests, and software risk controls per development plan. Rationale: 5.1.1 c.
- Software Hazard Chain [Class B, C]: Maintain links: hazardous situation → software item → cause → risk control → control verification. Rationale: 7.3.3.
Recommended Practices
- Keep a
traceability.yamlor use ALM exports to CSV/HTML for submissions. - Include trace tags in code comments and test names.
- Integrate trace checks in CI (e.g., missing links).
Patterns
Traceability entry (YAML):
# REQ-TRC-01
REQ-62304-102:
design: [DES-PUMP-01]
code: [pump_stop_on_door_open]
tests: [TEST-410, TEST-411]
hazards: [HZ-07]
risks: [RISK-CTRL-19]
CI check (concept):
Validate: every TEST-* references a REQ-*; fail build on missing link.
Anti-Patterns (risks)
- Trace only in one direction -> risk: missing coverage.
- Manual spreadsheets without automation -> risk: drift and errors.
- Unlabeled code/tests -> risk: broken trace in audits.
- Trace outputs not baselined -> risk: mismatch to released build.
Verification Checklist
- IDs consistent and present across artifacts.
- Forward/backward traces maintained; gaps resolved.
- Trace matrices generated automatically and stored per release.
- Change impact updates traces and triggers required tests.
- CI checks for missing/invalid links in code/tests.
- Software hazard trace chain maintained for Class B/C (7.3.3).
Traceability
- Central
traceability.yaml/tool export; code/test tags; release-stored matrices.
References
- IEC 62304:2006+A1:2015, 5.1.1 c, 7.3.3, 5.3.6 (trace analyses).
REG-IEC62304-SWRM,DOC-SW-REQ.- ISO 14971:2019 for hazard-to-control linkage.
- FDA/MDR submission expectations for trace matrices.
Changelog
- 1.1.0 (2026-05-21): Added 5.1.1 c and 7.3.3 software hazard trace chain.
- 1.0.0 (2026-01-04): Initial traceability skill with IDs, automation, and CI checks.
Audit History
- 2026-01-04: Audit performed. Verified:
- IEC 62304 traceability (5.1-5.6) references accurate
- ISO 14971 hazard-to-control linkage correctly noted
- FDA/MDR trace matrix expectations appropriate
Security
Reviews (0)
Related skills
Browse all →More from Medical Device Skills
View source →More Docs skills
Browse category →Frequently asked questions about DOC-TRACEABILITY
What does the DOC-TRACEABILITY skill do?
Ensure bidirectional traceability between requirements, hazards/risks, design, code, tests, and anomalies for medical device software. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the DOC-TRACEABILITY skill?
Run `npx @skills-hub-ai/cli install meddev-skills-doc-traceability` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/meddev-skills-doc-traceability/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does DOC-TRACEABILITY work with?
DOC-TRACEABILITY runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the DOC-TRACEABILITY skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use DOC-TRACEABILITY after installing it?
In Claude Code, type `/meddev-skills-doc-traceability` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the DOC-TRACEABILITY skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.