# zephyr-driver-development

zephyr-driver-development is a Claude Code skill for developing Zephyr RTOS drivers in C/C++. It covers bindings, implementation, build integration, and native_sim testing.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 1 install
- Author: ale-alfaro
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ale-alfaro/dotfiles/tree/HEAD/common/llm/skills/zephyr-driver-development/SKILL.md
- Updated: 2026-10-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/zephyr-driver-development

## What it does

This skill walks developers through the end-to-end process of creating and maintaining Zephyr RTOS drivers. It structures the work into preparation (clarifying scope, finding reference drivers in `$ZEPHYR_BASE`, laying out project files), then implementation (writing YAML bindings, C code conforming to subsystem APIs, Kconfig and CMake integration).

The skill covers device model fundamentals: compatible strings, devicetree properties like reg and status, data types (int, string, phandle, phandle-array), and how to organize drivers in `drivers/`, bindings in `dts/bindings/`, and tests in the project structure. It includes patterns for device API wiring and instantiation macros specific to the target subsystem.

Requires Zephyr installed with `$ZEPHYR_BASE` set, knowledge of the target bus (I2C, SPI, etc.), and a target board. Testing uses native_sim and bus emulators to validate drivers without physical hardware.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add ale-alfaro/dotfiles --skill zephyr-driver-development -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/zephyr-driver-development/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/zephyr-driver-development/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add ale-alfaro/dotfiles --skill zephyr-driver-development -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/zephyr-driver-development/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add ale-alfaro/dotfiles --skill zephyr-driver-development -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/zephyr-driver-development/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install ale-alfaro/dotfiles common/llm/skills/zephyr-driver-development
```

2. **Manually: put the files in place**
- File: `.github/skills/zephyr-driver-development/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add ale-alfaro/dotfiles --skill zephyr-driver-development -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/ale-alfaro/dotfiles --path common/llm/skills/zephyr-driver-development
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/zephyr-driver-development/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add ale-alfaro/dotfiles --skill zephyr-driver-development -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/ale-alfaro/dotfiles/tree/HEAD/common/llm/skills/zephyr-driver-development/SKILL.md

## When to use it
- write devicetree bindings and C implementation for a new Zephyr driver
- integrate device API and instantiation macros into the driver lifecycle
- configure Kconfig and CMake to register and build the driver
- test a driver on native_sim before deploying to hardware

## Example prompts
- Create an I2C sensor driver using a reference driver from the Zephyr tree
- Generate YAML bindings for an SPI device with registers and GPIO pins
- Organize project files and integrate the driver through CMake

## Similar
- [zephyr](https://affpapa.org/en/nevibecode/skills/zephyr.md) — skill · 557 installs
- [freertos](https://affpapa.org/en/nevibecode/skills/freertos.md) — skill · 739 installs
- [Embedded Firmware taste](https://affpapa.org/en/nevibecode/prompts/embedded-firmware-taste.md) — prompt · ★ 178201 repo stars
- [nrf52840-promicro](https://affpapa.org/en/nevibecode/skills/nrf52840-promicro.md) — skill · ★ 29 repo stars
- [zephyr-scale](https://affpapa.org/en/nevibecode/skills/zephyr-scale.md) — skill · 177 installs
- [test-case-management](https://affpapa.org/en/nevibecode/skills/test-case-management.md) — skill · 1400 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
