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 Oct 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

Smart Contract Security Analysis & Code Review
$20
Smart Contract Security Analysis & Code Review

Analyze Solidity and other smart contract code for security vulnerabilities, gas inefficiencies, and best practice violations. Get detailed reports with risk scoring, remediation suggestions, and optimization recommendations. Whether you're auditing before deployment or reviewing third-party contracts, this skill identifies critical issues faster than manual review.

Database Performance Tuning Analyzer
$45
Database Performance Tuning Analyzer

You can systematically diagnose database performance bottlenecks by sharing your schema, slow query logs, and execution plans with Claude. It identifies root causes—missing indexes, inefficient joins, lock contention—and provides prioritized recommendations with ready-to-implement SQL. Skip the manual log analysis and get tuning strategies tailored to your workload.

Process Optimization & Troubleshooting
$30
Process Optimization & Troubleshooting

This skill provides a structured approach to analyzing process problems, identifying root causes, and recommending capacity optimizations. You'll get clear bottleneck identification, data-driven recommendations, and a framework to validate whether your solutions actually work. Perfect for diagnosing why workflows are slow and finding the leverage points that matter most.

Database Performance Tuning Analyst
$30
Database Performance Tuning Analyst

Use Claude to systematically analyze your database queries, execution plans, and schema to identify performance bottlenecks. The skill generates actionable optimization recommendations with SQL rewrites, index strategies, and configuration tuning. You'll receive detailed before-and-after performance analysis to validate improvements and prioritize work by impact.

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.

Mobile Feature Architecture & Implementation
$40
Mobile Feature Architecture & Implementation

You'll design and implement mobile features with architectural rigor, cross-platform considerations, and edge-case handling built-in. This skill generates complete system designs, platform-specific implementation strategies, performance optimization approaches, and testing frameworks. The output is production-ready guidance spanning iOS and Android with security, offline resilience, and deployment strategies included.

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.

ROS Control Architecture & Debugging
$30
ROS Control Architecture & Debugging

You can architect multi-node ROS control systems from scratch, including node design patterns, communication flows, and real-time constraints. You'll debug complex node interactions using publisher/subscriber analysis, service call tracing, and action server diagnostics. You can optimize motion controllers through PID tuning, trajectory planning validation, and performance profiling to achieve precise, responsive robotic behavior.

$40.00