kernel-basics

kernel-basics is a skill for Claude Code, Codex from beriberikix/zephyr-agent-skills. It costs 53 tokens per session (560 once invoked), scanned A, original, Apache-2.0.

Guidance for using Zephyr RTOS kernel services: threads, logging, and an interactive command shell. Zephyr RTOS is software for running applications on small connected devices.

In plain words
What is it for?
Use it to create and schedule threads, add module logging, and build command-line commands for real-time hardware or software inspection.
Why use it?
It helps structure concurrent application work, record diagnostic messages, and inspect a running device without creating these pieces from scratch.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create and schedule threads, add module logging, and build command-line commands for real-time hardware or software inspection.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/beriberikix/zephyr-agent-skills/kernel-basics
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add beriberikix/zephyr-agent-skills --skill kernel-basics
Clone the repo
git clone --depth 1 https://github.com/beriberikix/zephyr-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kernel-basics

README.md
[![agentmods](https://agentmods.dev/badge/skills/beriberikix/zephyr-agent-skills/kernel-basics.svg)](https://agentmods.dev/skills/beriberikix/zephyr-agent-skills/kernel-basics)
Your own site
<a href="https://agentmods.dev/skills/beriberikix/zephyr-agent-skills/kernel-basics"><img src="https://agentmods.dev/badge/skills/beriberikix/zephyr-agent-skills/kernel-basics.svg" alt="Measured on agentmods" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 560 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00053 $0.00560
Opus 5 $0.00026 $0.00280
Sonnet 5 $0.00011 $0.00112
Haiku 4.5 $0.00005 $0.00056

Measured 8d ago against content hash fbc303407ab5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

kernel-basics scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/log_summary.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/kernel-basics/SKILL.md · 64 lines

How it starts

The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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
  • Key Tools: K_THREAD_DEFINE, k_sleep, k_yield, Priorities.

2. Logging & Diagnostics

Implement layered logging for better observability and troubleshooting.

  • Reference: 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
  • 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: Parse Zephyr runtime logs and summarize counts by level/module.

Examples & Templates

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 help output and executes without faults.
  • No blocking or mutex misuse appears in ISR-context paths.

Resources

  • References:
    • threads.md: Configuration and creation of kernel threads.
    • logging.md: Log levels, modules, and backends.
    • shell.md: Interactive command registration and subcommands.
  • Scripts:
    • log_summary.py: Runtime log summarizer for quick diagnostics.
  • Assets:
    • shell_command_template.c: Shell command registration template.

Read the full file on GitHub · 64 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 64 lines · 53 tokens per session scan A fbc303407ab5

Subscribe to this mod's changes

kernel-basics is a skill published in the GitHub repository beriberikix/zephyr-agent-skills (63 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 53 tokens to every session and 560 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

gke-ai-troubleshooting-tpu-dynamic-slices-monitoring

Monitors, troubleshoots, and manages GKE TPU Dynamic Slices custom resources. Use when checking TPU slice lifecycle states, troubleshooting slice provisioning failures, validating single-slice or multi-slice (JobSet) workload manifests, or safely patching stuck finalizers and disabling the slice controller. Don't use…

google/skills · 107 tokens

gke-ai-troubleshooting-tpu-vbar-oom

Diagnoses and prevents vbarcontrolagent segfaults, out-of-memory (OOM) errors, and TPU device initialization failures on TPU v6e nodes in GKE caused by race conditions during TPU device resets or high-frequency metrics polling. Use when troubleshooting vbarcontrolagent crashes, memory cgroup OOMs in serial console…

google/skills · 125 tokens

ai-slop-cleaner

Clean AI-generated code slop with a regression-safe, deletion-first workflow and optional reviewer-only mode.

Yeachan-Heo/oh-my-claudecode · 25 tokens

diagnose-driver-install

Diagnose NVIDIA driver installation failures on DeepOps-managed nodes — nvidia-smi errors, "No devices were found", DKMS build failures, or GPU pods crash-looping. Use before reinstalling anything.

NVIDIA/deepops · 47 tokens

node-zombie-guardian

Use when diagnosing stale or orphaned Node.js processes launched by VCO, auditing ownership/liveness, or safely simulating cleanup without touching external Node workloads.

foryourhealth111-pixel/Vibe-Skills · 37 tokens

pyats-troubleshoot

Systematic network troubleshooting - connectivity, routing, interface, protocol, and performance issues using structured OSI-layer and divide-and-conquer methodology. Use when something is broken, a device is unreachable, a link is flapping, users report slow performance, or an OSPF/BGP adjacency is down.

automateyournetwork/netclaw · 67 tokens