Skip to main content
DocsAI reviewed Jul 21, 2026

DOC-TRACEABILITY

Ensure bidirectional traceability between requirements, hazards/risks, design, code, tests, and anomalies for medical device software.

v1.1.0New

Unsigned, install at your own risk

Unverified

This 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-traceability
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/meddev-skills-doc-traceability/SKILL.md

Setup guide →
0Save

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)

  1. ID Schema: Use stable IDs for requirements (REQ-###), hazards (HZ-###), risks/controls (RISK-CTRL-###), design (DES-###), tests (TEST-###), and anomalies (ANOM-###). Rationale: unambiguous linkage.
  2. Bidirectionality: Maintain trace both forward (REQ->DES->CODE->TEST) and backward (TEST->REQ). Rationale: completeness and impact analysis.
  3. Automation: Generate traceability matrices from managed artifacts (reqs tool + code tags + test metadata). Rationale: reduce drift.
  4. Change Impact: For each change, update trace links and assess affected items/tests. Rationale: controlled updates.
  5. Evidence Storage: Store trace outputs as release artifacts; version them with builds. Rationale: auditability.
  6. 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.
  7. 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.yaml or 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
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
meddev-authenticationDefine secure user/device authentication, session management, and RBAC suitable for medical device risk profiles. Use when working on authentication in medical device software.0 installsmeddev-state-machinesDefine explicit, testable state machines with safe states, controlled transitions, and error handling suited to medical device safety classes. Use when working on state machines in medical device software.0 installsmeddev-change-controlDefine controlled change-request workflow for software: impact analysis, approvals, verification scope, and regulatory submission flags. Configuration identification and baselines are in DOC-SCM (IEC 62304 Clause 8.1, 8.3); approved implementation and re-verification align with 8.2. Use when working on change control in medical device software.0 installsCONN-USBImplement safe USB device connectivity: class selection, enumeration handling, data validation, electrical and safety considerations.0 installsmeddev-ai-ml-medical-device-softwareAddress machine learning inside the regulated product (not LLM coding assistants): Good Machine Learning Practice (GMLP), training/validation data integrity, Predetermined Change Control Plans (PCCP) where applicable, drift monitoring, and linking models to ISO 14971 and software lifecycle controls. Use when working on ai ml medical device software in medical device software.0 installsTEST-HILValidate software with real or representative hardware, sensors, actuators, and timing, to uncover integration and safety issues not visible in simulation.0 installs

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.