device-tree

device-tree is a skill for Claude Code, Codex from mohitmishra786/low-level-dev-skills. It costs 61 tokens per session (935 once invoked), scanned A, original, MIT.

A guide to Device Tree, a set of hardware descriptions used by Linux to learn about a board’s devices and their resources. It covers device-tree source files, overlays, hardware bindings, and links between devices.

In plain words
What is it for?
Use it when writing or debugging DTS and DTSI files, adding board support, creating overlays, or diagnosing why a Linux platform driver does not probe.
Why use it?
It helps find mismatches between the hardware description and the driver, which can stop a device from being detected. It also explains how properties such as addresses, interrupts, and clocks are represented.

Skill for Claude CodeCodex

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

Good fit Use it when writing or debugging DTS and DTSI files, adding board support, creating overlays, or diagnosing why a Linux platform driver does not probe.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mohitmishra786/low-level-dev-skills/device-tree
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 mohitmishra786/low-level-dev-skills --skill device-tree
Clone the repo
git clone --depth 1 https://github.com/mohitmishra786/low-level-dev-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 device-tree

README.md
[![agentmods](https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/device-tree/github.svg)](https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/device-tree)
Your own site
<a href="https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/device-tree"><img src="https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/device-tree/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 device-tree

Your own site · 80×15
<a href="https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/device-tree"><img src="https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/device-tree.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 935 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00061 $0.00935
Opus 5.5 $0.00024 $0.00374
Sonnet 5.5 $0.00012 $0.00187
Haiku 4.5 $0.00006 $0.00093

Measured 14d ago against content hash 4fe2888be3a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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

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/kernel-dev/device-tree/SKILL.md · 123 lines

How it starts

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

Device Tree (Devicetree)

Purpose

Guide agents through Linux device tree source (DTS): syntax, bindings, phandles, overlays, and how the kernel OF (Open Firmware) layer parses hardware description into platform_device instances.

Triggers

  • Platform driver not probing — DT mismatch
  • Adding a new board .dts or fragment overlay
  • Understanding compatible, reg, interrupts, clocks properties
  • Cross-checking hardware with skills/kernel-dev/platform-device-model

Workflow

1. DTS structure

/dts-v1/;
#include "soc.dtsi"

/ {
    model = "My Board";
    compatible = "vendor,my-board", "vendor,soc-family";

    soc {
        uart0: serial@40011000 {
            compatible = "vendor,uart";
            reg = <0x40011000 0x400>;
            interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
            clocks = <&clk_uart0>;
            status = "okay";
        };
    };
};

2. Key properties

Property Meaning
compatible Driver match string (most specific first)
reg MMIO address + length ( #address-cells, #size-cells )
interrupts IRQ specifier (interrupt parent defines cells)
clocks / clock-names phandle to clock provider
status "disabled" skips probe

3. Phandles

clk_uart0: clock-uart {
    compatible = "vendor,clk";
    #clock-cells = <0>;
};

serial@... {
    clocks = <&clk_uart0>;  /* phandle reference */
};

4. Kernel parsing

OF core reads DTB at boot
├── of_platform_populate() creates platform_devices
└── driver `.of_match_table` matches `compatible`
static const struct of_device_id my_of_match[] = {
    { .compatible = "vendor,uart" },
    { }
};
MODULE_DEVICE_TABLE(of, my_of_match);

5. Compile and inspect

dtc -I dts -O dtb -o board.dtb board.dts
dtc -I fs -O dts /proc/device-tree 2>/dev/null | less
ls /sys/firmware/devicetree/base/

Bindings live at devicetree.org — always cite binding name in commits.

Read the full file on GitHub · 123 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. 14d ago Changed · +1 lines 4fe2888be3a6
  2. 3mo ago First seen · 122 lines · 61 tokens per session scan A 4c683b215ea5

Subscribe to this mod's changes

device-tree is a skill published in the GitHub repository mohitmishra786/low-level-dev-skills (310 stars, last pushed 14d ago), licensed MIT. It adds 61 tokens to every session and 935 once invoked, about $0.0002 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-09-03.

Related

device-tree compared with skills from other repositories

device-tree next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
device-treemohitmishra786/low-level-dev-skillsSkill31014d agoMITA61Claude Code, Codex
gke-ai-troubleshooting-tpu-dynamic-slices-monitoringgoogle/skillsSkill26ktodayApache-2.0A107Claude Code, Codex
gke-ai-troubleshooting-tpu-vbar-oomgoogle/skillsSkill26ktodayApache-2.0A125Claude Code, Codex
doca-flowNVIDIA/skillsSkill4.3ktodayApache-2.0A224Claude Code
diagnose-driver-installNVIDIA/deepopsSkill1.5k3d agoBSD-3-ClauseA47Claude Code, Codex
eidezhinkgit/embeddedskillsSkill831yesterdayMITA151Claude Code
gtrace-path-analysisautomateyournetwork/netclawSkill7393d agoApache-2.0A156Claude Code