agentsclimarketplace

Embedded serial log debug

Skill easyzoom/aix-skills/skills/embedded-serial-log-debug

Use when collecting or debugging embedded serial UART logs, boot consoles,乱码, missing output, baud-rate issues, or serial terminal accessFrom its SKILL.md

Install
npx -y skills add easyzoom/aix-skills --skill embedded-serial-log-debug

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • 24 stars24 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
  • runs commandsInstructs the agent to run 6 commands, including `picocom -b 115200 /dev/ttyUSB0` and 5 more.

SKILL.md

3.9 KB, 868 tokens by cl100k_base, as published. Nobody here has run it

Embedded Serial Log Debug

Overview

Use this skill to make serial logs trustworthy before drawing conclusions from them. Confirm wiring, voltage level, port ownership, baud settings, boot timing, and log source before debugging firmware behavior.

When To Use

Use this skill when:

  • The user needs UART boot logs, serial console access, or firmware printf output.
  • Serial output is missing, garbled, intermittent, delayed, duplicated, or stops mid-boot.
  • The task involves USB-to-UART adapters, screen, picocom, minicom, logic analyzers, boot logs, or console prompts.

Do not use this skill when the problem is already proven to be a higher-level protocol issue unrelated to raw serial capture.

First Questions

Ask for:

  • Board/chip and which UART pins are used.
  • USB-to-UART adapter model and voltage level.
  • Serial device path, such as /dev/ttyUSB0 or /dev/ttyACM0.
  • Baud rate, data bits, parity, stop bits, and flow control if known.
  • Whether logs are expected from boot ROM, bootloader, kernel, RTOS, or application.
  • Whether TX/RX/GND are accessible and common ground is connected.

Workflow

  1. Confirm electrical compatibility. Check voltage level, common ground, TX/RX crossing, and whether pins are shared with boot/download modes.

  2. Confirm terminal ownership. Ensure no other terminal, programmer, modem manager, or IDE owns the serial port.

  3. Start with common settings. Use 115200 8N1 no flow control unless the board documentation says otherwise.

  4. Capture from reset. Open the terminal before reset or power-on so early boot logs are not missed.

  5. Classify the symptom. Missing output,乱码, only TX visible, only RX visible, stops after bootloader, login prompt only, or application printf missing.

  6. Verify with a second observation method. Use a logic analyzer, oscilloscope, known-good adapter, or loopback test when serial output is suspect.

Command Patterns

picocom -b 115200 /dev/ttyUSB0
screen /dev/ttyUSB0 115200
minicom -D /dev/ttyUSB0 -b 115200
stty -F /dev/ttyUSB0 115200 cs8 -cstopb -parenb -ixon -ixoff

For permissions:

ls -l /dev/ttyUSB0
groups

Do not run permission-changing commands unless the user approves them.

Symptom Guide

SymptomLikely checks
No outputTX pin, ground, voltage, wrong UART, reset timing, firmware not booting
Garbled outputBaud, clock source, 1T/12T mode, parity, wrong oscillator
Stops after bootloaderApp jump, app UART init, logging level, crash after handoff
Only input failsRX wiring, console disabled, flow control, login shell not running
Random characters on resetFloating line, wrong voltage, boot ROM at different baud

Verification

Before trusting serial evidence:

  • State adapter, serial path, voltage level, wiring assumptions, and terminal settings.
  • Confirm capture starts before reset/power-on when boot logs matter.
  • Report whether the output is clean, garbled, absent, or partial.
  • If logs are absent, state which lower-layer checks passed and which remain unverified.

Common Failures

  • Debugging firmware before confirming the adapter voltage and common ground.
  • Opening the terminal after early boot logs already passed.
  • Assuming 115200 when the boot ROM or app uses another baud.
  • Leaving hardware flow control enabled accidentally.
  • Forgetting that programmer tools may also occupy the serial port.

Example

User:

串口没日志,板子不知道有没有跑起来。

Agent:

  1. Asks for board, UART pins, adapter voltage, serial path, baud, and expected log source.
  2. Opens capture before reset.
  3. If no output, checks wiring and uses GPIO heartbeat or logic analyzer before blaming firmware.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Gives 0 of the 12 instructions most debug triage skills give in 868 tokens

Counted across 1,020 of the 1,639 authors here whose files we hold, read 2026-09-06

  • Find root cause before attempting any fixin 134 of 1020, across 118 files
  • Create a failing test case before implementing a fixin 109 of 1020, across 95 files
  • Read error messages and stack traces completelyin 102 of 1020, across 88 files
  • Reproduce the issue consistently before investigatingin 90 of 1020, across 77 files
  • Make the smallest possible change to test a hypothesisin 90 of 1020, across 76 files
  • Trace data flow backward to find the sourcein 84 of 1020, across 70 files
  • Form a single hypothesis before testingin 78 of 1020, across 64 files
  • Implement only one fix at a timein 76 of 1020, across 63 files
  • Question the architecture if three fixes failin 73 of 1020, across 59 files
  • Add diagnostic instrumentation at component boundariesin 68 of 1020, across 56 files
  • Compare broken code against working examplesin 68 of 1020, across 57 files
  • Write a regression test before applying the fixin 62 of 1020, across 55 files

Said here and by no other author read

  • confirm electrical compatibility and common ground
  • ensure no other process owns the serial port
  • use 115200 8N1 settings by default
  • open terminal before reset or power-on
  • classify the serial output symptom
  • verify output with a second observation method

Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.