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 rtos-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/rtos-patterns)<a href="https://agentmods.dev/skills/hermeticormus/libreembed-claude-code/rtos-patterns"><img src="https://agentmods.dev/badge/skills/hermeticormus/libreembed-claude-code/rtos-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/rtos-patterns"><img src="https://agentmods.dev/badge/skills/hermeticormus/libreembed-claude-code/rtos-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.00064 | $0.03425 |
| Opus 5.5 | $0.00026 | $0.01370 |
| Sonnet 5.5 | $0.00013 | $0.00685 |
| Haiku 4.5 | $0.00006 | $0.00343 |
Grade A, and why
rtos-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 — 383 lines — stays where its author put it; the contents beside it link to each section on GitHub.
RTOS patterns library
Reference patterns for FreeRTOS + Zephyr task design. Use as a lookup when designing or reviewing RTOS firmware.
Priority inversion taxonomy
Three forms exist; the agent distinguishes them:
1. Unbounded priority inversion (the bad one)
H blocks on resource R held by L. M (between H and L in priority) preempts L. H is now blocked for as long as M runs — unbounded.
Fix: priority inheritance (FreeRTOS mutex, Zephyr mutex) OR priority ceiling (declare R's ceiling = highest task that ever uses R).
2. Bounded priority inversion
H blocks on R held by L. L holds R for time T. H is delayed by T. T is bounded if L's critical section is bounded.
Fix: ensure L's critical section is short and bounded. Don't sleep, don't block, don't make long calls while holding R.
3. Chain blocking
H blocks on R1 held by L1. L1 blocks on R2 held by L2. H is delayed by L2's critical section + L1's critical section.
Fix: priority ceiling protocol on R1 + R2 (every holder runs at the highest possible blocker priority). Or use a single mutex / message passing.
Deferred interrupt processing (DIP) pattern
When an ISR has work that exceeds "set a flag, post a semaphore":
// ISR — minimal work
void EXTI9_5_IRQHandler(void) {
__HAL_GPIO_EXTI_CLEAR_IT(GPIO_PIN_5);
BaseType_t pxHigherPriorityTaskWoken = pdFALSE;
vTaskNotifyGiveFromISR(SensorTaskHandle, &pxHigherPriorityTaskWoken);
portYIELD_FROM_ISR(pxHigherPriorityTaskWoken);
}
// Task — the heavy work
void SensorTask(void *params) {
for (;;) {
ulTaskNotifyTake(pdTRUE, portMAX_DELAY);
// ISR triggered me. Now do the heavy work in task context where I can:
// - Call non-ISR-safe HAL functions
// - Take mutexes
// - Call printf
// - Run for milliseconds without harming ISR latency
process_sensor_event();
}
}
Use direct-to-task notification (FreeRTOS) or k_sem_give from ISR (Zephyr) for lowest-latency DIP.
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 · +211 lines · +64 tokens per session f585368c0060
- 3mo ago First seen · 172 lines · 0 tokens per session scan A 8a1e61bdf2c5
rtos-patterns is a skill published in the GitHub repository HermeticOrmus/LibreEmbed-Claude-Code (50 stars, last pushed 1mo ago), licensed MIT. It adds 64 tokens to every session and 3,425 once invoked, about $0.0003 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.
rtos-patterns compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| rtos-patternsHermeticOrmus/LibreEmbed-Claude-Code | Skill | 50 | 1mo ago | MIT | A | 64 | Claude Code |
| volt-firmwaretonone-ai/tonone | Skill | 85 | yesterday | MIT | A | 76 | Claude Code |
| volt-otatonone-ai/tonone | Skill | 85 | yesterday | MIT | A | 70 | Claude Code |
| volt-drivertonone-ai/tonone | Skill | 85 | yesterday | MIT | A | 63 | Claude Code |
| volt-powertonone-ai/tonone | Skill | 85 | yesterday | MIT | A | 65 | Claude Code |
| volt-recontonone-ai/tonone | Skill | 85 | yesterday | MIT | A | 52 | Claude Code |
| iot-expertpersonamanagmentlayer/pcl | Skill | 47 | 1mo ago | Apache-2.0 | A | 59 | Claude Code |