DOC-SW-REQ
Guide creation, verification, and maintenance of software system requirements derived from system needs (IEC 62304:2006+A1:2015, 5.2)—with content appropriate to the device, risk controls embedded for Class B/C, and evidence that requirements are testable and traceable.
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-sw-reqManual setup by platform
Claude Code
~/.claude/skills/meddev-skills-doc-sw-req/SKILL.md
Instructions
Software Requirements Analysis
Purpose
Guide creation, verification, and maintenance of software system requirements derived from system needs (IEC 62304:2006+A1:2015, 5.2)—with content appropriate to the device, risk controls embedded for Class B/C, and evidence that requirements are testable and traceable.
When to Apply
- Defining or updating software requirements before design or implementation.
- Refactoring features that change inputs, outputs, alarms, security, or clinical behaviour.
- Adding SOUP, connectivity, or UI flows that need explicit software requirements.
- Preparing verification plans that must cover all software requirements (5.7).
Requirements (testable)
- Derive from System Needs [Class A, B, C]: Document software system requirements from system-level needs; for software-only devices, align system and software requirement sets explicitly. Rationale: 5.2.1.
- Content Coverage [Class A, B, C]: Address applicable categories—functional capability, inputs/outputs, external interfaces, software-driven alarms/warnings/messages, security, user-interface behaviour, data structures, installation/site constraints, operation/maintenance, IT-network behaviour, user maintenance, and applicable regulatory needs. Rationale: 5.2.2 (interpretation: engineering checklist, not exhaustive copy).
- Risk Controls in Requirements [Class B, C]: Include software-implemented risk control measures in requirements when identified by risk management. Rationale: 5.2.3.
- Re-evaluate Device Risk [Class A, B, C]: When software requirements are established or materially changed, re-evaluate device risk analysis and update as needed. Rationale: 5.2.4.
- Keep System Requirements Current [Class A, B, C]: Re-evaluate and update related system requirements when software requirements change. Rationale: 5.2.5.
- Requirements Verification [Class A, B, C]: Verify and document that software requirements implement system needs (including risk controls), are non-contradictory, unambiguous, testable, uniquely identified, and traceable to system requirements or other approved sources. Rationale: 5.2.6.
Recommended Practices
- Use stable IDs (
REQ-62304-###) in a managed file (e.g.requirements.yaml), not only in code comments. - Add explicit negative, boundary, and security abuse cases per requirement where safety-relevant.
- Tag requirements with safety class of the implementing item when known.
- Cross-reference usability needs (IEC 62366) and cybersecurity expectations in dedicated requirement subsections.
Patterns
Requirement entry (YAML):
requirements:
- id: REQ-62304-102
class: Class C
summary: Stop infusion within 50 ms when door open sensor asserts
sources: [SYS-REQ-44]
risk_controls: [RISK-CTRL-19]
categories: [functional, alarms, timing]
verification: [TEST-201, TEST-410]
negative_cases:
- sensor bounce within 50 ms window
- door open during self-test
Security and network excerpt:
- id: REQ-62304-210
class: Class B
summary: Reject BLE pairing without LE Secure Connections
categories: [security, interfaces]
verification: [TEST-BLE-03]
Anti-Patterns (risks)
- Requirements only in tickets or chat, not under configuration control -> risk: traceability and audit gaps.
- Vague acceptance criteria ("fast enough", "secure") -> risk: 5.2.6 verification failure.
- Missing risk control requirements for Class B/C -> risk: controls implemented but not verified against needs.
- System requirements not updated when software scope grows -> risk: device-level inconsistency.
Verification Checklist
- Software requirements derived from documented system needs.
- Applicable content categories addressed for the device type.
- Class B/C: software risk controls reflected in requirements.
- Device risk analysis re-evaluated after requirement changes.
- System requirements updated when software requirements change.
- Verification record shows testability, uniqueness, consistency, and traceability.
Traceability
- Map
REQ-###↔SYS-REQ-###↔HZ-###/RISK-CTRL-###↔TEST-###↔ design (DES-###). - See
DOC-TRACEABILITYfor matrix conventions.
References
- IEC 62304:2006+A1:2015, 5.2 (software requirements analysis).
- ISO 14971:2019 (risk control inputs to requirements).
REG-IEC62304-SWRM(Clause 7 controls in requirements).- ISO/IEC 25010 (informative quality characteristics for requirement completeness).
Changelog
- 1.0.0 (2026-05-21): Initial skill for IEC 62304 5.2 software requirements analysis.
Security
Reviews (0)
Related skills
Browse all →More from Medical Device Skills
View source →More Docs skills
Browse category →Frequently asked questions about DOC-SW-REQ
What does the DOC-SW-REQ skill do?
Guide creation, verification, and maintenance of software system requirements derived from system needs (IEC 62304:2006+A1:2015, 5.2)—with content appropriate to the device, risk controls embedded for Class B/C, and evidence that requirements are testable and traceable. 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-SW-REQ skill?
Run `npx @skills-hub-ai/cli install meddev-skills-doc-sw-req` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/meddev-skills-doc-sw-req/ 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-SW-REQ work with?
DOC-SW-REQ 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-SW-REQ 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-SW-REQ after installing it?
In Claude Code, type `/meddev-skills-doc-sw-req` (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-SW-REQ 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.