zephyr-module
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.
适合你,如果你在 Zephyr 项目中需要添加或维护外部模块
/ 通过 npx 安装 校验哈希
npx oh-my-skill add beriberikix/zephyr-agent-skills/zephyr-module/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- beriberikix/zephyr-agent-skills/zephyr-module/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify beriberikix/zephyr-agent-skills/zephyr-module安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
58GitHub stars
~443最小装载
~1.2K含声明引用
~1.3K文本包总量
索引托管
怎么用
商店整理自技能原文 · 版本 ed63cdf · 表述以原文为准它做什么
这个技能让 Claude 能指导你创建和集成 Zephyr 外部模块。它会教你配置 module.yml、集成 Kconfig 和 CMake,以及通过 West manifest 添加模块。
什么时候触发
当你开发可重用的 Zephyr 库、驱动包或外部软件组件时触发。
装好后可以这样说
Claude 会提供模板并解释字段。
Claude 会演示 glue 代码模式。
Claude 会运行检查脚本。
技能原文 SKILL.md
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](references/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](references/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](references/module_definition.md#the-glue-pattern)
- Key Tools:
zephyr_library(),zephyr_include_directories().
Quick Start (module.yml)
build: cmake: . kconfig: zephyr/Kconfig
Validation 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](scripts/module_manifest_check.py): Validate required
build.cmakeandbuild.kconfigfields inmodule.yml.
Examples & Templates
- [module_yml_template.yml](assets/module_yml_template.yml): Starter module manifest for out-of-tree integration.
Resources
- [References](references/):
module_definition.md: Structure and module.yml specification.west_integration.md: Manifest configuration and discovery tools.- [Scripts](scripts/):
module_manifest_check.py: Module manifest consistency checker.- [Assets](assets/):
module_yml_template.yml: Minimalzephyr/module.ymltemplate.
按 Apache-2.0 许可原样转载,未经改动 · 在 GitHub 查看 →
评论
登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。
…