serial

serial is a command for Claude Code from jzl-maker/EA-SKILL. It costs 0 tokens per session (946 once invoked), scanned A, original, MIT.

A serial-monitoring command for reading data sent by an embedded device over a serial connection. It includes a command-line tool for automatically collecting logs and a graphical tool for watching the connection yourself.

In plain words
What is it for?
Use it to monitor firmware logs, save serial output, reset a microcontroller, and collect evidence while testing or debugging a board.
Why use it?
It provides a repeatable way to capture device output, including messages printed during startup after a reset.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it to monitor firmware logs, save serial output, reset a microcontroller, and collect evidence while testing or debugging a board.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/jzl-maker/ea-skill/serial
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.

Clone the repo
git clone --depth 1 https://github.com/jzl-maker/EA-SKILL

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/jzl-maker/ea-skill/serial/github.svg)](https://agentmods.dev/commands/jzl-maker/ea-skill/serial)
Your own site
<a href="https://agentmods.dev/commands/jzl-maker/ea-skill/serial"><img src="https://agentmods.dev/badge/commands/jzl-maker/ea-skill/serial/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

Your own site · 80×15
<a href="https://agentmods.dev/commands/jzl-maker/ea-skill/serial"><img src="https://agentmods.dev/badge/commands/jzl-maker/ea-skill/serial.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 946 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.
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.00000 $0.00946
Opus 5.5 $0.00000 $0.00378
Sonnet 5.5 $0.00000 $0.00189
Haiku 4.5 $0.00000 $0.00095

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

Security

Grade A, and why

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

commands/serial.md · 103 lines

How it starts

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

命令: /ea serial (串口监控)

ESP32 分支

ESP32 工程先读取 ESP32 适配流程,优先使用框架 monitor;使用本 CLI 时不传 ARM OpenOCD 自动复位参数。控制台类型、端口和波特率以工程配置为准。

功能

串口数据监控和日志抓取

EA-SKILL 内置两个串口工具:

工具 路径 用途
serial-mcp (GUI) <SKILL>/tools/serial-mcp/ 可视化串口监控,人工观察
serial-monitor (CLI) <SKILL>/tools/serial-monitor/scripts/serial_monitor.py AI 自动抓取日志

serial-mcp 用于人工观察,serial-monitor 用于 AI 自动抓取日志。

串口监控 (CLI)

调用方式

python <SKILL>/tools/serial-monitor/scripts/serial_monitor.py \
  --port <COM端口> \
  --baud <波特率>

完整参数示例(避免错过启动消息)

关键:必须指定 OpenOCD 参数,否则复位会失败!

python <SKILL>/tools/serial-monitor/scripts/serial_monitor.py \
  --port COM5 \
  --baud 115200 \
  --duration 15 \
  --wait-reset \
  --auto-reset \
  --interface stlink \
  --openocd-config interface/stlink.cfg \
  --openocd-target target/stm32f4x.cfg \
  --save .ea/logs/serial_S9.log

参数说明

参数 必须 说明
--port ✅ 串口端口 (如 COM6)
--baud ✅ 波特率 (如 921600)
--duration 否 监控时长(秒)
--auto-reset 否 自动复位 MCU
--interface ✅(复位时) 烧录接口类型 (stlink/jlink/cmsis-dap)
--openocd-config ✅(复位时) OpenOCD 接口配置文件
--openocd-target ✅(复位时) OpenOCD 目标芯片配置文件
--save 否 日志保存路径

串口 GUI (MCP)

python <SKILL>/tools/serial-mcp/serial_monitor.py

MCP 工具

工具 说明
serial_read 读取串口日志
serial_status 获取连接状态
serial_send 发送命令
serial_log_file 获取日志文件

工作流程

  1. 打开串口,开始监听
  2. 如果使用 --auto-reset,OpenOCD 执行 reset halt 复位开发板
  3. MCU 重启后输出完整启动日志
  4. 捕获完整的启动日志并保存

注意事项

⚠️ --interface 必须与烧录时使用的接口一致

⚠️ --openocd-config 和 --openocd-target 路径必须正确

⚠️ 避免错过启动消息:先打开串口,再执行复位

常见错误

错误 原因 解决方案
Unsupported transport 未传 --interface,OpenOCD 自动选择错误接口 添加正确的 --interface 参数
invalid command name --openocd-config 路径不对 检查 OpenOCD 配置文件路径
串口被占用 其他程序占用该端口 关闭占用串口的程序
连接失败 串口号错误或未连接 检查串口连接和设备管理器

Read the full file on GitHub · 103 lines

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 Changed · +4 lines 7b842f2ec260
  2. 2mo ago Changed 6adb77f5639f
  3. 2mo ago Changed cdaaaf7c55df
  4. 3mo ago First seen · 99 lines · 0 tokens per session scan A 309dbae626cb

Subscribe to this mod's changes

serial is a command published in the GitHub repository jzl-maker/EA-SKILL (15 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 946 tokens. 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-31.

Related

serial compared with commands from other repositories

serial next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
serialjzl-maker/EA-SKILLCommand151mo agoMITA0Claude Code
rtosHermeticOrmus/LibreEmbed-Claude-CodeCommand501mo agoMITA27Claude Code
cortex-mHermeticOrmus/LibreEmbed-Claude-CodeCommand501mo agoMITA25Claude Code
debug-embeddedHermeticOrmus/LibreEmbed-Claude-CodeCommand501mo agoMITA27Claude Code
embedded-linuxHermeticOrmus/LibreEmbed-Claude-CodeCommand501mo agoMITA23Claude Code
esp-teachmathisk2095/jko-claude-pluginsCommand31mo agoMITA19Claude Code
tapeout-checkMidstall/claude-for-hardwareCommand204mo agoApache-2.0A12Claude Code