Agent skill

Serial

by Tansuo2021 in Tansuo2021/ADtoKeil

Embedded serial-port debugging skill. An agent skill from Tansuo2021/ADtoKeil.

GPL-3.0Auto-check passedDevelopment

Install Serial

skills CLI
$ npx skills add Tansuo2021/ADtoKeil --skill serial -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Tansuo2021/ADtoKeil serial --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Tansuo2021/ADtoKeil.git skills-src && mkdir -p .claude/skills && cp -r skills-src/serial .claude/skills/serial && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
serial
GitHub stars
188
Token cost
~754 tokens
SKILL.md length
239 words
Files
11 (incl. scripts, references)
Skills in repo
6
Repo updated
First seen
Licence
GPL-3.0

At a glance

Embedded serial-port debugging skill. An agent skill from Tansuo2021/ADtoKeil.

  • Works in 5 steps: Scan ports and confirm the expected… → Monitor for reset/banner output. → If no output, verify baud rate, TX/RX… → …
  • The user mentions serial
  • SKILL.md covers Capabilities, Configuration, Commands and Rules, plus 1 more section
  • Runs Python scripts from its folder; calls python

What it does

Serial is an agent skill from Tansuo2021/ADtoKeil. Embedded serial-port debugging skill. Use when the user mentions serial, COM port, UART, baud rate, AT commands, Hex stream, serial logs, MCU output, binary protocol debugging, monitoring, sending data, or recording UART evidence. Provides scripts to scan ports, monitor text, send text/hex data, dump hex streams, record logs, and optionally use a serial mux.

Its SKILL.md is about 750 tokens, which your agent loads only when the skill is triggered. The skill folder holds 12 other files, including scripts and reference files (for example `README.md`, `config.example.json` and `references/common_devices.json`).

It sits in Development, covering Debugging. The licence is GPL-3.0.

When your agent uses it

  • The user mentions serial
  • Binary protocol debugging
  • Recording UART evidence

Example prompts

  • “/serial”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Scan ports and confirm the expected adapter.
  2. Monitor for reset/banner output.
  3. If no output, verify baud rate, TX/RX direction, voltage domain, firmware UART init, and whether the current HEX was flashed.
  4. Log evidence before changing firmware.
  5. For commands, send one minimal request and wait for response.

What it can do on your machine

Read from SKILL.md and the folder at commit 56ab07d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 7 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Serial loads about 754 tokens when it runs, and up to ~977 if it reads all its reference files. Until then it costs about 92 tokens; SKILL.md has 239 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~92
When it runs · the whole SKILL.md, loaded when a task matches
~754
With references · SKILL.md plus every file in references/, read only if the agent opens them
~977

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from Tansuo2021/ADtoKeil at commit 56ab07d, republished under its GPL-3.0 licence (© Tansuo2021). 239 words, ~754 tokens.

Download SKILL.mdSave it as .claude/skills/serial/SKILL.md (or your agent's skills folder). This skill also uses 10 other files; get the full folder from GitHub.
name
serial
description
Embedded serial-port debugging skill. Use when the user mentions serial, COM port, UART, baud rate, AT commands, Hex stream, serial logs, MCU output, binary protocol debugging, monitoring, sending data, or recording UART evidence. Provides scripts to scan ports, monitor text, send text/hex data, dump hex streams, record logs, and optionally use a serial mux.
argument-hint
[scan|monitor|send|hex|log|mux] ...

Serial Debugging

Use this skill for UART/COM-port observation and command exchange during embedded bring-up.

Capabilities

  • Scan available serial ports.
  • Monitor text output with filters and timestamps.
  • Send text or hex payloads, optionally with CR/LF and response wait.
  • View binary streams as hex dumps.
  • Record logs to text, CSV, or JSON.
  • Use a mux helper so monitor/log/send can share one hardware port when configured.

Configuration

Workspace-level config lives in .embeddedskills/config.json:

json
{
  "serial": {
    "port": "COM3",
    "baudrate": 115200,
    "bytesize": 8,
    "parity": "none",
    "stopbits": 1,
    "encoding": "utf-8",
    "timeout_sec": 1.0,
    "log_dir": ".embeddedskills/logs/serial"
  }
}

Parameter priority: CLI arguments > workspace config > .embeddedskills/state.json > defaults.

Commands

Scan:

powershell
python <skill_dir>\scripts\serial_scan.py --json

Monitor:

powershell
python <skill_dir>\scripts\serial_monitor.py `
  --port COM3 --baudrate 115200 --timestamp --timeout 10

Send text:

powershell
python <skill_dir>\scripts\serial_send.py `
  --port COM3 --baudrate 115200 "AT" --crlf --wait-response --json

Send hex:

powershell
python <skill_dir>\scripts\serial_send.py `
  --port COM3 --baudrate 115200 "01 03 00 00 00 02" --hex --json

Hex dump:

powershell
python <skill_dir>\scripts\serial_hex.py `
  --port COM3 --baudrate 115200 --timeout 10

Log:

powershell
python <skill_dir>\scripts\serial_log.py `
  --port COM3 --baudrate 115200 --duration 30 --timestamp --json

Rules

  • Never send data unless the user asks or the task clearly requires it.
  • Do not guess a port when multiple ports are present; ask or list candidates.
  • Do not guess baud rate. Use project config, firmware constants, schematic notes, or the user's value.
  • Prefer passive monitor/log before sending commands to an unknown device.
  • For binary protocols, use hex or send --hex and record exact bytes.
  • If a port is busy, report likely causes: another terminal, IDE monitor, flash tool, or mux state.
  • When using mux, warn that multiple writers can corrupt the serial stream.

Bring-up Pattern

For MCU firmware debugging:

  1. Scan ports and confirm the expected adapter.
  2. Monitor for reset/banner output.
  3. If no output, verify baud rate, TX/RX direction, voltage domain, firmware UART init, and whether the current HEX was flashed.
  4. Log evidence before changing firmware.
  5. For commands, send one minimal request and wait for response.

© Tansuo2021, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 10 other files (scripts, references) in serial of Tansuo2021/ADtoKeil.

  • SKILL.md
  • README.md
  • config.example.json
  • references/common_devices.json
  • scripts/serial_hex.py
  • scripts/serial_log.py
  • scripts/serial_monitor.py
  • scripts/serial_mux.py
  • scripts/serial_runtime.py
  • scripts/serial_scan.py
  • scripts/serial_send.py

Open the folder on GitHubat commit 56ab07d

Compare with similar skills

Serial next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Serial compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Serial this skillTansuo2021/ADtoKeil188—~754Automated safety check: PassGPL-3.0
Trellis Session Insightmindfold-ai/Trellis15k4 repos~1.7kAutomated safety check: PassAGPL-3.0
Native Data FetchingCherryHQ/cherry-studio-app4k6 repos~2.9kAutomated safety check: NotesMIT
Debugging Executionsn8n-io/n8n207k—~2.6kAutomated safety check: PassCustom licence
Aoti Debugpytorch/pytorch104k1 repos~1.7kAutomated safety check: PassCustom licence
Herdr Throwaway Reproductionherdrdev/herdr43k—~2.4kAutomated safety check: PassApache-2.0

Similar skills

  • Trellis Session Insight

    mindfold-ai/Trellis

    Reach into past AI conversation history through the trellis mem CLI.

    15k GitHub starsUsed in 4 repos~1.7k tokens
    DevelopmentAuto-check passed
  • Native Data Fetching

    CherryHQ/cherry-studio-app

    A skill your agent uses when implementing or debugging ANY network request, API call, or data fetching.

    4k GitHub starsUsed in 6 repos~2.9k tokens
    DevelopmentAuto-check: notes
  • Official

    Debug failed or wrong-output workflow executions using executions tools.

    207k GitHub stars~2.6k tokensUpdated today
    DevelopmentAuto-check passed
  • Aoti Debug

    pytorch/pytorch

    Debug AOTInductor (AOTI) errors and crashes. An agent skill from pytorch/pytorch.

    104k GitHub starsUsed in 1 repo~1.7k tokens
    DevelopmentAuto-check passed
  • Runs a disposable, uniquely named Herdr session inside an existing one so runtime, pane, terminal or API bugs can be reproduced without touching the main session.

    43k GitHub stars~2.4k tokensUpdated today
    DevelopmentAuto-check passed
  • Systematic Debugging

    ultralisp/ultralisp

    A skill your agent uses when encountering any bug, test failure, or unexpected behavior, before proposing fixes

    258 GitHub starsUsed in 51 repos~2.4k tokens
    DevelopmentAuto-check passed

More from Tansuo2021/ADtoKeil

  • Altium Circuit Investigator

    Tansuo2021/ADtoKeil

    Evidence-led analysis of Altium schematic and PCB designs using netlist tracing, full symbol-pin coverage, connector and PCB pad inventories, local schematic screenshots/SVG labels, component…

    188 GitHub stars~2.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Altium Schematic Reader

    Tansuo2021/ADtoKeil

    Read and reason about Altium Designer projects and schematics using structured data from .PrjPcb and .SchDoc files.

    188 GitHub stars~1.4k tokensUpdated 4 mo ago
    Auto-check passed
  • Keil

    Tansuo2021/ADtoKeil

    Keil MDK/uVision build skill for embedded projects. An agent skill from Tansuo2021/ADtoKeil.

    188 GitHub stars~1.2k tokensUpdated 4 mo ago
    Auto-check passed
  • Workflow

    Tansuo2021/ADtoKeil

    Thin orchestration layer for embeddedskills. An agent skill from Tansuo2021/ADtoKeil.

    188 GitHub stars~625 tokensUpdated 4 mo ago
    Auto-check passed
  • Build and review maintainable embedded MCU firmware from schematic, PCB, netlist, pin-map, BOM, Keil/C51/MDK projects, vendor demo code, or hardware debug evidence.

    188 GitHub stars~1.5k tokensUpdated 4 mo ago
    Auto-check passed

Categories

Questions about Serial

What does Serial do?

Embedded serial-port debugging skill. An agent skill from Tansuo2021/ADtoKeil. Serial is an agent skill from Tansuo2021/ADtoKeil. Embedded serial-port debugging skill.

When should I use Serial?

Serial fits situations like: the user mentions serial; binary protocol debugging; recording UART evidence.

How do I install Serial in Claude Code?

Run `npx skills add Tansuo2021/ADtoKeil --skill serial -a claude-code`. Or copy the skill folder (serial in Tansuo2021/ADtoKeil) into .claude/skills/serial in your project. Claude Code loads it when a task matches its description.

How do I install Serial in Codex?

Run `npx skills add Tansuo2021/ADtoKeil --skill serial -a codex`. Or copy the skill folder (serial in Tansuo2021/ADtoKeil) into .agents/skills/serial in your project. Codex loads it when a task matches its description.

Can I use Serial in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Tansuo2021/ADtoKeil --skill serial -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/serial, .gemini/skills/serial, .github/skills/serial and .opencode/skills/serial in your project.

What does Serial need to run?

Going by SKILL.md and its folder, Serial needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Serial access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Serial safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Serial use?

Serial is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Serial use?

About 754 tokens (SKILL.md is roughly 3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 223 tokens, read only when the agent opens those files.

What are the alternatives to Serial?

Skills that share tags, products or a category with Serial: Trellis Session Insight (mindfold-ai/Trellis, 15k stars), Native Data Fetching (CherryHQ/cherry-studio-app, 4k stars), Debugging Executions (n8n-io/n8n, 207k stars) and Aoti Debug (pytorch/pytorch, 104k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Serial?

Tansuo2021 (a GitHub user) maintains it in Tansuo2021/ADtoKeil, which has 188 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on June 7, 2026.

Source: Tansuo2021/ADtoKeil on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.