zephyr-module
Skill68 starsChanged 7 months agoApache-2.0View on GitHub
Creating and integrating out-of-tree Zephyr modules. Covers module.yml configuration, Kconfig and CMake integration within a module, and West manifest inclusion. Trigger when developing reusable libraries, driver packages, or external software components for Zephyr.
In this repository21 other files it gives its agents.
- zephyr-agent-skillsSkill
- board-bringupSkill
- build-systemSkill
- connectivity-bleSkill
- connectivity-ipSkill
- connectivity-usb-canSkill
- devicetreeSkill
- hardware-ioSkill
- industrialSkill
- iot-protocolsSkill
- kernel-basicsSkill
- kernel-servicesSkill
- multicoreSkill
- native-simSkill
- power-performanceSkill
- security-updatesSkill
- specializedSkill
- storageSkill
- testing-debuggingSkill
- zephyr-foundationsSkill
- zephyr-indexSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Create the directory structure and metadata required for auto-discovery.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Zephyr Modules
Extend the Zephyr RTOS with reusable, out-of-tree modules that integrate seamlessly with the build system.
Core Workflows
1. Defining a Module
Create the directory structure and metadata required for auto-discovery.
- Reference: module_definition.md
- Key Tools:
zephyr/module.yml,zephyr/Kconfig,zephyr/CMakeLists.txt.
2. West Manifest Integration
Adding your module to a workspace for distribution and versioning.
- Reference: west_integration.md
- Key Tools:
west.yml,west update,west build -t list_modules.
3. Library Wrapping (Glue Code)
Wrapping external C/C++ libraries as Zephyr modules.
- Reference: module_definition.md
- Key Tools:
zephyr_library(),zephyr_include_directories().
Quick Start (module.yml)
build:
cmake: .
kconfig: zephyr/KconfigValidation Checklist
west updatefetches module source from manifest without conflicts.west build -t list_modulesshows the module as discovered.- Module Kconfig options appear and can be enabled in build configuration.
- Module sources are compiled and linked into the target application as expected.
Automation Tools
- module_manifest_check.py: Validate required
build.cmakeandbuild.kconfigfields inmodule.yml.
Examples & Templates
- module_yml_template.yml: Starter module manifest for out-of-tree integration.
Resources
- References:
module_definition.md: Structure and module.yml specification.west_integration.md: Manifest configuration and discovery tools.
- Scripts:
module_manifest_check.py: Module manifest consistency checker.
- Assets:
module_yml_template.yml: Minimalzephyr/module.ymltemplate.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

