serial-diagnostics

serial-diagnostics is a skill for Claude Code, Codex from jl-codes/platformio-mcp. It costs 43 tokens per session (241 once invoked), scanned A, original, MIT.

A diagnostic guide for investigating firmware through serial output after it has been built and uploaded. Serial output is text sent by an embedded device while it starts and runs.

In plain words
What is it for?
Capturing serial logs, finding boot markers, panic traces, watchdog resets, and peripheral problems, then choosing the next firmware change.
Why use it?
It helps distinguish successful startup from crashes, reset loops, missing output, and hardware-initialisation failures.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/jl-codes/platformio-mcp/serial-diagnostics
Any agent
npx skills add jl-codes/platformio-mcp --skill serial-diagnostics
Clone the repo
git clone --depth 1 https://github.com/jl-codes/platformio-mcp

Made for: Claude Code, 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-diagnostics

README.md
[![agentmods](https://agentmods.dev/badge/skills/jl-codes/platformio-mcp/serial-diagnostics.svg)](https://agentmods.dev/skills/jl-codes/platformio-mcp/serial-diagnostics)
Your own site
<a href="https://agentmods.dev/skills/jl-codes/platformio-mcp/serial-diagnostics"><img src="https://agentmods.dev/badge/skills/jl-codes/platformio-mcp/serial-diagnostics.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 241 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00043 $0.00241
Opus 5 $0.00022 $0.00120
Sonnet 5 $0.00009 $0.00048
Haiku 4.5 $0.00004 $0.00024

Measured 5d ago against content hash bb85dd79c531, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

serial-diagnostics 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 5d 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-diagnostics/SKILL.md · 48 lines

What it actually says

Serial Diagnostics

Purpose

Use this skill when firmware builds and flashes but the device has runtime issues.

Safety Rules

  • Do not interrupt an active flash operation.
  • Do not start multiple monitors on the same port.
  • Do not assume silence means success.
  • Preserve serial logs.

Workflow

  1. Confirm the target device and serial port.
  2. Start or query the serial monitor.
  3. Capture logs for a bounded time window.
  4. Identify boot markers, panic traces, reset loops, or missing output.
  5. Summarize runtime health.
  6. Recommend the smallest next code change.
  7. If needed, patch firmware and rebuild.
  8. Ask before reflashing.

Runtime Patterns

Detect:

BOOT_OK
watchdog reset
brownout detector
Guru Meditation
panic
stack overflow
heap corruption
reboot loop
no serial output
sensor init failed
WiFi failed
BLE failed
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. 5d ago First seen · 48 lines · 43 tokens per session scan A bb85dd79c531

Subscribe to this mod's changes

serial-diagnostics is a skill published in the GitHub repository jl-codes/platformio-mcp (50 stars, last pushed 2mo ago), licensed MIT. It adds 43 tokens to every session and 241 once invoked, about $0.0002 per session on Opus 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

integrated-browser

Use this when working on the VS Code integrated browser ("browserView") to understand its architecture and mental model. Covers the embedded Chromium browser, its editor tab, navigation, overlay/layout, sessions, and agent browser tools under src/vs/platform/browserView and src/vs/workbench/contrib/browserView.

microsoft/vscode · 68 tokens

project-snmp-profiles-authoring

Use when editing Netdata SNMP profile YAMLs, topology SNMP profiles, ddsnmp profile parsing, or profile-format documentation. Requires checking source MIB field accessibility, especially MAX-ACCESS not-accessible INDEX objects, before adding or changing profile symbols.

netdata/netdata · 60 tokens

hyperpod-version-checker

Check and compare software component versions on SageMaker HyperPod cluster nodes - NVIDIA drivers, CUDA toolkit, cuDNN, NCCL, EFA, AWS OFI NCCL, GDRCopy, MPI, Neuron SDK (Trainium/Inferentia), Python, and PyTorch. Use when checking component versions, verifying CUDA/driver compatibility, detecting version mismatches…

awslabs/agent-plugins · 120 tokens

unifi-protect

How to manage UniFi Protect cameras and NVR — view cameras, smart detections, Find Anything detection search, recordings, snapshots, lights, sensors, Known Faces, license plates, and the Alarm Manager. Use this skill when the user mentions UniFi cameras, security cameras, NVR, recordings, motion detection, person…

sirkirby/unifi-mcp · 112 tokens

pcbway

PCBWay PCB fabrication and assembly — turnkey/consigned assembly, design rules, ordering workflow. Alternative to JLCPCB for manufacturing. Use with KiCad. Use this skill when the user mentions PCBWay, needs turnkey assembly (PCBWay sources parts by MPN), has parts not available on LCSC, needs assembled boards with…

aklofas/kicad-happy · 119 tokens

speaker-recognizer

Self-enroll a voice for speaker recognition. Activate ONLY when (a) a mic Unknown Speaker: turn carries a clear self-introduction ("I'm X", "my name is X", "tôi là X"...), (b) prior same-tag [voice:voiceN] turns can be combined with a now-named turn, (c) a Telegram voice-note carries an intro, OR (d) the user asks to…

autonomous-ai/autonomous-os · 132 tokens