nuttx-driver-development

nuttx-driver-development is a skill for Claude Code, Codex from open-vela/.claude. It costs 219 tokens per session (5,588 once invoked), scanned A, original, Apache-2.0.

A guide for creating, updating, reviewing, and checking C device drivers for NuttX, a real-time operating system used in embedded devices.

In plain words
What is it for?
Use it for drivers for sensors, displays, network hardware, buses such as I2C and SPI, CAN, and other NuttX device subsystems.
Why use it?
It gives developers a consistent process for fitting drivers into NuttX, including the right code structure, build settings, and board setup.

Skill for Claude CodeCodex

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

Good fit Use it for drivers for sensors, displays, network hardware, buses such as I2C and SPI, CAN, and other NuttX device subsystems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/open-vela/.claude/nuttx-driver-development
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 open-vela/.claude --skill nuttx-driver-development
Clone the repo
git clone --depth 1 https://github.com/open-vela/.claude

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 nuttx-driver-development

README.md
[![agentmods](https://agentmods.dev/badge/skills/open-vela/.claude/nuttx-driver-development/github.svg)](https://agentmods.dev/skills/open-vela/.claude/nuttx-driver-development)
Your own site
<a href="https://agentmods.dev/skills/open-vela/.claude/nuttx-driver-development"><img src="https://agentmods.dev/badge/skills/open-vela/.claude/nuttx-driver-development/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 nuttx-driver-development

Your own site · 80×15
<a href="https://agentmods.dev/skills/open-vela/.claude/nuttx-driver-development"><img src="https://agentmods.dev/badge/skills/open-vela/.claude/nuttx-driver-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 219 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,588 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.00219 $0.05588
Opus 5 $0.00110 $0.02794
Sonnet 5 $0.00044 $0.01118
Haiku 4.5 $0.00022 $0.00559

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

Security

Grade A, and why

nuttx-driver-development 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 9d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/validate-deliverables.sh, scripts/validate-design.sh, scripts/validate-requirements.sh, …), 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/nuttx-driver-development/SKILL.md · 392 lines

How it starts

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

NuttX Driver Development

Follow the full driver lifecycle in order. Keep edits small and testable.

[!TIP] This skill can be used standalone or via the driver-workflow agent (agents/driver-workflow.agent.md) for end-to-end driver development with automated reference matching, requirements generation, and PR submission.

Table of Contents

  1. Preparation
    • Clarify scope and expectations
    • Find reference drivers
    • Determine driver pattern
    • Layout driver files
  2. Implementation
    • Write driver C implementation
    • Write public header file
    • Kconfig and build system integration
    • Board-level registration
  3. NuttX Coding & Kernel API Rules
  4. Code Review
  5. References

Preparation

1) Clarify scope and expectations

  • Identify the NuttX driver subsystem (sensor, serial, timer, analog, etc.).
  • Confirm target bus (I2C, SPI, 1-Wire, etc.) and required hardware properties.
  • Clarify the NuttX source tree location. The driver code lives under nuttx/drivers/.

2) Find reference drivers

[!NOTE] Two types of reference drivers serve different purposes

  • 骨架参考(NuttX API 模式): 优先使用 NuttX in-tree 同类驱动作为代码骨架,确保符合 NuttX 的 upper-half/lower-half 架构和 VFS 集成方式
  • 芯片参考(寄存器/时序验证): 优先使用 Linux/Zephyr 同芯片驱动,用于交叉验证 datasheet 的寄存器定义、初始化序列、SPI 帧格式等芯片专属知识

When used standalone: 手动搜索两类参考驱动 When used with driver-workflow agent: Step A.2 自动完成两条线的并行搜索

Always look at the in-tree NuttX drivers before doing any work. There might already be a driver that (best scenario at the top):

  1. Is exactly the same part as the one you are working on
  2. Targets a very similar part from the same vendor (e.g., BMP280 vs BME680)
  3. Is the same device subsystem as yours (e.g., another I2C sensor)

If a reference driver is found, use it as a skeleton template:

  1. Copy the source file structure (function signatures, bus access pattern, registration flow, file layout)
  2. Replace all device-specific content: register definitions, chip ID values, vendor/chip names, init sequences, calibration logic
  3. After generating code, grep for the original chip name — zero matches required
  4. Do NOT copy register addresses or chip-specific constants — these must come from the target device's datasheet

Read the full file on GitHub · 392 lines

Files

What ships with it

41 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. 9d ago First seen · 392 lines · 219 tokens per session scan A f06dc44eac06

Subscribe to this mod's changes

nuttx-driver-development is a skill published in the GitHub repository open-vela/.claude (5 stars, last pushed 8d ago), licensed Apache-2.0. It adds 219 tokens to every session and 5,588 once invoked, about $0.0011 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-31.

Related

Other skills, from other repositories

doca-argp

Use this skill for hands-on DOCA Arg Parser CLI work on a shipped sample or new DOCA-using app — adding / removing / renaming flags; wiring docaargpinit → register params → docaargpstart → docaargpdestroy in order; picking a parameter type from the full public enum (DOCAARGPTYPESTRING, INT, BOOLEAN, DEVICE, DEVICEREP…

NVIDIA/skills · 267 tokens

embedded-stm32

Best practices for embedded C/C++ development on STM32 microcontrollers using the HAL, covering peripherals, DMA, interrupts, memory constraints, and hardware-focused testing. Use when writing STM32 HAL code, configuring peripherals generated by STM32CubeMX, working with interrupts or DMA, debugging with SWD/JTAG…

Mindrally/skills · 87 tokens

hip-kernel-optimization

This skill should be used when writing or tuning HIP kernels on AMD/NVIDIA GPUs, covering memory coalescing, shared-memory tiling, bank conflict avoidance, warp primitives, occupancy, vectorization, async ops, loop unrolling, and profiling.

AMD-AGI/Apex · 56 tokens

cuda

Use when writing CUDA kernels, managing the thread, block, and grid hierarchy, tiling shared memory, using streams, setting nvcc flags, or using Thrust. Not for kernel debugging: use cuda-debugging.

OutlineDriven/outline-driven-development · 46 tokens

acad-arx-wizard

Agentic ObjectARX project scaffolding for AutoCAD 2027 / Visual Studio 2026. Replaces the broken .vsz VsWizardEngine wizard with a PowerShell script that generates identical C++ project files. Works for new ARX/DBX/CRX projects and add-on class wizards (Jig, Reactors, Custom Object, MFC, .NET Wrapper, COM Wrapper…

autodesk-platform-services/skills · 92 tokens

hls-c2rtl

Translate C / C++ / SystemC algorithmic descriptions into synthesizable RTL via High-Level Synthesis. Use when the user says "HLS", "C to RTL", "C++ to Verilog", "Vitis HLS", "Catapult", "XLS", "algorithmic design", or provides a reference implementation in software and asks for hardware.

vibeic/vibe-ic · 79 tokens