Agent skill

Embedded Debug

by FastLED in FastLED/FastLED

Firmware crash analysis, stack trace decoder, and register dump interpreter for ESP32/ARM/AVR platforms.

MITAuto-check passedDevelopment

Install Embedded Debug

skills CLI
$ npx skills add FastLED/FastLED --skill embedded-debug -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install FastLED/FastLED embedded-debug --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/FastLED/FastLED.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/embedded-debug .claude/skills/embedded-debug && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
embedded-debug
GitHub stars
7.5k
Token cost
~1.4k tokens
SKILL.md length
539 words
Files
1
Skills in repo
23
Repo updated
First seen
Licence
MIT

At a glance

Firmware crash analysis, stack trace decoder, and register dump interpreter for ESP32/ARM/AVR platforms.

  • Works in 5 steps: Crash Analysis: Parse panic handlers,… → Stack Trace Decoding: Decode raw… → Register Dump Interpretation: Analyze… → …
  • Debugging device crashes
  • SKILL.md covers What This Skill Does, Supported Platforms, How To Use and What You'll Get, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Embedded Debug is an agent skill from FastLED/FastLED. Firmware crash analysis, stack trace decoder, and register dump interpreter for ESP32/ARM/AVR platforms. Use when debugging device crashes, panics, guru meditation errors, hard faults, or analyzing core dumps.

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Embedded systems, Debugging and Health and fitness tracking. It works with ESP32. The repository describes itself as: The FastLED library for colored LED animation on Arduino. Please direct questions/requests for help to the FastLED Reddit community: http://fastled.io/r We'd like to use github… The licence is MIT.

When your agent uses it

  • Debugging device crashes
  • Guru meditation errors
  • Analyzing core dumps

Example prompts

  • “/embedded-debug”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Crash Analysis: Parse panic handlers, guru meditation errors, hard faults, watchdog resets
  2. Stack Trace Decoding: Decode raw addresses to function names using ELF binaries
  3. Register Dump Interpretation: Analyze CPU register state at crash time
  4. Root Cause Identification: Correlate crash data with source code to find the bug
  5. Fix Recommendations: Suggest specific code changes to prevent the crash

What it can do on your machine

Read from SKILL.md and the folder at commit 8d6ed12. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are c and bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Embedded Debug loads about 1.4k tokens when it runs. Until then it costs about 56 tokens; SKILL.md has 539 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~56
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from FastLED/FastLED at commit 8d6ed12, republished under its MIT licence (© FastLED). 539 words, ~1,381 tokens.

Download SKILL.mdSave it as .claude/skills/embedded-debug/SKILL.md (or your agent's skills folder).
name
embedded-debug
description
Firmware crash analysis, stack trace decoder, and register dump interpreter for ESP32/ARM/AVR platforms. Use when debugging device crashes, panics, guru meditation errors, hard faults, or analyzing core dumps.
argument-hint
<crash output or description of the issue>
context
fork
agent
embedded-debug-agent

Analyze firmware crash output, decode stack traces, and diagnose embedded system failures.

$ARGUMENTS

What This Skill Does

  1. Crash Analysis: Parse panic handlers, guru meditation errors, hard faults, watchdog resets
  2. Stack Trace Decoding: Decode raw addresses to function names using ELF binaries
  3. Register Dump Interpretation: Analyze CPU register state at crash time
  4. Root Cause Identification: Correlate crash data with source code to find the bug
  5. Fix Recommendations: Suggest specific code changes to prevent the crash

Supported Platforms

PlatformCrash Types
ESP32 (all variants)Guru Meditation, LoadProhibited, StoreProhibited, InstrFetchProhibited, watchdog reset, brownout, cache errors
ARM Cortex-M (STM32, Teensy, nRF)HardFault, MemManage, BusFault, UsageFault, watchdog reset
AVR (Arduino Uno/Mega)Stack overflow (silent corruption), watchdog reset, undefined opcode
RISC-V (ESP32-C3/C6/H2)Illegal instruction, load/store fault, breakpoint

How To Use

With crash output
/embedded-debug
Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC      : 0x400d1234  PS      : 0x00060030  A0      : 0x800d5678
...
With a description
/embedded-debug Device reboots every 30 seconds, serial shows "rst:0x3 (SW_RESET)"
With a core dump
/embedded-debug Analyze the core dump from the last crash

What You'll Get

  • Decoded stack trace with source file and line numbers
  • Explanation of the crash type and what triggered it
  • Identification of the faulty code path
  • Specific fix recommendations with code examples
  • Prevention strategies (stack size tuning, watchdog config, null checks)

ESP32 Crash Quick Reference

Exception Type → Root Cause
ExceptionEXCVADDR hintLikely Root Cause
LoadProhibited~0x00000000NULL pointer dereference (uninitialized LED strip?)
LoadProhibitedOtherRead from freed or out-of-bounds memory
StoreProhibitedAnyWrite to read-only or invalid memory address
InstrFetchProhibitedAnyJump to invalid/NULL function pointer or corrupt vtable
IllegalInstructionAnyStack overflow corrupting code, or corrupt heap
IntegerDivideByZeroN/ADivision by zero in LED index math
UnalignedAnyMisaligned memory access (DMA buffer not 4-byte aligned)
Cache disabled but cache memory range accessedAnyISR accessing flash — add IRAM_ATTR to ISR function
Key Register Meanings (ESP32 Xtensa)
RegisterMeaning
PCProgram Counter — where the crash happened
EXCVADDRAddress that caused the fault (NULL pointer, invalid write target)
A1Stack pointer — compare to task stack base to detect overflow
A0Return address — calling function
Show full SKILL.md (224 more words)Show less
ISR Violation Pattern

Symptoms: Cache disabled but cache memory range accessed or crash inside FreeRTOS API

Cause: FastLED ISR handler calling blocking or flash-accessing code.

Diagnosis: Look for crash inside xSemaphoreTake, vTaskDelay, printf, or any non-ISR-safe function.

Fix:

  1. Add IRAM_ATTR to all ISR-related functions
  2. Replace blocking calls with ISR-safe variants (xSemaphoreGiveFromISR, xQueueSendFromISR)
  3. Move logging out of ISR to a deferred task
Watchdog Reset Pattern

Symptoms: rst:0x7 (TG0WDT_SYS_RESET) or rst:0x8 (TG1WDT_SYS_RESET)

Cause: Task or interrupt handler not yielding — common with:

  • FastLED show() blocking on DMA in a task with watchdog enabled
  • High LED counts causing long encoding loops without yield
  • Spinning in a loop without vTaskDelay(0) or taskYIELD()

Fix:

  1. Call esp_task_wdt_reset() in long loops, or
  2. Move FastLED show() to a dedicated task exempt from watchdog, or
  3. Reduce LED count to bring encoding time under watchdog timeout
Stack Overflow Pattern

Symptoms: StackOverflow + task name, or IllegalInstruction with A1 near stack limit

Diagnosis: Check task stack size in xTaskCreate or xTaskCreatePinnedToCore. FastLED show() with large LED arrays can use significant stack.

Fix: Increase task stack size (minimum 4096 bytes for tasks calling FastLED show with encoding)

Memory Corruption Pattern

Symptoms: IllegalInstruction at random address, corrupted register values, intermittent crashes

Diagnosis: Enable diagnostics:

c
// In sdkconfig or menuconfig:
CONFIG_HEAP_POISONING_COMPREHENSIVE=y
CONFIG_HEAP_TASK_TRACKING=y
CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK=y

Common FastLED Cause: Writing past end of CRGB array (index out of bounds in user sketch)

Backtrace Decoding Commands
bash
# ESP32 (Xtensa)
xtensa-esp32-elf-addr2line -pfiaC -e build/firmware.elf 0xADDR1 0xADDR2

# ESP32-S3
xtensa-esp32s3-elf-addr2line -pfiaC -e build/firmware.elf 0xADDR1

# ESP32-C3/C6 (RISC-V)
riscv32-esp-elf-addr2line -pfiaC -e build/firmware.elf 0xADDR1

# Live decode via idf.py
idf.py -p /dev/ttyUSB0 monitor

© FastLED, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/embedded-debug of FastLED/FastLED.

Open the folder on GitHubat commit 8d6ed12

Compare with similar skills

Embedded Debug next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Embedded Debug compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Embedded Debug this skillFastLED/FastLED7.5k—~1.4kAutomated safety check: PassMIT
Commodore64 Vice Debuggingidolpx/meatloaf128—~4.8kAutomated safety check: PassGPL-3.0
C64 Meatloaf Debugidolpx/meatloaf128—~12kAutomated safety check: PassGPL-3.0
Meatloaf Networkingidolpx/meatloaf128—~7.1kAutomated safety check: PassGPL-3.0
Embedded DebuggerAdancurusul/embedded-debugger-mcp199—~1.4kAutomated safety check: PassMIT
Dongle Crash Analysishaumacher/phoneblock366—~1.9kAutomated safety check: NotesGPL-3.0

Similar skills

  • Debug Commodore 64 programs running under the VICE emulator through its binary monitor: BASIC, cc65-compiled C, and 6502 assembly.

    128 GitHub stars~4.8k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • C64 Meatloaf Debug

    idolpx/meatloaf

    Debug Commodore 64 BASIC programs, cc65-compiled C PRGs, and Meatloaf ESP32 firmware in tandem, using the Ultimate 64's REST API and Meatloaf's UART serial debug output.

    128 GitHub stars~12k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Meatloaf Networking

    idolpx/meatloaf

    Reference for the Meatloaf full-mode HTTP client protocol — the line-oriented command language (m, h, b, s, status, r-h, r-b, j, c) that an ESP32-based Meatloaf device accepts over the C64's IEC bus…

    128 GitHub stars~7.1k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Embedded Debugger

    Adancurusul/embedded-debugger-mcp

    Embedded hardware debugging workflow for probe-rs targets using embedded-debugger-mcp.

    199 GitHub stars~1.4k tokensUpdated 2 mo ago
    Agent WorkflowsAuto-check passed
  • Dongle Crash Analysis

    haumacher/phoneblock

    Decode and analyze an ESP32 dongle crash report (uploaded .coredump).

    366 GitHub stars~1.9k tokensUpdated 4 days ago
    MobileAuto-check: notes
  • Brings a RuView CSI sensing node online by building ESP32-S3 or ESP32-C6 firmware, flashing the board, provisioning WiFi and checking the serial output.

    97k GitHub stars~1.8k tokensUpdated yesterday
    DevelopmentAuto-check: notes

More from FastLED/FastLED

All 23 skills in this repo
  • CI Fix

    FastLED/FastLED

    Scan all CI builds and tests, find failures, fetch error logs, and fix the code.

    7.5k GitHub stars~897 tokensUpdated today
    Auto-check passed
  • Driver Review

    FastLED/FastLED

    Review and implement hardware driver code — DMA safety, interrupt correctness, timing constraints, peripheral register usage, channel drivers, and peripheral mock implementations.

    7.5k GitHub stars~3.1k tokensUpdated today
    Auto-check passed
  • Esp32 Log Triage

    FastLED/FastLED

    Parse and classify ESP32 serial log output to identify FastLED-related errors, RMT/I2S/SPI driver faults, timing violations, RTOS issues, and crash signatures.

    7.5k GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • Memory Audit

    FastLED/FastLED

    Audit embedded code for stack overflow risks, heap fragmentation, static allocation patterns, and memory leaks.

    7.5k GitHub stars~488 tokensUpdated today
    Auto-check passed
  • Platform Port

    FastLED/FastLED

    Guide porting FastLED to new MCU platforms, including int.h types, clockless drivers, SPI implementations, and platform detection.

    7.5k GitHub stars~580 tokensUpdated today
    Auto-check passed
  • TDD

    FastLED/FastLED

    Guide Test-Driven Development workflow for FastLED. An agent skill from FastLED/FastLED.

    7.5k GitHub stars~848 tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Embedded Debug

What does Embedded Debug do?

Firmware crash analysis, stack trace decoder, and register dump interpreter for ESP32/ARM/AVR platforms. Embedded Debug is an agent skill from FastLED/FastLED. Firmware crash analysis, stack trace decoder, and register dump interpreter for ESP32/ARM/AVR platforms.

When should I use Embedded Debug?

Embedded Debug fits situations like: debugging device crashes; guru meditation errors; analyzing core dumps.

How do I install Embedded Debug in Claude Code?

Run `npx skills add FastLED/FastLED --skill embedded-debug -a claude-code`. Or copy the skill folder (.claude/skills/embedded-debug in FastLED/FastLED) into .claude/skills/embedded-debug in your project. Claude Code loads it when a task matches its description.

How do I install Embedded Debug in Codex?

Run `npx skills add FastLED/FastLED --skill embedded-debug -a codex`. Or copy the skill folder (.claude/skills/embedded-debug in FastLED/FastLED) into .agents/skills/embedded-debug in your project. Codex loads it when a task matches its description.

Can I use Embedded Debug in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add FastLED/FastLED --skill embedded-debug -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/embedded-debug, .gemini/skills/embedded-debug, .github/skills/embedded-debug and .opencode/skills/embedded-debug in your project.

What does Embedded Debug need to run?

SKILL.md names no scripts, command-line tools or credentials: Embedded Debug is instructions for the agent only.

Does Embedded Debug access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Embedded Debug safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Embedded Debug use?

Embedded Debug is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Embedded Debug use?

About 1.4k tokens (SKILL.md is roughly 5.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Embedded Debug?

Skills that share tags, products or a category with Embedded Debug: Commodore64 Vice Debugging (idolpx/meatloaf, 128 stars), C64 Meatloaf Debug (idolpx/meatloaf, 128 stars), Meatloaf Networking (idolpx/meatloaf, 128 stars) and Embedded Debugger (Adancurusul/embedded-debugger-mcp, 199 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Embedded Debug?

FastLED (a GitHub organization) maintains it in FastLED/FastLED, which has 7,506 GitHub stars. The repository holds 23 skills in this directory. The repository was last updated on October 7, 2026.

Source: FastLED/FastLED on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.