/meddev-agent-skills:meddev-embedded-cppfrom meddev-agent-skills
Defines a constrained C++ subset for medical device firmware aligned to MISRA C++ guidance: safe types, RAII, limited dynamic features, and predictable behavior.
Ships in meddev-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Define a constrained C++ subset suitable for medical device firmware, aligned to MISRA C++ guidance: safe types, RAII, limited dynamic features, and predictable behavior.
new/delete in safety paths. Rationale: determinism.unique_ptr where supported); avoid shared ownership in critical code; no cycles. Rationale: leak/alias safety.std::atomic/RTOS primitives, ensure memory orderings are explicit; avoid volatile for concurrency except for HW-mapped registers. Rationale: correctness.enum class for scoped enums.constexpr for configuration constants.span-like views (or simple pointer+len structs) instead of raw pointers.RAII guard for peripheral enable:
// REQ-CPP-RAII-01; TEST-CPP-03
class PeripheralGuard {
public:
PeripheralGuard() { periph_enable(); }
~PeripheralGuard() { periph_disable(); }
PeripheralGuard(const PeripheralGuard&) = delete;
PeripheralGuard& operator=(const PeripheralGuard&) = delete;
};
Bounded buffer view:
// REQ-CPP-API-02; TEST-CPP-05
struct BufferView {
uint8_t* data;
size_t len;
};
bool copy_bounded(BufferView dst, BufferView src) {
if (src.len > dst.len) return false;
std::copy(src.data, src.data + src.len, dst.data);
return true;
}
No-exception init:
// REQ-CPP-INIT-03; TEST-CPP-07
class Sensor {
public:
bool init() noexcept {
return hw_init() == 0;
}
};
delete -> risk: leaks/double-free.unique_ptr or value semantics; no shared cycles.REQ-CPP-### and TEST-CPP-### tags; link MISRA deviation records to requirements.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub aminalam/meddev-agent-skills --plugin meddev-agent-skills59 skills in this plugin
/meddev-21-cfr-part-11Provide implementation guidance for electronic records/signatures (ER/ES) compliance: access control, audit trails, data integrity, and validation expectations in medical device software and supporting tools. Use when working on 21 cfr part 11 in medical device software./meddev-ai-assisted-development-governanceDefine governance for AI/LLM-assisted software development (e.g., Cursor, Copilot, Claude): human review expectations, evidence that generated code is covered by requirements-based tests, tool validation for GxP-adjacent workflows, and alignment with Computer Software Assurance (CSA) principles (risk-based, critical thinking) without replacing your SOPs. Use when working on ai assisted development governance in medical device software./meddev-ai-ml-medical-device-softwareOther plugins' skills for the same job