{"id":"b6f726ee-c20b-427f-a3d2-4c9303436ca4","shortId":"KVPeCa","kind":"skill","title":"kernel-basics","tagline":"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 interactiv","description":"# Zephyr Kernel Basics\n\nMaster the essential services that bring your Zephyr application to life.\n\n## Core Workflows\n\n### 1. Threads & Scheduling\nCreate and manage multi-threaded application flows.\n- **Reference**: **[threads.md](references/threads.md)**\n- **Key Tools**: `K_THREAD_DEFINE`, `k_sleep`, `k_yield`, Priorities.\n\n### 2. Logging & Diagnostics\nImplement layered logging for better observability and troubleshooting.\n- **Reference**: **[logging.md](references/logging.md)**\n- **Key Tools**: `LOG_MODULE_REGISTER`, `LOG_INF`, `LOG_ERR`, Dynamic Filtering.\n\n### 3. Interactive Shell (CLI)\nBuild powerful command-line interfaces for hardware and software inspection.\n- **Reference**: **[shell.md](references/shell.md)**\n- **Key Tools**: `SHELL_CMD_REGISTER`, `SHELL_STATIC_SUBCMD_SET_CREATE`.\n\n## Quick Start (Logging)\n```c\n#include <zephyr/logging/log.h>\nLOG_MODULE_REGISTER(my_app, CONFIG_APP_LOG_LEVEL);\n\nvoid my_fn(void) {\n    LOG_INF(\"Hello from Zephyr!\");\n}\n```\n\n## Quick Start (Threads)\n```c\nK_THREAD_DEFINE(worker_tid, 1024, worker_fn, NULL, NULL, NULL, 5, 0, 0);\n```\n\n## Automation Tools\n- **[log_summary.py](scripts/log_summary.py)**: Parse Zephyr runtime logs and summarize counts by level/module.\n\n## Examples & Templates\n- **[shell_command_template.c](assets/shell_command_template.c)**: Starter command set for shell registration patterns.\n\n## Validation Checklist\n- [ ] Log output includes module tag and expected log level filtering.\n- [ ] At least one worker thread starts and runs at the intended priority.\n- [ ] Shell command registration appears in `help` output and executes without faults.\n- [ ] No blocking or mutex misuse appears in ISR-context paths.\n\n## Resources\n\n- **[References](references/)**:\n  - `threads.md`: Configuration and creation of kernel threads.\n  - `logging.md`: Log levels, modules, and backends.\n  - `shell.md`: Interactive command registration and subcommands.\n- **[Scripts](scripts/)**:\n  - `log_summary.py`: Runtime log summarizer for quick diagnostics.\n- **[Assets](assets/)**:\n  - `shell_command_template.c`: Shell command registration template.","tags":["kernel","basics","zephyr","agent","skills","beriberikix","agent-skills","agentic-coding","zephyr-rtos"],"capabilities":["skill","source-beriberikix","skill-kernel-basics","topic-agent-skills","topic-agentic-coding","topic-zephyr-rtos"],"categories":["zephyr-agent-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/beriberikix/zephyr-agent-skills/kernel-basics","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add beriberikix/zephyr-agent-skills","source_repo":"https://github.com/beriberikix/zephyr-agent-skills","install_from":"skills.sh"}},"qualityScore":"0.462","qualityRationale":"deterministic score 0.46 from registry signals: · indexed on github topic:agent-skills · 25 github stars · SKILL.md body (2,102 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-04-24T07:01:42.253Z","embedding":null,"createdAt":"2026-04-18T23:04:57.625Z","updatedAt":"2026-04-24T07:01:42.253Z","lastSeenAt":"2026-04-24T07:01:42.253Z","tsv":"'0':176,177 '1':59 '1024':169 '2':83 '3':108 '5':175 'ad':36 'app':146,148 'appear':231,244 'applic':34,54,68 'asset':281,282 'assets/shell_command_template.c':196 'autom':178 'backend':265 'basic':3,45 'better':90 'block':240 'bring':51 'build':112 'c':139,163 'checklist':205 'cli':111 'cmd':129 'command':115,194,198,229,268,284,287 'command-lin':114 'config':147 'configur':254 'context':248 'core':57 'count':188 'cover':9 'creat':41,62,135 'creation':256 'debug':30 'defin':77,166 'diagnost':18,85,280 'dynam':106 'err':105 'essenti':4,48 'exampl':191 'execut':236 'expect':212 'fault':238 'filter':107,215 'flow':35,69 'fn':153,171 'hardwar':27,119 'hello':157 'help':233 'implement':86 'includ':140,208 'inf':103,156 'inspect':28,122 'intend':226 'interact':21,109,267 'interactiv':42 'interfac':117 'isr':247 'isr-context':246 'k':75,78,80,164 'kernel':2,7,44,258 'kernel-bas':1 'key':73,97,126 'layer':87 'least':217 'level':150,214,262 'level/module':190 'life':56 'lifecycl':11 'line':116 'log':15,37,84,88,99,102,104,138,142,149,155,185,206,213,261,276 'log_summary.py':180,274 'logging.md':95,260 'manag':64 'master':46 'misus':243 'modul':39,100,143,209,263 'multi':66 'multi-thread':65 'mutex':242 'null':172,173,174 'observ':91 'one':218 'output':207,234 'pars':182 'path':249 'pattern':203 'power':113 'prioriti':13,82,227 'quick':136,160,279 'real':25 'real-tim':24 'refer':70,94,123,251,252 'references/logging.md':96 'references/shell.md':125 'references/threads.md':72 'regist':101,130,144 'registr':202,230,269,288 'resourc':250 'rtos':6 'run':223 'runtim':184,275 'schedul':61 'script':272,273 'scripts/log_summary.py':181 'servic':8,49 'set':134,199 'shell':22,110,128,131,193,201,228,283,286 'shell.md':124,266 'skill' 'skill-kernel-basics' 'sleep':79 'softwar':121 'source-beriberikix' 'start':137,161,221 'starter':197 'static':132 'subcmd':133 'subcommand':271 'subsystem':16 'summar':187,277 'tag':210 'templat':192,289 'template.c':195,285 'thread':10,60,67,76,162,165,220,259 'threads.md':71,253 'tid':168 'time':26 'tool':74,98,127,179 'topic-agent-skills' 'topic-agentic-coding' 'topic-zephyr-rtos' 'trigger':31 'troubleshoot':93 'valid':204 'void':151,154 'without':237 'worker':167,170,219 'workflow':58 'write':33 'yield':81 'zephyr':5,43,53,159,183 'zephyr/logging/log.h':141","prices":[{"id":"faf4a185-27c9-47ff-b062-f4eb5fc2fed5","listingId":"b6f726ee-c20b-427f-a3d2-4c9303436ca4","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"beriberikix","category":"zephyr-agent-skills","install_from":"skills.sh"},"createdAt":"2026-04-18T23:04:57.625Z"}],"sources":[{"listingId":"b6f726ee-c20b-427f-a3d2-4c9303436ca4","source":"github","sourceId":"beriberikix/zephyr-agent-skills/kernel-basics","sourceUrl":"https://github.com/beriberikix/zephyr-agent-skills/tree/main/skills/kernel-basics","isPrimary":false,"firstSeenAt":"2026-04-18T23:04:57.625Z","lastSeenAt":"2026-04-24T07:01:42.253Z"}],"details":{"listingId":"b6f726ee-c20b-427f-a3d2-4c9303436ca4","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"beriberikix","slug":"kernel-basics","github":{"repo":"beriberikix/zephyr-agent-skills","stars":25,"topics":["agent-skills","agentic-coding","zephyr-rtos"],"license":"apache-2.0","html_url":"https://github.com/beriberikix/zephyr-agent-skills","pushed_at":"2026-04-20T21:40:18Z","description":"A complete catalog of Agent Skills (agentskills.io) for Zephyr RTOS development.","skill_md_sha":"13c6330e14d848ac9a88f4c125a3de0cb2b4bce0","skill_md_path":"skills/kernel-basics/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/beriberikix/zephyr-agent-skills/tree/main/skills/kernel-basics"},"layout":"multi","source":"github","category":"zephyr-agent-skills","frontmatter":{"name":"kernel-basics","description":"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."},"skills_sh_url":"https://skills.sh/beriberikix/zephyr-agent-skills/kernel-basics"},"updatedAt":"2026-04-24T07:01:42.253Z"}}