Borrowing it
Nothing to install: this file belongs to SensorsIot/Embedded-AI-Harness. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/SensorsIot/Embedded-AI-Harness/main/.claude/skills/testbench-debug/SKILL.mdgit clone --depth 1 https://github.com/SensorsIot/Embedded-AI-HarnessWrote 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.
[](https://agentmods.dev/skills/sensorsiot/embedded-ai-harness/testbench-debug)<a href="https://agentmods.dev/skills/sensorsiot/embedded-ai-harness/testbench-debug"><img src="https://agentmods.dev/badge/skills/sensorsiot/embedded-ai-harness/testbench-debug/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.
<a href="https://agentmods.dev/skills/sensorsiot/embedded-ai-harness/testbench-debug"><img src="https://agentmods.dev/badge/skills/sensorsiot/embedded-ai-harness/testbench-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00106 | $0.05424 |
| Opus 5.5 | $0.00042 | $0.02170 |
| Sonnet 5.5 | $0.00021 | $0.01085 |
| Haiku 4.5 | $0.00011 | $0.00542 |
Grade C, and why
testbench-debug scanned grade C with 3 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.
Sends data to an external URLmediumData exfiltration
A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.
curl -X POST $TESTBENCH_URL/api/debug/stop -d '{}' Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
sudo cp openocd-esp32/bin/openocd /usr/local/bin/openocd-esp32 Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl $TESTBENCH_URL/api/devices How it starts
The opening of the file, as written. The whole thing — 528 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Testbench GDB Debugging
Remote GDB debugging of ESP32 devices through the testbench Pi. OpenOCD runs on the Pi, GDB connects from the container over TCP.
Architecture:
[Container] [Pi (testbench)] [ESP32]
GDB ──── TCP :3333 ────── OpenOCD ──── USB JTAG ──────── CPU
(or)
OpenOCD ──── ESP-Prog ── JTAG pins
Three Approaches
| Approach | Chips | Extra Hardware | Serial During Debug |
|---|---|---|---|
| USB JTAG (FR-024) | C3, S3 (native USB only) | None | Yes |
| Dual-USB (FR-025) | S3 (two USB connectors) | None | Yes + app USB |
| ESP-Prog (FR-026) | All ESP32 variants | ESP-Prog (~$15) + cable | Yes |
Auto-Debug (Zero Config)
OpenOCD starts automatically when a device is plugged in or at boot. No API call needed.
How it works:
- Device hotplugged → serial proxy starts → auto-detect tries OpenOCD configs
- Chip identified via JTAG TAP ID → OpenOCD starts on the assigned GDB port
- If USB JTAG fails (e.g. classic ESP32), falls back to ESP-Prog probe if available
- GDB port reported in
/api/devicesresponse
Check debug status:
curl $TESTBENCH_URL/api/devices
# Look for: "debugging": true, "debug_chip": "esp32s3", "debug_gdb_port": 3335
Manual override (optional -- only needed to force-stop or force-start):
# Force stop (won't auto-restart until next hotplug)
curl -X POST $TESTBENCH_URL/api/debug/stop -d '{}'
# Force start with specific chip
curl -X POST $TESTBENCH_URL/api/debug/start \
-d '{"chip": "esp32c3"}'
JTAG Reset (Preferred When Available)
When a debug session is active, the testbench automatically uses JTAG reset instead of DTR/RTS serial reset. This is transparent — the same /api/serial/reset API is used.
Why JTAG reset is better:
- No USB re-enumeration (device node stays stable)
- No flapping risk
- No 2-second boot delay
- Works even when serial port is unresponsive
- Can halt the CPU to stop boot loops
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.
- 2mo ago First seen · 528 lines · 106 tokens per session scan C 1b912f2f5cbf
testbench-debug is a skill published in the GitHub repository SensorsIot/Embedded-AI-Harness (273 stars, last pushed 20d ago), licensed MIT. It adds 106 tokens to every session and 5,424 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it C with 3 findings (sends data to an external url, asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
hardware-logging
Debug firmware on a real board using hwlog structured serial logs. Use whenever working with ESP32/embedded firmware — flashing, testing on hardware, reading device output, or diagnosing crashes, reboots, or silent boards.
firmware-debugger
(oh-my-embedded) Firmware debugging via GDB and serial monitor. Breakpoints, memory inspection, stack traces, JTAG/SWD. Requires debug probe.
embedded-debugging
Debug embedded firmware on real hardware through the jlink-mcp server — crashes, hangs, peripheral misconfiguration, silent devices. Covers loading ELF symbols for source-level backtraces, supplying an SVD for named peripheral fields, and the halt/read/resume discipline. Use whenever debugging a microcontroller over a…
m5stack-cap-lora-1262
Hardware reference and firmware helper for the M5Stack Cap LoRa-1262 (SKU U214) — a snap-on cap for the Cardputer Adv (K132-Adv) and CardputerZero that carries a Semtech SX1262 sub-GHz LoRa radio (868–923 MHz, +22 dBm TX, external RP-SMA antenna) and an ATGM336H-6N GNSS receiver (GPS/QZSS/BeiDou/Galileo/GLONASS, UART…
nuedc
A workflow for solving China’s National Undergraduate Electronic Design Contest (TI Cup), from understanding a task to designing circuits, writing code, compiling, flashing, and debugging. It can generate wiring diagrams and support MCU, FPGA, simulation, and PCB work, but physical wiring, soldering, and instrument operation still need a person.
new-device-skill
Build or update an M5Stack hardware skill in this marketplace — a Controller (a board that runs firmware, like Core2 or AtomS3), a Unit (a peripheral you drive from a Controller, like a ToF sensor or a relay), or a Chip (an Espressif SoC capability layer, like esp32-c6). Use whenever adding a new board/unit/chip to…