From Kernel Development Skills
Use when working on Linux kernel or kernel-adjacent changes, including drivers, Kconfig, defconfig, DTS/devicetree bindings, kernel debugging, tracing, CI failures, KUnit/kselftest, patch review, maintainer routing, stable/regression fixes, or vendor/LTS kernel maintenance. Also use for RK3576/Lapis vendor kernel work.
How this skill is triggered — by the user, by Claude, or both
Slash command
/kernel-development-skills:kernel-development-skillsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill to make kernel changes with the same discipline expected by upstream Linux and vendor/LTS kernel trees. Start from local truth, keep patches reviewable, choose validation based on risk, and never bypass repo-specific build rules.
agents/openai.yamlreferences/advanced-tooling.mdreferences/ci-regression.mdreferences/debugging-testing.mdreferences/device-tree-drivers.mdreferences/doc-routes.mdreferences/driver-api-cookbook.mdreferences/driver-review-checklists.mdreferences/kernel-workflow.mdreferences/lapis-rk3576.mdscripts/check_kernel_api_patterns.pyscripts/check_lapis_guardrails.pyscripts/index_kernel_docs.pyscripts/triage_kernel_change.pyUse this skill to make kernel changes with the same discipline expected by upstream Linux and vendor/LTS kernel trees. Start from local truth, keep patches reviewable, choose validation based on risk, and never bypass repo-specific build rules.
AGENTS.md/CLAUDE.md/repo guidance before touching files.git status --short, relevant Documentation/, MAINTAINERS, Kconfig/Makefile, DTS/bindings, and existing subsystem patterns.references/kernel-workflow.mdreferences/debugging-testing.mdreferences/driver-api-cookbook.mdreferences/driver-review-checklists.mdreferences/device-tree-drivers.mdreferences/lapis-rk3576.mdreferences/advanced-tooling.mdreferences/ci-regression.mdreferences/doc-routes.md or query assets/kernel-doc-index.jsonlFor driver creation or non-trivial driver edits, load references/driver-api-cookbook.md before choosing APIs. It covers probe/remove structure, devm_*, dev_err_probe(), MMIO, regmap, GPIO descriptors, regulators, clocks, resets, IRQ/workqueue context, DMA, runtime PM, subsystem selection, and deprecated APIs.
For driver maintenance, review, regression fixes, or backports, load references/driver-review-checklists.md. It turns the cookbook into pre-edit, review, validation, and vendor/LTS checklists.
make directly. Use the repo wrapper from references/lapis-rk3576.md.| Change | Minimum checks |
|---|---|
| C driver logic | scripts/checkpatch.pl --strict, focused compile, relevant KUnit/kselftest or runtime probe/log test |
| Kconfig/defconfig | dependency review, olddefconfig through repo wrapper, diff of resolved config |
| Devicetree binding | binding schema check, compatible documented before DTS use |
| DTS board change | DT binding check, targeted dtbs build, boot log/probe/sysfs evidence on hardware when available |
| Debug/test-only change | confirm it is gated, low overhead, and disabled unless intentionally enabled |
| Stable/regression fix | prove culprit, add Fixes:, Link:/Closes: as applicable, evaluate Cc: stable@vger.kernel.org |
| Vendor/LTS backport | document upstream source, conflict resolution, and behavior delta from upstream |
Use scripts when they save repeated reasoning or catch local footguns:
python3 /path/to/kernel-development-skills/scripts/triage_kernel_change.py [changed paths...]
python3 /path/to/kernel-development-skills/scripts/check_lapis_guardrails.py [changed paths...]
python3 /path/to/kernel-development-skills/scripts/check_kernel_api_patterns.py [changed paths...]
triage_kernel_change.py emits a path-based checklist with references and likely checks. check_lapis_guardrails.py fails on forbidden Lapis SoC DTS edits and warns on shared defconfig/direct-make hazards when the target repo matches that board family. check_kernel_api_patterns.py is advisory only; use kernel-native tools and review judgment for final decisions.
Prefer local docs in the checked-out kernel because vendor trees can differ from current upstream. Do not load the full JSONL index into context. Query it with rg or jq, then open only the relevant kernel docs.
If references/doc-routes.md or generated assets/kernel-doc-index.jsonl is stale or missing, regenerate both from the kernel root:
python3 /path/to/kernel-development-skills/scripts/index_kernel_docs.py \
/path/to/kernel-root \
/path/to/kernel-development-skills/references/doc-routes.md \
--jsonl /path/to/kernel-development-skills/assets/kernel-doc-index.jsonl
npx claudepluginhub utsavbalar1231/kernel-development-skills --plugin kernel-development-skillsCreates bite-sized, testable implementation plans from specs or requirements, with file structure and task decomposition. Activates before coding multi-step tasks.