@h2loop/safe-c-coding-plugin
v0.3.3
Published
Safe-C coding plugin for Hydron — MISRA C:2012-aligned defensive C/C++ guidelines as an always-on skill plus a safe-c-reviewer subagent
Maintainers
Readme
safe-c-coding-plugin
A Hydron plugin that ships defensive C/C++ coding discipline — MISRA C:2012-aligned guidelines for writing reliable, deterministic, undefined-behaviour-free C for embedded, automotive, medical, aerospace, and other safety-critical or resource-constrained targets.
It bundles two surfaces:
safe-c-codingskill — an always-on domain layer. Its description auto-triggers whenever you write, generate, modify, or review C/C++ (.c,.h,.cpp,.hpp), so Hydron produces compliant code the first time instead of relying on a later review pass. The full guideline catalogue lives inskills/safe-c-coding/guidelines.md.safe-c-reviewersubagent — an on-demand reviewer that audits a file, diff, or range against the guidelines and reports findings asseverity — file:line — what's wrong -> safe fix, Critical (must fix) separated from Standard (fix or justify).
Layout
.hydron-plugin/plugin.json # engines manifest (hydron ^1.0.0)
skills/safe-c-coding/
SKILL.md # skill entry — severity model, preferred patterns, review format
guidelines.md # full MISRA C:2012-aligned guideline catalogue
agents/safe-c-reviewer.md # subagent that reviews C/C++ against the guidelinesInstall
# From the marketplace once published, or directly from this checkout:
hydron plugin validate .
hydron plugin add .Once added, the skill loads automatically on C/C++ work. To run a review explicitly, ask Hydron
to review a file with the safe-c-reviewer (e.g. "review foo.c with the safe-c reviewer").
Scope note
These guidelines paraphrase well-established critical-systems C practice (aligned with the intent of MISRA C:2012) in original wording. They are an engineering aid, not a formal compliance certification and not affiliated with or endorsed by MISRA. For formal compliance and authoritative guidance, consult the official MISRA C:2012 publication.
