debug-firmware-in-sim

debug-firmware-in-sim is a skill for Claude Code from w1ne/labwired-core. It costs 41 tokens per session (757 once invoked), scanned A, original, MIT.

A workflow for reproducing and fixing embedded firmware bugs in a hardware simulator. Embedded firmware is software that runs on devices such as microcontrollers; the workflow observes serial messages, pin signals, and device communication.

In plain words
What is it for?
Use it to investigate hangs, wrong serial output, missed interrupts, incorrect pin changes, I2C or SPI communication failures, and edge-case inputs.
Why use it?
It lets developers repeat a failure without needing the physical device and helps separate firmware mistakes from wiring or component-configuration problems. Recorded inputs and expected results make it easier to confirm a fix.

Skill for Claude Code

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

Part of the labwired plugin — 6 skills, 1 MCP server shipped together

Good fit Use it to investigate hangs, wrong serial output, missed interrupts, incorrect pin changes, I2C or SPI communication failures, and edge-case inputs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/w1ne/labwired-core/debug-firmware-in-sim
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 w1ne/labwired-core --skill debug-firmware-in-sim
Clone the repo
git clone --depth 1 https://github.com/w1ne/labwired-core

Made for: Claude Code.

Or install labwired, the plugin that ships this one along with the rest of its 6 skills, 1 MCP server.

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 debug-firmware-in-sim

README.md
[![agentmods](https://agentmods.dev/badge/skills/w1ne/labwired-core/debug-firmware-in-sim/github.svg)](https://agentmods.dev/skills/w1ne/labwired-core/debug-firmware-in-sim)
Your own site
<a href="https://agentmods.dev/skills/w1ne/labwired-core/debug-firmware-in-sim"><img src="https://agentmods.dev/badge/skills/w1ne/labwired-core/debug-firmware-in-sim/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 debug-firmware-in-sim

Your own site · 80×15
<a href="https://agentmods.dev/skills/w1ne/labwired-core/debug-firmware-in-sim"><img src="https://agentmods.dev/badge/skills/w1ne/labwired-core/debug-firmware-in-sim.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 757 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.00041 $0.00757
Opus 5.5 $0.00016 $0.00303
Sonnet 5.5 $0.00008 $0.00151
Haiku 4.5 $0.00004 $0.00076

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

Security

Grade A, and why

debug-firmware-in-sim 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 4d 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/labwired/skills/debug-firmware-in-sim/SKILL.md · 46 lines

How it starts

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

Debug Firmware in Simulation

Use this skill when embedded firmware compiles but misbehaves (hangs, prints wrong values, misses interrupts, fails I2C/SPI handshakes, toggles the wrong pin, or crashes under edge-case inputs). LabWired lets you reproduce the failure deterministically without physical hardware and prove the fix.

Workflow

1. Capture Circuit Ground Truth

  • Call labwired_describe (or labwired_context / labwired_project_get) to verify exact MCU pin assignments, bus wiring (I2C/SPI/UART/CAN), pull-ups, and peripheral addresses.
  • Run labwired_validate first — many "firmware bugs" are actually swapped TX/RX, wrong I2C address, missing pull-up, or floating reset pins.

2. Reproduce with Observability (labwired_run)

  • Compile the current firmware with labwired_compile (or attach an existing ELF with labwired_put_firmware).
  • Call labwired_run with:
    • watch_gpio listing the pins involved (LEDs, CS, IRQ, PWM, reset)
    • stimuli to replay external triggers (button press/release, sensor voltage/value changes) at exact timestamps
    • uart_injections to feed host commands over serial
    • acceptance assertions capturing the expected behavior so the run stops cleanly when met or reports exact failure state
  • Examine the returned evidence:
    • Full UART TX transcript
    • GPIO edge counts and transition timelines
    • Decoded I2C/SPI/UART/CAN bus traffic and interface advisories (NACKs, bus stuck low, clock mismatch, unaddressed slave)
    • Analog/SPICE probe readings when analog circuits or sensors are attached

3. Deep Inspection & Interactive Stepping

When a single run does not reveal the root cause:

  • Call labwired_inspect to read peripheral states, memory, and pin states from the simulation snapshot.
  • For crashes, hardfaults, or race conditions, start an interactive debug session:
    1. labwired_debug_start
    2. labwired_debug to set breakpoints, single-step, inspect CPU registers, stack pointer, and peripheral registers
    3. labwired_debug_stop when finished
  • If a real hardware bench is attached and you need to cross-check silicon parity, use labwired_device_list, labwired_device_flash, labwired_device_console, labwired_device_inspect, and labwired_device_set_source_breakpoints.

Read the full file on GitHub · 46 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. 4d ago First seen · 46 lines · 41 tokens per session scan A ba2937e8306a

Subscribe to this mod's changes

debug-firmware-in-sim is a skill published in the GitHub repository w1ne/labwired-core (210 stars, last pushed today), licensed MIT. It adds 41 tokens to every session and 757 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-11-26.

Related

debug-firmware-in-sim compared with skills from other repositories

debug-firmware-in-sim next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
debug-firmware-in-simw1ne/labwired-coreSkill210todayMITA41Claude Code
unifi-access-supportsirkirby/unifi-mcpSkill1.1ktodayMITA31Claude Code
error-message-explainerwedsamuel1230/arduino-skillsSkill243mo agoMITA80Claude Code
circuit-debuggerwedsamuel1230/arduino-skillsSkill243mo agoMITA74Claude Code
nt-mcp-workflowMzzj114/nt-mcp-serverSkill1todayMITA25Claude Code, Codex
unifi-protect-supportsirkirby/unifi-mcpSkill1.1ktodayMITA32Claude Code
unifi-network-supportsirkirby/unifi-mcpSkill1.1ktodayMITA31Claude Code