zephyr-foundations

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

A foundation guide for developing with Zephyr RTOS, an operating system for embedded devices. It covers common C patterns, safe coordination between concurrent tasks, hardware descriptions, and error handling.

In plain words
What is it for?
Use it when writing Zephyr applications or drivers, mapping hardware descriptions to code, coordinating threads and interrupts, and checking errors safely.
Why use it?
It helps prevent common crashes and synchronization mistakes when code interacts with hardware and multiple tasks.

Skill for Claude CodeCodex

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

Good fit Use it when writing Zephyr applications or drivers, mapping hardware descriptions to code, coordinating threads and interrupts, and checking errors safely.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/beriberikix/zephyr-agent-skills/zephyr-foundations
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 zephyr-foundations
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 zephyr-foundations

README.md
[![agentmods](https://agentmods.dev/badge/skills/beriberikix/zephyr-agent-skills/zephyr-foundations/github.svg)](https://agentmods.dev/skills/beriberikix/zephyr-agent-skills/zephyr-foundations)
Your own site
<a href="https://agentmods.dev/skills/beriberikix/zephyr-agent-skills/zephyr-foundations"><img src="https://agentmods.dev/badge/skills/beriberikix/zephyr-agent-skills/zephyr-foundations/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for zephyr-foundations

Your own site · 80×15
<a href="https://agentmods.dev/skills/beriberikix/zephyr-agent-skills/zephyr-foundations"><img src="https://agentmods.dev/badge/skills/beriberikix/zephyr-agent-skills/zephyr-foundations.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 697 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.00070 $0.00697
Opus 5.5 $0.00028 $0.00279
Sonnet 5.5 $0.00014 $0.00139
Haiku 4.5 $0.00007 $0.00070

Measured 3mo ago against content hash 5c9ab1cedb0e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

zephyr-foundations 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 3mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/errno_return_check.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/zephyr-foundations/SKILL.md · 68 lines

How it starts

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

Zephyr Foundations

Mastering the bedrock of Zephyr is essential for writing efficient, robust, and idiomatic code.

Core Workflows

1. Idiomatic C Patterns

Zephyr uses specific macros to manage memory and hardware-software mapping.

  • Reference: zephyr_macros.md
  • Key Tools: CONTAINER_OF, BIT(), GENMASK(), ARRAY_SIZE.

2. Real-Time Concurrency

Safe multi-threading and interrupt handling are critical for stability.

  • Reference: concurrency.md
  • Key Tools: k_mutex, k_sem, k_spinlock, atomic_t, ISR safety rules.

3. Hardware Literacy (Devicetree)

Understanding how code interacts with the hardware description.

  • Reference: devicetree_basics.md
  • Key Tools: Nodes, properties, phandles, overlays, and advanced deletion.

4. Robust Error Handling

Preventing crashes through defensive programming.

  • Reference: error_handling.md
  • Key Tools: errno.h, BUILD_ASSERT, validation patterns, return code checking.

Quick Start (Defensive Pattern)

int sensor_read_checked(const struct device *dev)
{
  if (dev == NULL || !device_is_ready(dev)) {
    return -ENODEV;
  }

  return 0;
}

Validation Checklist

  • Shared bit-field logic uses Zephyr macros (BIT, GENMASK) instead of raw literals.
  • Thread-shared state is protected with mutex/spinlock/atomic primitives.
  • Error paths return standard negative errno codes.
  • Defensive guards exist for null pointers, bounds, and device readiness checks.

Automation Tools

Examples & Templates

  • template_driver.c: A complete skeleton showing how to combine DT macros, mutexes, and config-data separation.

Resources

Read the full file on GitHub · 68 lines

Files

What ships with it

7 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. 3mo ago First seen · 68 lines · 70 tokens per session scan A 5c9ab1cedb0e

Subscribe to this mod's changes

zephyr-foundations is a skill published in the GitHub repository beriberikix/zephyr-agent-skills (77 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 70 tokens to every session and 697 once invoked, about $0.0003 per session on Opus 5.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

zephyr-foundations compared with skills from other repositories

zephyr-foundations next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
zephyr-foundationsberiberikix/zephyr-agent-skillsSkill776mo agoApache-2.0A70Claude Code, Codex
build-and-verify-hardwarew1ne/labwired-coreSkill210todayMITA39Claude Code
electronics-labw1ne/labwired-coreSkill210todayMITA31Claude Code
audit-erc-drc-and-safetyw1ne/labwired-coreSkill210todayMITA49Claude Code
debug-firmware-in-simw1ne/labwired-coreSkill210todayMITA41Claude Code
export-kicad-and-bomw1ne/labwired-coreSkill210todayMITA51Claude Code
mactopmetaspartan/cybaraSkill418d agoMITA60Claude Code, Codex