agentleFS
easyzoomeasyzoom/aix-skills/skills/embedded-debug-entry/SKILL.md

embedded-debug-entry

Skill36 starsChanged 5 months agoMITView on GitHub

Use when triaging embedded device, MCU, firmware, board bring-up, flashing, serial log, RTOS, bootloader, low-power, or peripheral debug requests

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 10 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill as the first stop for embedded debugging.

    line 10
  2. Distinctive:

    Use this skill when:

    line 14
  3. Distinctive:

    Do not use this skill when the user already named a more specific skill path, such as Cortex-M HardFault, 8051 timer, RISC-V trap, or …

    line 20
  4. Distinctive:

    Ask only what is needed to route:

    line 24
  5. Distinctive:

    Use the most specific path:

    line 34
  6. Distinctive:

    Do not start with code edits, reflashing, or resets until the target and failure phase are known.

    line 67
  7. Very specific:

    If multiple skills apply, pick the one closest to the current blocker.

    line 70
  8. Distinctive:

    Ask for the smallest artifact that proves the current state: programmer error, serial log, GDB register dump, schematic snippet, or tool …

    line 73
  9. Distinctive:

    Treat erase, option bytes, boot config, security bits, fuses, production data, and power changes as explicit-approval actions.

    line 76
  10. Distinctive:

    Before moving into a specialized workflow:

    line 83
  11. Distinctive:

    If serial is healthy but no heartbeat exists, routes to the architecture-specific startup workflow.

    line 109

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Embedded Debug Entry

Overview

Use this skill as the first stop for embedded debugging. The agent should classify the target, failure phase, access method, toolchain, and risk level, then route to the narrowest specialized skill instead of guessing from incomplete context.

When To Use

Use this skill when:

  • The user reports an embedded device, MCU, board, firmware, RTOS, bootloader, or peripheral issue.
  • The architecture or debugging path is unclear.
  • The task might involve flashing, serial logs, SWD/JTAG, UART, ADB, bootloaders, low power, or hardware signals.

Do not use this skill when the user already named a more specific skill path, such as Cortex-M HardFault, 8051 timer, RISC-V trap, or embedded Linux SSH login.

First Questions

Ask only what is needed to route:

  • Target type: MCU, embedded Linux device, mixed SoC, module, or unknown board.
  • Architecture or chip family: Cortex-M, Cortex-R, RISC-V, 8051, Linux-capable ARM, or unknown.
  • Failure phase: cannot connect, cannot flash, no boot, crash/fault, no logs, peripheral failure, RTOS issue, bootloader issue, low-power issue.
  • Available access: SWD/JTAG, serial UART, SSH, ADB, Telnet, local console, logic analyzer, oscilloscope, or vendor tool.
  • Toolchain and artifacts: ELF/HEX/MAP, firmware log, programmer output, schematic, boot log, or fault dump.

Routing Guide

Use the most specific path:

Symptom or targetPrefer
Cortex-M MCU, SWD/JTAG, HardFault, startupcortex-m-debug
Cortex-R5/R4/R7, TCM, MPU, lockstep, safety corecortex-r5-debug
8051/51/STC/Nuvoton/Silabs C80518051-mcu-debug
RISC-V MCU, OpenOCD/GDB, trap, CSRriscv-mcu-debug
Embedded Linux login before debuggingembedded-linux-login-debug
OpenOCD/J-Link/ST-Link probe, SWD/JTAG attachopenocd-jlink-stlink-debug
Flash/download/verify/connect failuremcu-flashing-debug
UART boot log, serial console, 乱码, no logsembedded-serial-log-debug
Crash, exception, trap, fault, stack corruptionembedded-fault-debug
GPIO/UART/SPI/I2C/PWM/ADC bring-upembedded-peripheral-bringup
Sensor driver, IMU, I2C/SPI sensor datasensor-driver-integration
QSPI/OSPI flash, XIP, memory-mapped bootqspi-xip-flash-debug
FreeRTOS kernel: tasks, heap, tick, ISR APIfreertos-kernel-debug
Zephyr devicetree, Kconfig, west, driverszephyr-integration
RT-Thread BSP, FinSH, device framework, DFSrt-thread-integration
General RTOS scheduling, stacks, prioritiesrtos-debug
STM32 HAL/LL, CubeMX, clocks, DMA, NVICstm32-hal-ll-integration
ESP-IDF, sdkconfig, partitions, NVS, Wi-Fiesp-idf-integration
Nordic nRF Connect SDK, BLE, DFU, Partition Mgrnrf-connect-sdk-integration
BLE GATT services, characteristics, MTU, pairingble-gatt-integration
Bootloader, app jump, upgrade statebootloader-debug
MCUboot image slots, signing, swap, rollbackmcuboot-integration
OTA package, transport, validation, activationota-update-integration
Sleep, wakeup, current consumption, lost debuglow-power-debug
Power, reset, clock, pins, board-level signalshardware-interface-debug

Workflow

  1. Classify before acting. Do not start with code edits, reflashing, or resets until the target and failure phase are known.
  2. Route to one primary skill. If multiple skills apply, pick the one closest to the current blocker. Example: "cannot flash Cortex-M" starts with mcu-flashing-debug, not general Cortex-M logic.
  3. Collect minimal evidence. Ask for the smallest artifact that proves the current state: programmer error, serial log, GDB register dump, schematic snippet, or tool output.
  4. Preserve safety boundaries. Treat erase, option bytes, boot config, security bits, fuses, production data, and power changes as explicit-approval actions.
  5. Summarize the route. Tell the user which path you selected and why before continuing with detailed debug instructions.

Verification

Before moving into a specialized workflow:

  • State target class, architecture, failure phase, available access, and selected skill.
  • State what evidence is already available and what is still missing.
  • Confirm no destructive operation has been recommended without approval.

Common Failures

  • Treating every embedded issue as a firmware code problem.
  • Asking for every possible tool output before choosing a debug path.
  • Starting with flash erase when the failure is actually serial wiring or reset.
  • Debugging application logic before proving the target boots and the image matches.
  • Mixing Linux device login workflows with MCU bare-metal workflows.

Example

User:

板子起来以后没日志,也不知道是不是程序没跑。

Agent:

  1. Asks for chip family, access methods, firmware artifact, and whether serial pins are known.
  2. Routes to embedded-serial-log-debug if the first blocker is "no logs".
  3. If serial is healthy but no heartbeat exists, routes to the architecture-specific startup workflow.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.