embedded-linux-patterns

embedded-linux-patterns is a skill for Claude Code from HermeticOrmus/LibreEmbed-Claude-Code. It costs 60 tokens per session (1,363 once invoked), scanned A, original, MIT.

A reference guide for building Linux systems on ARM-based chips. Yocto and Buildroot are tools for creating embedded Linux images, device trees describe hardware to Linux, and kernel modules add driver code.

In plain words
What is it for?
Use it when arranging Yocto layers and recipes, building images with BitBake, changing kernel configuration, working with device trees, or developing kernel modules.
Why use it?
It collects common project patterns and commands in one place, reducing trial and error when configuring the build system, hardware description, or kernel.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the embedded-linux plugin — 1 skill, 1 command, 1 agent shipped together

Good fit Use it when arranging Yocto layers and recipes, building images with BitBake, changing kernel configuration, working with device trees, or developing kernel modules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hermeticormus/libreembed-claude-code/embedded-linux-patterns
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 HermeticOrmus/LibreEmbed-Claude-Code --skill embedded-linux-patterns
Clone the repo
git clone --depth 1 https://github.com/HermeticOrmus/LibreEmbed-Claude-Code

Made for: Claude Code.

Or install embedded-linux, the plugin that ships this one along with the rest of its 1 skill, 1 command, 1 agent.

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 embedded-linux-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/hermeticormus/libreembed-claude-code/embedded-linux-patterns/github.svg)](https://agentmods.dev/skills/hermeticormus/libreembed-claude-code/embedded-linux-patterns)
Your own site
<a href="https://agentmods.dev/skills/hermeticormus/libreembed-claude-code/embedded-linux-patterns"><img src="https://agentmods.dev/badge/skills/hermeticormus/libreembed-claude-code/embedded-linux-patterns/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 embedded-linux-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/hermeticormus/libreembed-claude-code/embedded-linux-patterns"><img src="https://agentmods.dev/badge/skills/hermeticormus/libreembed-claude-code/embedded-linux-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,363 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.00060 $0.01363
Opus 5.5 $0.00024 $0.00545
Sonnet 5.5 $0.00012 $0.00273
Haiku 4.5 $0.00006 $0.00136

Measured 2mo ago against content hash ca96698eaba2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

embedded-linux-patterns 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 2mo 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.

plugins/embedded-linux/skills/embedded-linux-patterns/SKILL.md · 175 lines

How it starts

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

embedded-linux-patterns

Knowledge Base

Patterns for Yocto, Buildroot, device trees, and kernel modules on ARM SoCs.


Pattern 1: Yocto Layer and Recipe Hierarchy

Layers (priority, low to high):
  poky/meta                   # Core: glibc, busybox, gcc toolchain
  poky/meta-poky              # Poky distribution configuration
  meta-openembedded/meta-oe   # Extended packages (Python, Qt, etc.)
  meta-raspberrypi            # BSP: kernel, u-boot, machine configs
  meta-myproject              # Project-specific: your app, config

bblayers.conf adds layers. local.conf sets MACHINE, DISTRO, and BB_NUMBER_THREADS.

# Common BitBake operations:
bitbake core-image-minimal          # Build minimal console image
bitbake -s | grep myapp             # Check recipe is found
bitbake myapp -c cleanall && bitbake myapp  # Rebuild from scratch
bitbake myapp -e | grep ^S=         # Show S (source dir) variable
devtool modify myapp                # Unpack source for development
devtool finish myapp meta-myproject # Write changes back to recipe

Pattern 2: Kernel Configuration Fragment

Instead of editing .config directly, use a config fragment in a .bbappend:

# meta-myproject/recipes-kernel/linux/linux-%.bbappend
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
SRC_URI += "file://my-features.cfg"
# files/my-features.cfg
CONFIG_CAN=y
CONFIG_CAN_RAW=y
CONFIG_SPI=y
CONFIG_SPI_SPIDEV=y
CONFIG_I2C_CHARDEV=y
# CONFIG_MODULES is not set   ← explicit disable

Apply with: bitbake linux-imx -c menuconfig then bitbake linux-imx -c savedefconfig.


Pattern 3: Device Tree GPIO and Interrupt Properties

/* GPIO: <&gpioN pin_num active_level> */
/* IRQ:  <&intc GIC_SPI irq_num IRQ_TYPE_EDGE_RISING> */

mysensor@48 {
    compatible = "ti,ads1115";
    reg = <0x48>;

    /* Active-low interrupt from sensor, connected to PA3 */
    interrupt-parent = <&gpioa>;
    interrupts = <3 IRQ_TYPE_EDGE_FALLING>;

    /* Reset GPIO: active low, initially deasserted */
    reset-gpios = <&gpiob 5 GPIO_ACTIVE_LOW>;
};

Read the full file on GitHub · 175 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. 2mo ago Changed · +5 lines · +60 tokens per session ca96698eaba2
  2. 3mo ago First seen · 170 lines · 0 tokens per session scan A e847fcd9af31

Subscribe to this mod's changes

embedded-linux-patterns is a skill published in the GitHub repository HermeticOrmus/LibreEmbed-Claude-Code (50 stars, last pushed 1mo ago), licensed MIT. It adds 60 tokens to every session and 1,363 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-08-30.

Related

embedded-linux-patterns compared with skills from other repositories

embedded-linux-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
embedded-linux-patternsHermeticOrmus/LibreEmbed-Claude-CodeSkill501mo agoMITA60Claude Code
volt-otatonone-ai/tononeSkill842d agoMITA70Claude Code
volt-firmwaretonone-ai/tononeSkill842d agoMITA76Claude Code
volt-powertonone-ai/tononeSkill842d agoMITA65Claude Code
volt-drivertonone-ai/tononeSkill842d agoMITA63Claude Code
volt-recontonone-ai/tononeSkill842d agoMITA52Claude Code
iot-expertpersonamanagmentlayer/pclSkill461mo agoApache-2.0A59Claude Code