Skip to content

Serial-port debugging toolkit for embedded work: scan ports, monitor, send, dump hex, log, and multiplex one port.

CCM score
56 of 100
skills.sh installs
934
GitHub stars
815
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers scanning, live text monitoring, sending text or hex, hex stream viewing, and logging to text, CSV, or JSON files
  • Includes five scripts/ tools (serial_scan.py, serial_monitor.py, serial_send.py, serial_hex.py, serial_log.py) plus serial_mux.py for shared-port access
  • Resolves connection settings as CLI flags, then .embeddedskills/config.json, then saved state, then defaults, and never guesses baud rate
  • Designed for embedded developers debugging MCU output, AT commands, and binary protocols on Windows or Linux

Install

$ npx -y skills add zhinkgit/embeddedskills --skill serial -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Serial — 嵌入式串口调试工具

统一封装端口发现、实时监控、数据发送、日志记录和 Hex 查看能力。

运行依赖

Windows 或 Linux,Python 3.10+ 和 pyserial。mux 需要 Linux、socat 和 PTY。

配置

环境级配置 (skill/config.json)

serial skill 的环境级配置示例 config.example.json 目前为空对象 {}(可省略,无需单独创建 config.json),因为串口参数属于工程级配置,统一在工作区的 .embeddedskills/config.json 中管理。

工程级配置 (.embeddedskills/config.json)

工作区下的 .embeddedskills/config.json 存放工程级串口配置:

{
  "serial": {
    "port": "",
    "baudrate": 115200,
    "bytesize": 8,
    "parity": "none",
    "stopbits": 1,
    "encoding": "utf-8",
    "timeout_sec": 1.0,
    "log_dir": ".embeddedskills/logs/serial"
  }
}
字段说明默认值
port串口号,如 COM3""
baudrate波特率115200
bytesize数据位8
parity校验位:none/even/odd/mark/spacenone
stopbits停止位:1/1.5/21
encoding文本编码utf-8
timeout_sec读写超时(秒)1.0
log_dir日志输出目录.embeddedskills/logs/serial

参数解析优先级

  1. CLI 参数 (--port, --baudrate 等) - 最高优先级
  2. 工程级配置 (.embeddedskills/config.json 中的 serial 部分)
  3. 状态文件 (.embeddedskills/state/serial.json 中的历史记录)
  4. 默认值 - 最低优先级

自动扫描行为

Details

Repository
github.com/zhinkgit/embeddedskills
Category
CLI & Terminal
First seen
Jun 3, 2026

Questions

What does the serial skill do?

The serial skill is an embedded serial debugging tool for scanning ports, live monitoring, sending data, logging, and hex viewing. Its serial subcommands are scan, monitor, send, hex and log.

How do I install the serial skill?

Run npx -y skills add zhinkgit/embeddedskills --skill serial -y in a project to install the serial skill. After that, the agent can scan COM or UART ports and watch MCU output on its own.

What does the serial skill need to run?

The serial skill needs Windows or Linux, Python 3.10 or newer, and the pyserial package. Multiplexing through the mux subcommand also needs Linux, socat and a PTY.

Where does the serial skill rank in its category?

The serial skill ranks in the top 100 on the CLI and Terminal category page of Claude Marketplaces. It covers serial port work such as AT command debugging, baud rate checks and binary protocol bring-up.

Can I use minicom and the serial skill on the same port?

Yes, the serial skill's mux subcommand lets minicom and the skill scripts share one serial device. Writing from several clients at once can scramble the data, so the skill warns before sending.

More from zhinkgit/embeddedskills

All 9

Similar to Serial

More CLI & Terminal