embedded-state-machine-libs

Solid

Use when integrating, designing, configuring, or debugging embedded StateMachine libraries, finite state machines, event transitions, or MCU state-driven workflows

AI & Automation 22 stars 2 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 79/100

Stars 20%
45
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# 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 1. Define states and events. Names should reflect system meaning, not implementation steps. 1. Separate transition from action. Make it clear what changes state and what side effects run because of the transition. 1. Define invalid event behavior. Ignore, log, assert, error transition, or recovery must be explicit. 1. Guard reentrancy. Avoid nested transitions unless the library explicitly supports them. 1. Add observability. Log state tr...

Details

Author
easyzoom
Repository
easyzoom/aix-skills
Created
3 months ago
Last Updated
1 weeks ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category