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 easyzoom/aix-skills --skill embedded-state-machine-libsgit clone --depth 1 https://github.com/easyzoom/aix-skillsWrote 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/easyzoom/aix-skills/embedded-state-machine-libs)<a href="https://agentmods.dev/skills/easyzoom/aix-skills/embedded-state-machine-libs"><img src="https://agentmods.dev/badge/skills/easyzoom/aix-skills/embedded-state-machine-libs/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/easyzoom/aix-skills/embedded-state-machine-libs"><img src="https://agentmods.dev/badge/skills/easyzoom/aix-skills/embedded-state-machine-libs.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.00033 | $0.00552 |
| Opus 5 | $0.00016 | $0.00276 |
| Sonnet 5 | $0.00007 | $0.00110 |
| Haiku 4.5 | $0.00003 | $0.00055 |
Grade A, and why
embedded-state-machine-libs 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 9d 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 — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Embedded State Machine Libs
Overview
Use this skill for embedded state machine libraries and hand-written finite state machines. The core is to make states, events, transitions, side effects, and invalid transitions explicit and verifiable.
When To Use
Use this skill when:
- The user wants to add or debug a StateMachine library or event-driven MCU workflow.
- The issue involves wrong transitions, stuck states, reentrancy, event loss, timeout handling, or unclear state ownership.
- Firmware has modes such as idle, init, run, error, recovery, upgrade, sleep, or calibration.
Do not use this skill for RTOS scheduling issues unless the state machine is the primary abstraction.
First Questions
Ask for:
- State machine library or custom implementation.
- State list, event list, and current failing transition.
- Whether transitions run in ISR, task, main loop, or callback context.
- Whether timeouts, retries, or external interrupts drive events.
- Expected behavior for invalid events.
Integration Checklist
-
Define states and events. Names should reflect system meaning, not implementation steps.
-
Separate transition from action. Make it clear what changes state and what side effects run because of the transition.
-
Define invalid event behavior. Ignore, log, assert, error transition, or recovery must be explicit.
-
Guard reentrancy. Avoid nested transitions unless the library explicitly supports them.
-
Add observability. Log state transitions, current state, event source, and error transitions.
-
Test transition table. Validate normal path, invalid events, timeout events, and recovery path.
Common Failures
- Event emitted from ISR directly mutates state unsafely.
- Timeout event races with success event.
- State transition has hidden side effects that fail halfway.
- Invalid events are silently ignored in safety-critical flows.
- State names mirror functions instead of product behavior.
Verification
Before claiming state-machine behavior works:
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.
- 9d ago First seen · 82 lines · 33 tokens per session scan A a0e506826c36
embedded-state-machine-libs is a skill published in the GitHub repository easyzoom/aix-skills (31 stars, last pushed 1mo ago), licensed MIT. It adds 33 tokens to every session and 552 once invoked, about $0.0002 per session on Opus 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.
Other skills, from other repositories
container-home
Answer questions, assist with planning, and help with design decisions for Mick's off-grid shipping container lake home project. Trigger when the user mentions the container home, lake home, Stewart County, LBL, the expansion, solar system, septic permitting, or retirement property.
digital-twin-sync
Synchronize construction digital twins with real-time data. Connect BIM models with IoT sensors, progress updates, and field data for live project visualization and monitoring.
drone-site-survey
Process drone survey data for construction sites. Generate orthomosaics, DEMs, point clouds, calculate volumes, track progress, and integrate with BIM models for comparison.
json-parser
Parse and validate JSON data from construction APIs, IoT sensors, and BIM exports. Transform nested JSON to flat DataFrames.
equipment-fleet-manager
Manage construction equipment fleet. Track utilization, maintenance, and assignments.
energy-efficiency
Audit a manufacturing energy management system for monitoring quality, cost optimization, and compliance. Triggers: building or reviewing industrial energy platforms, building management systems, or sustainability reporting tools.