kernel-basics
Essential Zephyr RTOS kernel services. Covers thread lifecycle and priority, the logging subsystem for diagnostics, and the interactive shell for real-time hardware inspection and debugging. Trigger when writing application flows, adding logging to modules, or creating interactive CLI commands.
适合你,如果你正在使用 Zephyr RTOS 进行嵌入式系统开发
/ 通过 npx 安装 校验哈希
npx oh-my-skill add beriberikix/zephyr-agent-skills/kernel-basics/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- beriberikix/zephyr-agent-skills/kernel-basics/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify beriberikix/zephyr-agent-skills/kernel-basics安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
58GitHub stars
~473最小装载
~1.6K含声明引用
~1.7K文本包总量
索引托管
怎么用
商店整理自技能原文 · 版本 ed63cdf · 表述以原文为准它做什么
Claude 能生成 Zephyr RTOS 的多线程代码、日志模块注册和交互式 Shell 命令的注册代码,并提供日志解析脚本。
什么时候触发
当你编写应用流程、添加日志模块或创建交互式 CLI 命令时触发。
装好后可以这样说
Claude 会生成线程定义代码。
技能原文 SKILL.md
Zephyr Kernel Basics
Master the essential services that bring your Zephyr application to life.
Core Workflows
1. Threads & Scheduling
Create and manage multi-threaded application flows.
- Reference: [threads.md](references/threads.md)
- Key Tools:
K_THREAD_DEFINE,k_sleep,k_yield, Priorities.
2. Logging & Diagnostics
Implement layered logging for better observability and troubleshooting.
- Reference: [logging.md](references/logging.md)
- Key Tools:
LOG_MODULE_REGISTER,LOG_INF,LOG_ERR, Dynamic Filtering.
3. Interactive Shell (CLI)
Build powerful command-line interfaces for hardware and software inspection.
- Reference: [shell.md](references/shell.md)
- Key Tools:
SHELL_CMD_REGISTER,SHELL_STATIC_SUBCMD_SET_CREATE.
Quick Start (Logging)
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(my_app, CONFIG_APP_LOG_LEVEL);
void my_fn(void) {
LOG_INF("Hello from Zephyr!");
}
Quick Start (Threads)
K_THREAD_DEFINE(worker_tid, 1024, worker_fn, NULL, NULL, NULL, 5, 0, 0);
Automation Tools
- [log_summary.py](scripts/log_summary.py): Parse Zephyr runtime logs and summarize counts by level/module.
Examples & Templates
- [shell_command_template.c](assets/shell_command_template.c): Starter command set for shell registration patterns.
Validation Checklist
- [ ] Log output includes module tag and expected log level filtering.
- [ ] At least one worker thread starts and runs at the intended priority.
- [ ] Shell command registration appears in
helpoutput and executes without faults. - [ ] No blocking or mutex misuse appears in ISR-context paths.
Resources
- [References](references/):
threads.md: Configuration and creation of kernel threads.logging.md: Log levels, modules, and backends.shell.md: Interactive command registration and subcommands.- [Scripts](scripts/):
log_summary.py: Runtime log summarizer for quick diagnostics.- [Assets](assets/):
shell_command_template.c: Shell command registration template.
按 Apache-2.0 许可原样转载,未经改动 · 在 GitHub 查看 →
评论
登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。
…