device-driver-development

device-driver-development is a skill for Claude Code, Codex from oghie/skillsets. It costs 52 tokens per session (986 once invoked), scanned A, original, MIT.

A set of guidelines for developing and debugging Linux kernel device drivers, which are software components that let the operating system communicate with hardware. It treats the hardware interface, kernel version, timing, memory, and user-facing interfaces as part of one contract.

In plain words
What is it for?
Planning or reviewing drivers for devices connected through buses such as I2C or SPI, handling interrupts and DMA, defining device-tree bindings, designing interfaces such as sysfs or /dev, and planning hardware bring-up.
Why use it?
Kernel driver bugs can come from mismatched hardware details, unsafe timing, incorrect memory handling, or incompatible interfaces, so the workflow identifies these risks before coding.

Skill for Claude CodeCodex

Part of the skillsets plugin — 9 skills, 4 commands, 1 hook, 4 MCP servers shipped together

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.

agentmods
npx agentmods add skills/oghie/skillsets/device-driver-development
Any agent
npx skills add oghie/skillsets --skill device-driver-development
Clone the repo
git clone --depth 1 https://github.com/oghie/skillsets

Made for: Claude Code, Codex.

Or install skillsets, the plugin that ships this one along with the rest of its 9 skills, 4 commands, 1 hook, 4 MCP servers.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/oghie/skillsets/device-driver-development.svg)](https://agentmods.dev/skills/oghie/skillsets/device-driver-development)
Your own site
<a href="https://agentmods.dev/skills/oghie/skillsets/device-driver-development"><img src="https://agentmods.dev/badge/skills/oghie/skillsets/device-driver-development.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 986 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00052 $0.00986
Opus 5 $0.00026 $0.00493
Sonnet 5 $0.00010 $0.00197
Haiku 4.5 $0.00005 $0.00099

Measured 5d ago against content hash 26fa3f81eb95, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

device-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 5d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/driver_static_scan.py, scripts/module_smoke_build.sh, scripts/tooling_probe.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/device-driver-development/SKILL.md · 62 lines

How it starts

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

Device Driver Development

Core Rule

Treat every driver task as hardware contract engineering: identify the kernel version, hardware bus, subsystem owner, execution context, lifetime model, and userspace ABI before writing code.

Knowledge Grounding

  • Use references/knowledge-map.md for the driver domain map and conceptual model.
  • Treat API details as version-sensitive; verify callback signatures, helpers, and bindings against the active kernel tree or current kernel docs.

First Pass

  1. Classify the device: char, platform, I2C, SPI, regmap, IIO, GPIO, IRQ controller, input, RTC, PWM, regulator, framebuffer, or NIC.
  2. Identify interface surfaces: /dev, sysfs, debugfs, ioctl, mmap, netdev, IIO buffers, input events, DT binding, or kernel consumer API.
  3. Choose probe/remove lifetime: prefer devm_*, explicit unwind only when ordering or shared state requires it.
  4. Decide concurrency boundaries: process context, atomic context, IRQ top half, threaded IRQ, workqueue, timer, DMA callback.
  5. Define evidence needed: datasheet registers, bus transaction examples, DT node, logs, scope/logic-analyzer traces, and test plan.

Required Reads By Task

  • New driver or hardware bring-up: tasks/bringup-workflow.md.
  • Implementing subsystem callbacks: tasks/implementation-patterns.md and references/subsystem-matrix.md.
  • Memory, MMIO, mmap, DMA, IRQ, locking: references/kernel-engineering-principles.md.
  • Debugging, validation, or intermittent behavior: tasks/debugging-testing.md.
  • Toolchain, QEMU, KGDB, bpftrace, Smatch, Coccinelle, Syzkaller, Bootlin: references/tooling-matrix.md.
  • Auditable engineering flow: tasks/step-verify-workflow.md.
  • Upstream-ready patches or long-term maintenance: tasks/upstream-maintenance.md.
  • Final review before handoff: references/review-checklist.md.

Design Heuristics

  • Prefer an existing kernel subsystem over a private char driver when the device matches a framework.
  • Keep policy in userspace and mechanism in kernel; avoid inventing ABI without necessity.
  • Never sleep in atomic context; never hold spinlocks across bus calls that may sleep.
  • Use copy_{to,from}_user() only at ABI boundaries and handle partial copy/error paths.
  • For MMIO use devm_ioremap_resource() plus accessor APIs; do not dereference __iomem.
  • For register devices on I2C/SPI, consider regmap before custom read/write helpers.
  • For DT, model hardware, not Linux driver internals; document compatibles and supplies/clocks/IRQs/GPIOs.

Read the full file on GitHub · 62 lines

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. 5d ago First seen · 62 lines · 52 tokens per session scan A 26fa3f81eb95

Subscribe to this mod's changes

device-driver-development is a skill published in the GitHub repository oghie/skillsets (9 stars, last pushed 1mo ago), licensed MIT. It adds 52 tokens to every session and 986 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-31.

Related

Other skills, from other repositories

person-watchdog

摄像头人形监控守护(PersonWatchdog)的部署、运维与排障技能。用于在 Windows 上用前置摄像头持续检测"有人经过电脑前",通过 Hermes 的 hermes send 向飞书私聊发送文字提醒 + 清晰人脸抓拍 + 停留时长;支持开机自启(计划任务 + supervisor 守护)、省电优化(运动门控、ONNX 限线程)、自动学习强化(误报区域抑制、自适应置信度阈值),并沉淀相机监控类项目的整套实测调试方法论(进程消失、CPU 飙高、ONNX 线程、画面亮度诊断、计划任务 LastRun=1999 等)。触发场景:用户说"帮我装个摄像头监控""检测有人经过电脑前发飞书""开机自启不生效""watchdog…

Natsummerance/skills · 258 tokens

gke-compute-classes

Configures, optimizes, and troubleshoots GKE ComputeClasses. Use when configuring Spot VMs with on-demand fallback, targeting specific accelerators (GPUs/TPUs) or machine families, restricting ComputeClass access, or debugging pending pods related to node pool auto-creation. Do not use for cluster-level Node Auto…

google/skills · 83 tokens

jetson-diagnostic

Read-only Jetson health snapshot for identity, memory, GPU, thermal, power, storage, services, and top processes.

NVIDIA/skills · 30 tokens

offensive-z-wave

Z-Wave attack methodology — sniffing with Z-Force / EZ-Wave / RTL-SDR + ZniffMobile, S0 (legacy) network-key derivation flaw and key reuse, S2 (modern) ECDH commissioning analysis, replay/injection on unauthenticated nodes, default-key brute-force on test deployments, and home-automation hub pivots. Use when targeting…

SnailSploit/Claude-Red · 113 tokens

hsb-flash

Flash the FPGA on an HSB board connected to an NVIDIA devkit. Supports HSB Lattice boards (FPGA versions 2407, 2412, 2507, 2510) and Leopard Imaging VB1940 "all-in-one" cameras (FPGA versions 2507, 2510). Uses release-specific YAML manifests and board-type-specific program commands. Lattice and VB1940 commands must…

NVIDIA/skills · 94 tokens

jetson-validate-image

Use after jetson-flash-image to run static BSP checks, on-target smoke/regression tests on a flashed DUT, or both. Not for build or flash steps. Triggers: validate bsp, on-target validation.

NVIDIA/skills · 50 tokens