Serial Monitor logo

Serial Monitor

Community
LeoKemp223
serial-monitor

当需要识别正确串口、调用自带脚本抓取日志,并分析嵌入式固件运行状态时使用。

Add to TypingMind

Overview

PublisherLeoKemp223
Repositoryembed-ai-tool
Skill nameserial-monitor
Stars
995
Forks
168
Bundled files
3
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by LeoKemp223 on GitHub. Read the source before you install it.

Installation

Install the Serial Monitor AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/LeoKemp223/embed-ai-tool/tree/master/skills/serial-monitor
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/LeoKemp223/embed-ai-tool.git /tmp/embed-ai-tool
mkdir -p .claude/skills
cp -r /tmp/embed-ai-tool/skills/serial-monitor .claude/skills/serial-monitor
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Serial Monitor in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Serial Monitor on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Serial Monitor is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

串口监视

适用场景

  • 用户需要查看目标板的启动日志、断言输出或交互式 UART 输出。
  • 烧录或复位刚完成,下一步需要观察运行期行为。
  • 需要避免错过早期启动日志,或希望在监听后立即复位目标板。
  • 工作区或 profile 中已经有明确的 UART 端口或波特率。

必要输入

  • 一个串口,或一份足以完成串口探测的 Project Profile。
  • 可选的波特率、监视模式、关键字符串、日志保存路径。
  • 若要自动复位,还需要 OpenOCD 配置,来自显式输入或已有工程画像。

自动探测

  • 串口优先级为:显式用户输入、Project Profile、脚本自动检测结果,否则阻塞。
  • 波特率优先级为:显式用户输入、Project Profile、工作区文档或代码常量,最后回落到 115200。
  • 自动检测时,优先选择 CH340、CP210x、CMSIS-DAP、ST-Link 等常见串口或调试器虚拟串口。
  • 若存在多个同样合理的串口候选,先列出候选,再按需要阻塞而不是静默猜测。

执行步骤

  1. 先阅读 references/usage.md,确认本次是列表、抓取、等待字符串、持续监视,还是“先监听后复位”。
  2. 运行自带脚本 scripts/serial_monitor.py。列出串口时使用 --list,自动选择端口时使用 --auto。
  3. 普通抓取使用 --duration,等待特定输出使用 --wait,持续监视使用 --monitor --timestamp。
  4. 若担心错过早期启动日志,使用 --wait-reset;只有在 OpenOCD 配置已经明确时,才启用 --auto-reset。
  5. 读取脚本输出的分析结果,而不是只转述原始串口文本;重点关注错误、警告、启动标记和关键外设关键词。
  6. 将选中的串口、波特率、命令和日志结论写回 Project Profile,并在需要时交给下游 skill。

失败分流

  • 当缺少 pyserial 或 openocd 等依赖时,返回 environment-missing。
  • 当选中的串口无法打开或在监视过程中消失时,返回 connection-failure。
  • 当宿主机没有权限访问串口设备时,返回 permission-problem。
  • 当存在多个合理串口候选,或工作区中隐含互相冲突的波特率时,返回 ambiguous-context。
  • 当串口可访问,但日志明显表现为启动失败、重复复位、断言或 Fault 时,返回 target-response-abnormal。

平台说明

  • Linux、macOS、Windows 的串口命名规则复用 platform-compatibility.md。
  • 自带脚本使用 pyserial,因此串口抓取路径本身是跨平台的。
  • Windows 输出中要保留准确的 COM 端口名,以及 shell 需要的命令行引号形式。

输出约定

  • 输出选中的串口、波特率、实际执行命令,以及对日志分析结果的简洁总结。
  • 当串口和波特率被明确后,用 serial_port 和 baud_rate 更新 Project Profile。
  • 若使用了 --auto-reset,同时记录 OpenOCD 配置来源和复位命令。
  • 当日志表明程序崩溃、卡死或启动异常时,推荐 debug-gdb-openocd。

交接关系

  • 当日志显示需要断点、寄存器或回溯时,将结果交给 debug-gdb-openocd。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Serial Monitor AI skill do?

当需要识别正确串口、调用自带脚本抓取日志,并分析嵌入式固件运行状态时使用。

Why use Serial Monitor on TypingMind?

Because you install it once and use it with any model. Serial Monitor is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Serial Monitor in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/LeoKemp223/embed-ai-tool/tree/master/skills/serial-monitor. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Serial Monitor?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Serial Monitor?

As many as you like. As long as a model supports skills, you can use Serial Monitor with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Serial Monitor AI skill free?

It is published on GitHub by LeoKemp223. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇