From zephyr-skills
Guides implementation of Zephyr RTOS kernel services: Zbus pub/sub for inter-thread communication, SMF for state machines, work queues for background tasks, and Settings for persistence. For modular event-driven embedded apps.
npx claudepluginhub beriberikix/zephyr-agent-skills --plugin zephyr-moduleThis skill uses the workspace's default tool permissions.
Move beyond basic threading and logging to build modular, event-driven, and robust Zephyr applications.
Serves as navigation hub for Zephyr RTOS skills ecosystem; discover, select, and load specialized skills for building, configuring, and debugging embedded applications when unsure which to use.
Develops firmware for microcontrollers like STM32 and ESP32, implements FreeRTOS RTOS applications, configures peripherals, writes interrupt handlers and DMA transfers, optimizes power consumption in real-time systems.
Provides patterns for embedded software development including real-time systems, memory management, hardware abstraction, interrupt handling, and debugging techniques for resource-constrained environments.
Share bugs, ideas, or general feedback.
Move beyond basic threading and logging to build modular, event-driven, and robust Zephyr applications.
Decouple your modules using a lightweight publish-and-subscribe bus.
ZBUS_CHAN_DEFINE, ZBUS_SUBSCRIBER_DEFINE, zbus_chan_pub.Manage complex system states and transitions using the State Machine Framework.
smf_set_state, SMF_CREATE_STATE, Hierarchical states.Defer long-running or non-critical tasks to prevent blocking interrupts or high-priority threads.
k_work_submit, k_work_delayable, Custom work queues.Save and restore configuration data and state across reboots.
settings_load, settings_save_one, NVS backends.// Define a channel for sensor data
ZBUS_CHAN_DEFINE(sensor_data_chan, struct sensor_msg, NULL, NULL, ZBUS_OBSERVERS_EMPTY, ZBUS_CHAN_DEFAULTS);
// Publish from a thread
zbus_chan_pub(&sensor_data_chan, &msg, K_NO_WAIT);
ZBUS_CHAN_DEFINE names across source files.zbus.md: Publish/Subscribe patterns and subscriber types.smf.md: Finite and Hierarchical state machine implementation.settings_workqueue.md: Background work and persistent storage.zbus_channel_lint.py: Zbus channel name collision checker.smf_state_table_template.c: State-machine template.