serial-debug

serial-debug is a skill for Codex from Adancurusul/serial-mcp-server. It costs 74 tokens per session (617 once invoked), scanned A, original, MIT.

A command-line guide for debugging devices over UART or USB serial connections, which send text or bytes between a computer and hardware.

In plain words
What is it for?
Listing ports, probing STM32, Arduino, or ESP32 boards, reading and writing serial data, controlling RTS and DTR signals, and planning repeatable JSON macros.
Why use it?
It encourages checking the available device and testing the connection before sending data, while making repeated procedures easier to verify.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Claude Code; mentions Codex.

Good fit Listing ports, probing STM32, Arduino, or ESP32 boards, reading and writing serial data, controlling RTS and DTR signals, and planning repeatable JSON macros.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/adancurusul/serial-mcp-server/serial-debug
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 Adancurusul/serial-mcp-server --skill serial-debug
Clone the repo
git clone --depth 1 https://github.com/Adancurusul/serial-mcp-server

Made for: Codex.

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 serial-debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/adancurusul/serial-mcp-server/serial-debug/github.svg)](https://agentmods.dev/skills/adancurusul/serial-mcp-server/serial-debug)
Your own site
<a href="https://agentmods.dev/skills/adancurusul/serial-mcp-server/serial-debug"><img src="https://agentmods.dev/badge/skills/adancurusul/serial-mcp-server/serial-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.

agentmods 80×15 button for serial-debug

Your own site · 80×15
<a href="https://agentmods.dev/skills/adancurusul/serial-mcp-server/serial-debug"><img src="https://agentmods.dev/badge/skills/adancurusul/serial-mcp-server/serial-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 617 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00074 $0.00617
Opus 5.5 $0.00030 $0.00247
Sonnet 5.5 $0.00015 $0.00123
Haiku 4.5 $0.00007 $0.00062

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

Security

Grade A, and why

serial-debug 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 1mo 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.

skills/serial-debug/SKILL.md · 60 lines

How it starts

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

Serial Debug

Operating Rule

Use the serial-mcp-server CLI first unless the user explicitly asks for MCP or an MCP client is already configured. Keep stdout data separate from diagnostics, cite exact commands, and base hardware success on real command evidence from the device.

Workflow

  1. Confirm the binary is available:
serial-mcp-server --help
  1. List available ports before choosing a device:
serial-mcp-server list-ports --json
  1. For a device smoke test, probe the port first, then write/read only when the probe succeeds:
serial-mcp-server probe --port <port> --baud 115200 --json
serial-mcp-server write --port <port> --baud 115200 --data H --read --timeout-ms 1000 --json
  1. If RTS or DTR is involved, state the requested line levels and use the control-line command:
serial-mcp-server set-control-lines --port <port> --rts high --dtr low --json
  1. For repeatable serial procedures, prefer JSON macro packs and validate or plan them before real hardware execution:
serial-mcp-server macro validate --file <pack.json> --json
serial-mcp-server macro plan --file <pack.json> --macro <name> --json
serial-mcp-server macro run --file <pack.json> --macro <name> --simulate-read <response> --json
serial-mcp-server macro run --file <pack.json> --macro <name> --port <port> --baud 115200 --json

Macro packs are restricted JSON DSL files. v0.3 supports send, delay, expect contains, expect equals, and assemblies that call macros. It does not support shell commands, language execution, loops, variables, Quick commands, or RTS/DTR macro steps.

References

  • Read references/cli.md for exact command behavior, output expectations, and automation rules.
  • Read references/mcp.md when the user asks for MCP setup or MCP tool usage.
  • Read references/hardware-safety.md before changing baud, wiring, voltage levels, RTS, DTR, or reset/boot lines.
  • Read references/troubleshooting.md when a command fails, times out, returns no ports, or cannot open the device.

Read the full file on GitHub · 60 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 60 lines · 74 tokens per session scan A dff69d12f0f8

Subscribe to this mod's changes

serial-debug is a skill published in the GitHub repository Adancurusul/serial-mcp-server (94 stars, last pushed 3mo ago), licensed MIT. It adds 74 tokens to every session and 617 once invoked, about $0.0003 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

Other skills, from other repositories

embedded-debugger

Embedded hardware debugging workflow for probe-rs targets using embedded-debugger-mcp. Use when Codex or Claude Code needs to inspect debug probes, validate embedded debugger setup, start the MCP server, guide a user through ARM Cortex-M/RISC-V flashing/debugging/RTT workflows, or operate without installing an MCP…

Adancurusul/embedded-debugger-mcp · 75 tokens

unifly

Inspect and manage UniFi Network infrastructure with the unifly CLI: devices, clients, VLANs, WiFi, firewall, VPN, switch ports, site settings, and cloud fleets. Use for UniFi network configuration, monitoring, and troubleshooting, not UniFi Protect camera or recording management.

hyperb1iss/unifly · 63 tokens

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…

Klievan/jlink-mcp · 77 tokens

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.

ProfYangShengXu/nuedc-skills · 65 tokens

ble

Use BLEA to diagnose and automate local Bluetooth Low Energy devices. Trigger for BLE discovery, GATT reads and notifications, guarded pairing or writes, read-only evidence capture, replay, and BLEA CLI or MCP workflows.

Nitmi/blea · 46 tokens

windows-debugging

Use the local Windows Debugging Tools (cdb / kd / adplus / umdh / dumpchk) bundled under windows-debugging\10.0.19041.5609 to analyze crash dumps (BSOD / .dmp), attach debuggers, capture process crashes with ADPlus, and hunt memory leaks with UMDH. Trigger when the user mentions WinDbg, analyzing a dump, blue screen…

ming-14/PTY-Agent · 104 tokens