ormus-solutions/libreembed-claude-code/safety-critical-patterns
- community
Checking that the SKILL.md file is still in the repository.
Safety-critical C patterns: MISRA-compliant fixed-width types, single-exit functions (Rule 15.5), suppression comments, a March-C RAM test, and CRC protection of critical data. Use when writing or reviewing firmware under a functional safety standard.
Install
npx vskill@latest install ormus-solutions/libreembed-claude-code/safety-critical-patternsSKILL.md
safety-critical-patterns
Knowledge Base
MISRA C compliance and safety-critical firmware patterns.
Pattern 1: MISRA C Compliant Type Annotations
MISRA mandates explicit types. Use <stdint.h> types throughout.
Pattern 2: Single-Exit Function Pattern (Rule 15.5)
MISRA 15.5: a function shall have a single point of exit.
This is advisory in MISRA 2012 (was required in MISRA 2004), but required for DO-178C DAL-A.
Pattern 3: MISRA Suppression Comments
When a violation is justified, document it with a suppression comment and deviation record.
Deviation records must be maintained in a deviation log linked to each suppression.
Pattern 4: RAM Test (March-C Algorithm)
March-C tests SRAM integrity at startup (required for IEC 61508 SIL 2+).
Call from startup before .bss zero-fill (test RAM before relying on it).
Pattern 5: Cyclic Redundancy of Critical Data
For data stored in NVM or transmitted over interfaces, verify integrity:
Anti-Patterns
- Feeding WDT in ISR: an ISR that fires independently of the application task will keep feeding the WDT even if the main task is deadlocked.
- Magic numbers without named constants: Rule 2.4, 2.5, 2.6. All literals must be named constants.
- `goto` without justification: MISRA 15.2 permits goto only for forward jumps within same function. Never use for error path unwinding when single-exit applies.
- `assert` in production code that compiles to nothing with NDEBUG: safety-critical code must use static_assert or a runtime assertion that does not disappear.
References
- MISRA C:2012 Third Edition (purchase from misra.org.uk)
- IEC 61508-3:2010 Software requirements
- DO-178C: RTCA Inc.
- IAR EW MISRA checking: https://www.iar.com/knowledge/learn/software-quality/
- PC-lint Plus: https://pclintplus.com/
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/safety-critical/skills/safety-critical-patterns/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ormus-solutions/libreembed-claude-code/safety-critical-patterns)