Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add HermeticOrmus/LibreEmbed-Claude-Code --skill safety-critical-patternsgit clone --depth 1 https://github.com/HermeticOrmus/LibreEmbed-Claude-CodeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/hermeticormus/libreembed-claude-code/safety-critical-patterns)<a href="https://agentmods.dev/skills/hermeticormus/libreembed-claude-code/safety-critical-patterns"><img src="https://agentmods.dev/badge/skills/hermeticormus/libreembed-claude-code/safety-critical-patterns/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/hermeticormus/libreembed-claude-code/safety-critical-patterns"><img src="https://agentmods.dev/badge/skills/hermeticormus/libreembed-claude-code/safety-critical-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00058 | $0.01511 |
| Opus 5.5 | $0.00023 | $0.00604 |
| Sonnet 5.5 | $0.00012 | $0.00302 |
| Haiku 4.5 | $0.00006 | $0.00151 |
Grade A, and why
safety-critical-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 202 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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.
/* Non-compliant (implicit types): */
int i;
unsigned char flags;
/* MISRA compliant: */
#include <stdint.h>
#include <stdbool.h>
int32_t i;
uint8_t flags;
bool enable;
/* Rule 7.1: Octal constants */
/* VIOLATION: */
uint8_t val = 010; /* Octal 8, not decimal 10 */
/* COMPLIANT: */
uint8_t val = 0x08U;
/* Rule 7.2: Unsigned constants must have U suffix */
/* VIOLATION: */
uint32_t x = 100;
/* COMPLIANT: */
uint32_t x = 100U;
Pattern 2: Single-Exit Function Pattern (Rule 15.5)
MISRA 15.5: a function shall have a single point of exit.
/* NON-COMPLIANT: multiple returns */
int32_t process(uint8_t *buf, uint32_t len)
{
if (buf == NULL) { return -1; }
if (len == 0U) { return -2; }
/* process */
return 0;
}
/* COMPLIANT: single exit */
int32_t process(uint8_t *buf, uint32_t len)
{
int32_t result = 0;
if (buf == NULL) {
result = -1;
} else if (len == 0U) {
result = -2;
} else {
/* process */
result = 0;
}
return result;
}
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.
/* MISRA C:2012 Rule 11.5 Deviation:
Reason: CMSIS HAL requires void* for peripheral handle cast.
Risk: Low — type verified by HAL layer.
Reviewed by: J.Smith, 2024-03-15, ref: DEV-2024-011 */
/*lint -e9087 */ /* PC-lint suppression */
void *handle = (void *)&hspi1; /* PRQA S 0306 */ /* Polyspace suppression */
/*lint +e9087 */
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+).
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago Changed · +5 lines · +58 tokens per session c383a56a0b93
- 3mo ago First seen · 197 lines · 0 tokens per session scan A 1d024ad6c418
safety-critical-patterns is a skill published in the GitHub repository HermeticOrmus/LibreEmbed-Claude-Code (50 stars, last pushed 1mo ago), licensed MIT. It adds 58 tokens to every session and 1,511 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
safety-critical-patterns compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| safety-critical-patternsHermeticOrmus/LibreEmbed-Claude-Code | Skill | 50 | 1mo ago | MIT | A | 58 | Claude Code |
| volt-otatonone-ai/tonone | Skill | 84 | 2d ago | MIT | A | 70 | Claude Code |
| volt-firmwaretonone-ai/tonone | Skill | 84 | 2d ago | MIT | A | 76 | Claude Code |
| volt-powertonone-ai/tonone | Skill | 84 | 2d ago | MIT | A | 65 | Claude Code |
| volt-drivertonone-ai/tonone | Skill | 84 | 2d ago | MIT | A | 63 | Claude Code |
| volt-recontonone-ai/tonone | Skill | 84 | 2d ago | MIT | A | 52 | Claude Code |
| iot-expertpersonamanagmentlayer/pcl | Skill | 46 | 1mo ago | Apache-2.0 | A | 59 | Claude Code |