SkillsLib.ai

Safety-Critical Medical Device Firmware Code Review

Review medical device firmware for safety, compliance, and critical defects

0.0(0 reviews)
100+ downloads
Updated Sep 2026

What You Can Do

This skill performs rigorous code review of safety-critical medical device firmware, identifying compliance gaps, security vulnerabilities, and design defects that could impact patient safety. You submit firmware code snippets or full modules, and Claude analyzes them against FDA guidance, IEC 62304 standards, and embedded systems best practices. The skill flags issues before they reach certification or production, categorizes risk levels, and provides specific remediation guidance.

Features

Static analysis against FDA guidance (21 CFR Part 11) and IEC 62304 standards
Detection of memory safety issues

buffer overflows, use-after-free, race conditions

Interrupt handling and real-time determinism validation with WCET analysis
Security vulnerability scanning

cryptographic misuse, unvalidated inputs, hardcoded secrets

Compliance gap identification with mapped remediation suggestions
Risk categorization (critical/major/minor) with patient safety impact assessment
Code pattern analysis for regulatory red flags and design anti-patterns
Traceability requirement validation against your requirements documentation

Example Output

Code Review Summary

File: patient_monitor_v2.1.c
Risk Level: CRITICAL (2 issues found)

Issue #1: Buffer Overflow in Sensor Handler (CRITICAL)

Location: Line 127, memcpy(buffer, sensor_data, length);
Problem: No bounds checking on incoming sensor data
Risk: Stack overflow → arbitrary code execution → device compromise
FDA Guideline: 21 CFR Part 11.10(e) — software validation
Remediation: Add bounds check: if (length > BUFFER_MAX) return ERROR_OVERFLOW;

Issue #2: Unprotected Shared State (MAJOR)

Location: Lines 45-63, waveform_data race condition
Problem: Interrupt handler and main loop access waveform_data without synchronization
Risk: Torn writes → corrupted vital sign displays → clinical misdiagnosis
IEC 62304 Clause: 7.3.4 (FMEA mitigation)
Remediation: Wrap access with mutex_lock/unlock


Compliance Scorecard

  • ✅ Input validation: 3/5 functions compliant
  • ⚠️ Memory safety: 1 critical defect found
  • ❌ Real-time determinism: No WCET analysis
  • ✅ Approved cryptography: AES-256 (compliant)
  • ⚠️ Error handling: Missing recovery paths in 2 places

What's Included

  • SKILL.md: Complete firmware review methodology with decision trees and checklists
  • FDA 21 CFR Part 11 Compliance Checklist: Automated validation against software requirements
  • IEC 62304:2015 Traceability Worksheet: Map code to design and verification documents
  • Common Medical Device Code Defects Library: Pattern reference for buffer overflows, race conditions, crypto misuse
  • Risk Assessment Template: Quantify patient safety impact for each finding
  • Remediation Response Tracker: Document fixes and evidence of resolution

Who It's For

  • Firmware engineers preparing code for FDA 510(k) or PMA submissions
  • Medical device QA/compliance specialists reviewing design changes and vendor code
  • Embedded systems architects designing patient-facing or life-critical modules
  • Regulatory affairs teams preparing for pre-submission meetings with FDA
  • Clinical engineering teams validating third-party or legacy device firmware

Best For

  • Pre-certification code review (identify defects before FDA inspection)
  • Security vulnerability assessment in connected medical devices
  • Compliance gap analysis — verify firmware meets IEC 62304 and FDA requirements
  • Post-incident forensics — root cause analysis after adverse events
  • Vendor firmware vetting — evaluate firmware from acquired or partnered companies

You might also like

Site Monitoring Compliance & Deviation Auditor
$45
Site Monitoring Compliance & Deviation Auditor

This skill enables you to automatically audit your websites against compliance standards and detect deviations from expected baselines. You can track regulatory requirements, identify policy violations, and generate compliance reports with actionable remediation steps. Monitor multiple sites simultaneously and maintain detailed audit trails for compliance documentation.

Chemical Process Safety Analyzer
$40
Chemical Process Safety Analyzer

Analyze chemical processes systematically to identify hazards, assess risks, and generate safety recommendations. You can perform HAZOP analyses, evaluate compliance with industry standards, conduct root-cause analysis of incidents, and develop emergency response procedures. The skill guides you through structured safety reviews that reduce the likelihood of accidents and regulatory violations.

Injectable Formulation Development & Troubleshooting
$40
Injectable Formulation Development & Troubleshooting

You'll develop systematic approaches to injectable formulation design, from API selection through sterilization strategy. Claude helps you troubleshoot failed batches by analyzing root causes, recommends regulatory pathways (505(b)(2), ANDA, NDA), and provides science-backed solutions for stability, compatibility, and manufacturability challenges.

$50
Integration Architecture Assessor

This skill helps you systematically assess integration needs across your systems, design architecture patterns that scale with your organization, and identify technical and operational risks before implementation. You'll receive architecture recommendations aligned to your business constraints, clear integration roadmaps, and risk mitigation strategies that reduce deployment surprises. Get structured decision records suitable for architecture review boards and engineering teams.

Chemical Process Hazard Analysis and Control Design
$30
Chemical Process Hazard Analysis and Control Design

You can conduct comprehensive hazard analyses for chemical processes using industry-standard methodologies like HAZOP and LOPA. The skill helps you assess risks quantitatively, identify control gaps, design engineered safeguards, and generate formal documentation for regulatory compliance and process safety management.

Git Commit Message Writer
$45
CI/CD4.3(47)
Git Commit Message Writer

Claude analyzes your code diffs and generates standardized commit messages that follow the Conventional Commits specification. The skill automatically determines the correct commit type, scope, and description based on the changes you've made, ensuring your messages are parseable by automation tools while remaining human-readable for code reviewers.

Structured NLP Analysis and Annotation with Claude
$35
NLP3.3(6)
Structured NLP Analysis and Annotation with Claude

You can transform raw text into structured, labeled datasets for machine learning, analysis, and research. This skill performs named entity recognition, sentiment classification, part-of-speech tagging, and dependency parsing—generating consistent, validated annotations at scale. Use it to prepare corpora, extract entities, classify documents, or perform linguistic analysis without manual annotation.

IoT Firmware Analysis & Device Debugger
$40
IoT Firmware Analysis & Device Debugger

Rapidly analyze firmware logs and diagnose hardware issues that cause device failures, connectivity problems, and performance degradation. You'll identify root causes from stack traces, crash dumps, and sensor data, then generate specific optimization recommendations. This skill transforms raw device logs into actionable debugging plans that reduce time-to-resolution from hours to minutes.

$40.00