Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
leokemp223 avatar

Embed Ai Tool

  • 122 installs
  • 798 repo stars
  • Updated July 12, 2026
  • leokemp223/embed-ai-tool

embed-ai-tool is an agent skill that routes embedded build, flash, and debug requests to the correct toolchain skill among 24 options—usable whenever a solo builder issues a vague MCU command before committin

About

embed-ai-tool is the umbrella skill for an embedded firmware toolkit aimed at solo builders bringing up MCUs with Keil, IAR, CMake, Makefile, PlatformIO, or ESP-IDF. Instead of guessing which flash or debug skill applies, the agent presents categorized options—build, burn, debug, serial, fieldbus, lab instruments—and waits for an explicit pick. Installation is equally deliberate: users choose full install of all 24 skills or a named subset, which prevents bloating agent context with unused probe drivers. Once routed, specialized skills handle OpenOCD GDB, J-Link RTT, FreeRTOS-aware threads, Modbus/CAN/VISA benches, and memory map analysis. The skill is Chinese-forward in user prompts but the architecture is universal for agentic embedded workflows. Treat it as the front door before any single-tool skill runs.

  • Meta controller for embed-ai-tool repo: install引导 and instruction disambiguation
  • 24 skills across build, flash, debug, comms, and analysis (CMake, Keil, IAR, IDF, OpenOCD, J-Link, GDB, Modbus, CAN, VIS
  • Install flow requires user choice: all 24 skills vs on-demand names—no silent full install
  • Disambiguation lists category candidates when user says 烧录/编译/调试 without naming a toolchain
  • Marked internal metadata skill as repo entry point

Embed Ai Tool by the numbers

  • 122 all-time installs (skills.sh)
  • +18 installs in the week ending Aug 2, 2026 (Skillselion tracking)
  • Ranked #709 of 2,715 Automation & Workflows skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/leokemp223/embed-ai-tool --skill embed-ai-tool

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs122
repo stars798
Security audit3 / 3 scanners passed
Last updatedJuly 12, 2026
Repositoryleokemp223/embed-ai-tool

What it does

Route vague embedded commands (flash, compile, debug) to the right skill among 24 MCU toolchain skills and guide install-all vs pick-list setup.

Who is it for?

Best when you use agent-assisted firmware workflows across multiple vendors and debug probes.

Skip if: Pure mobile or web SaaS builds with no on-target toolchain or physical board connected.

When should I use this skill?

User requests installing embed-ai-tool repo skills, or issues vague embedded 烧录/编译/调试 instructions without a specific toolchain.

What you get

You get a categorized candidate list and a guided install path, then hand off to the specific build-, flash-, or debug-* skill that matches your hardware.

  • User-selected install set or full 24-skill install commands
  • Disambiguation table leading to one concrete child skill invocation

By the numbers

  • 24 skills in the embed-ai-tool catalog
  • 5 workflow categories: 构建, 烧录, 调试, 通信, 分析

Files

SKILL.mdMarkdownGitHub ↗

embed-ai-tool 总控

本技能负责两类交互:安装引导指令消歧

---

一、安装引导

当用户请求安装本仓库的 skill 时,按以下流程引导。不要跳过询问直接安装,也不要替用户决定安装内容——先分析工程,再让用户选。

流程

1. 分析工程 — 探测当前工作区的工程特征(构建系统、工具链、探针、协议线索等),详见"工程分析项" 2. 呈现分析结果 — 把探测到的事实客观列给用户,未识别出的也要明确说明 3. 提供选项 — 基于分析结果给出可选安装方案(推荐集 / 全部 / 按分类 / 自定义),让用户选择,详见"提供的安装选项" 4. 执行安装 — 根据用户选择执行对应命令;用户可在推荐集基础上增删,不必重走流程

工程分析项

按工作区文件特征推断工程画像,规则优先级从高到低:

类别文件特征推断结论关联 skill
构建系统*.uvprojx / *.uvprojKeil MDKbuild-keil flash-keil
构建系统*.ewp / *.ewwIAR EWARMbuild-iar
构建系统platformio.iniPlatformIObuild-platformio flash-platformio debug-platformio
构建系统sdkconfig + components/ESP-IDFbuild-idf flash-idf
构建系统CMakeLists.txt + *.cmakeCMakebuild-cmake
构建系统Makefile(无 CMakeLists.txt)Makefilebuild-makefile
工具链PATH 含 arm-none-eabi-gccARM Cortex-M 目标
工具链PATH 含 xtensa-esp32-elf-gccESP32 (Xtensa) 目标
工具链PATH 含 riscv64-unknown-elf-gccRISC-V 目标
调试器.vscode/launch.jsonopenocdOpenOCDflash-openocd debug-gdb-openocd
调试器*.jlink 文件或 JLinkExe 在 PATHJ-Linkflash-jlink debug-jlink
调试器openocd.cfg / openocd.cfg.in 存在OpenOCD 配置flash-openocd debug-gdb-openocd
协议源码含 #include "modbus.h"mb.h使用 Modbusmodbus-debug
协议源码含 CAN HAL 驱动引用使用 CAN 总线can-debug
协议main.c 引用 stdio / UART 重定向使用串口日志serial-monitor
协议源码含 viOpen / viWrite使用 SCPI 仪器visa-debug
RTOS源码含 FreeRTOS.h / rtthread.h / zephyr.h使用 RTOSrtos-debug
内存工程能产出 .map / .elf可做内存分析memory-analysis

探测失败时:如果工作区特征不明显(纯裸 C 文件、混合工程、空目录),直接告知用户"未识别出明确工程类型",建议选"全部安装"或"自定义"——不要硬推推荐集。

推荐集映射

按识别到的工程画像给出基础推荐集(用户可在其上增删):

工程类型基础推荐集
Keil MDKbuild-keil flash-keil serial-monitor debug-gdb-openocd workflow
IAR EWARMbuild-iar flash-openocd serial-monitor workflow
PlatformIObuild-platformio flash-platformio debug-platformio serial-monitor workflow
ESP-IDFbuild-idf flash-idf serial-monitor debug-gdb-openocd workflow
CMakebuild-cmake flash-openocd debug-gdb-openocd serial-monitor workflow
Makefilebuild-makefile flash-openocd serial-monitor workflow

基础集是起点,根据"工程分析项"探测到的协议线索继续追加:

  • 检测到 RTOS → 追加 rtos-debug
  • 检测到 Modbus → 追加 modbus-debug
  • 检测到 CAN → 追加 can-debug
  • 检测到 VISA / SCPI → 追加 visa-debug
  • 工程能产 .map / .elf → 追加 memory-analysis

提供的安装选项

分析完成后,向用户呈现 4 个并列选项:

选项说明
A. 推荐集基于工程分析得出的最小集(通常 5-8 个),可在此基础上增删
B. 全部安装安装全部 22 个 skill,适合全局工具人 / 教学场景
C. 按分类逐一勾选按 6 个分类顺序逐一询问,每类下用户可全选、跳过或勾选部分(详见"分类逐一勾选流程")
D. 自定义用户直接输入 skill 名或编号,自由组合

用户选 A 后仍可微调(如"再加个 modbus-debug"),不要重走一遍流程。

分类逐一勾选流程

用户选 C 后,按 6 个分类顺序逐一询问。每个分类独立交互,用户可全选、跳过或勾选部分。基于工程分析预先勾选推荐项,降低决策成本。

分类顺序与内容:

序号分类包含 skill(数量)默认勾选规则(基于工程分析)
1构建build-cmake / build-keil / build-iar / build-platformio / build-idf / build-makefile(6)勾选识别到的构建系统对应项,其余不勾
2烧录flash-keil / flash-openocd / flash-platformio / flash-idf / flash-jlink(5)勾选识别到的探针 / 工具链对应项
3调试debug-gdb-openocd / debug-jlink / debug-platformio / rtos-debug(4)勾选识别到的调试器对应项;检测到 RTOS 时勾 rtos-debug
4通信serial-monitor / modbus-debug / can-debug / visa-debug(4)默认勾 serial-monitor;按协议线索勾 modbus / can / visa
5分析memory-analysis / static-analysis(2)工程能产 .map / .elf 时勾 memory-analysis
6编排workflow(1)默认勾选

单次分类询问格式:

[2/6] 烧录(5 个 skill):

   ✅ 1. flash-openocd    — OpenOCD 烧录(识别到 .vscode/launch.json)
   ☐  2. flash-keil       — Keil MDK 烧录
   ☐  3. flash-jlink      — SEGGER J-Link 烧录
   ☐  4. flash-platformio — PlatformIO 上传
   ☐  5. flash-idf        — ESP-IDF 串口烧录

   操作:回车确认默认 / 输入编号增删(如 +3 -1)/ "全选" / "跳过"

👤 +3

🤖 [3/6] 调试(4 个 skill):
   ...

完成所有分类后:汇总最终选定的 skill 列表,让用户确认或微调,然后执行安装。

如果用户对某个分类无任何勾选且工程分析也没识别到,应主动确认"跳过 X 分类?"避免遗漏关键能力(比如构建和烧录通常必须)。

安装示例

👤 帮我安装 embed-ai-tool 的 skill

🤖 正在分析当前工程...

   检测到工程特征:
   • 构建系统:CMake(CMakeLists.txt)
   • 目标架构:ARM Cortex-M(PATH 含 arm-none-eabi-gcc)
   • 调试器配置:OpenOCD + ST-Link(.vscode/launch.json)
   • 协议线索:UART stdio 重定向(main.c)
   • RTOS:未检测到

   可选安装方案:

   A. 推荐集(6 个)— build-cmake / flash-openocd / debug-gdb-openocd / serial-monitor / memory-analysis / workflow
   B. 全部安装(22 个)
   C. 按分类逐一勾选(6 个分类顺序询问)
   D. 自定义(输入 skill 名或编号)

   请选择(A / B / C / D):

👤 A,再加个 rtos-debug

🤖 安装:build-cmake / flash-openocd / debug-gdb-openocd / serial-monitor / memory-analysis / workflow / rtos-debug
   执行中...

可用技能列表

完整技能清单,用于"按分类选(C)"和"自定义(D)"时参考。推荐集(A)的子集由"工程分析项"和"推荐集映射"自动推导。
分类技能说明
构建build-cmake配置并构建基于 CMake 的 MCU 固件工程
构建build-keil配置并构建基于 Keil MDK 的固件工程
构建build-iar配置并构建基于 IAR EWARM 的固件工程
构建build-platformio配置并构建基于 PlatformIO 的固件工程
构建build-idf配置目标芯片并构建 ESP-IDF 固件工程
构建build-makefile配置并构建基于 Makefile 的固件工程
烧录flash-keil通过 Keil MDK 内置调试器烧录固件
烧录flash-openocd通过 OpenOCD 烧录 ELF/HEX/BIN 产物
烧录flash-platformio通过 PlatformIO 上传机制烧录固件
烧录flash-idf通过 ESP-IDF 工具链烧录固件并支持 JTAG 调试
烧录flash-jlink通过 SEGGER J-Link 烧录固件,支持 RTT 日志捕获
调试debug-gdb-openocd通过 OpenOCD 附着 GDB 调试
调试debug-jlink通过 J-Link GDB Server 在线调试和崩溃分析
调试debug-platformio通过 PlatformIO 内置 GDB 调试
调试rtos-debugFreeRTOS/RT-Thread/Zephyr 线程感知调试
通信serial-monitor串口选择与运行日志抓取
通信modbus-debugModbus RTU/TCP 寄存器读写与从站扫描
通信can-debugCAN 总线帧监听、发送和节点扫描
通信visa-debugVISA 仪器 SCPI 通信、波形捕获和截图
分析memory-analysis.map/ELF 内存使用报告与符号排名
分析static-analysiscppcheck/clang-tidy 静态分析,MISRA-C 合规
编排workflow串联编译+烧录+监控/调试的流水线

安装命令

优先使用 npx skills,若用户无 Node.js 环境改用 Python 脚本。

# npx 全部安装
npx skills add LeoKemp223/embed-ai-tool -g -y

# npx 按需安装
npx skills add LeoKemp223/embed-ai-tool --skill build-cmake --skill flash-openocd -g -y

# Python 全部安装
python3 /tmp/embed-ai-tool/scripts/install.py /path/to/project

# Python 按需安装
python3 /tmp/embed-ai-tool/scripts/install.py /path/to/project --skills build-cmake flash-openocd

---

二、指令消歧

当用户发出模糊指令(如"烧录"、"编译"、"调试")时,先尝试自动探测工程类型;若无法明确判断,必须列出候选 skill 让用户选择,不要自行假设。

消歧流程

用户输入模糊指令
    │
    ▼
自动探测工程类型
    │
    ├─ 唯一匹配 → 直接调用对应 skill
    │
    └─ 匹配多个或无法判断 → 列出候选 skill 供用户选择

自动探测规则

按工作区文件特征判断工程类型,规则优先级从高到低:

文件特征工程类型对应 skill
*.uvprojx / *.uvprojKeil MDKbuild-keil flash-keil
platformio.iniPlatformIObuild-platformio flash-platformio debug-platformio
sdkconfig + components/ESP-IDFbuild-idf flash-idf
CMakeLists.txt + *.cmakeCMakebuild-cmake
Makefile / makefile(无 CMakeLists.txt)Makefilebuild-makefile
.jlink 文件或 JLinkExe 在 PATHJ-Linkflash-jlink debug-jlink
.vscode/launch.jsonopenocdOpenOCDflash-openocd debug-gdb-openocd
以上均无未知必须询问用户

分类候选表

当自动探测无法唯一确定时,按用户指令所属分类展示候选 skill:

编译 / 构建:

技能适用场景
build-keilKeil MDK 工程(.uvprojx)
build-cmakeCMake 工程(CMakeLists.txt)
build-iarIAR EWARM 工程(.ewp)
build-platformioPlatformIO 工程(platformio.ini)
build-idfESP-IDF 工程(sdkconfig)
build-makefile裸 Makefile 工程

烧录 / 下载:

技能适用场景
flash-keilKeil 工程 + 内置调试器(ST-Link / J-Link / CMSIS-DAP)
flash-openocdOpenOCD 兼容探针(ST-Link / CMSIS-DAP / DAPLink)
flash-jlinkSEGGER J-Link 探针
flash-platformioPlatformIO 上传(串口 / JTAG / DFU)
flash-idfESP-IDF 工具链(ESP32 系列串口烧录)

调试:

技能适用场景
debug-gdb-openocdOpenOCD + GDB 调试
debug-jlinkJ-Link GDB Server 调试
debug-platformioPlatformIO 内置 GDB
rtos-debugRTOS 线程感知调试(FreeRTOS / RT-Thread / Zephyr)

通信 / 监控:

技能适用场景
serial-monitor串口日志抓取
modbus-debugModbus RTU/TCP 通信
can-debugCAN / CAN-FD 总线
visa-debugSCPI 仪器通信

示例交互

👤 烧录
🤖 当前工作区未检测到明确的烧录工具配置,请选择:
   1. flash-keil — Keil MDK 内置调试器烧录
   2. flash-openocd — OpenOCD 烧录(ST-Link / CMSIS-DAP)
   3. flash-jlink — SEGGER J-Link 烧录
   4. flash-platformio — PlatformIO 上传
   5. flash-idf — ESP-IDF 串口烧录
   请输入编号或 skill 名称:

👤 2
🤖 使用 flash-openocd,正在探测探针和固件产物...

---

安装后提示

安装完成后,告知用户:

  • 已安装的 skill 列表
  • 使用 /skill-name 调用具体 skill,例如 /build-cmake/serial-monitor
  • 用自然语言描述需求即可触发对应 skill,例如"编译烧录"、"看串口"
  • 管理命令:npx skills ls -g(查看)、npx skills update -g(更新)、npx skills remove -g(移除)

Related skills

How it compares

Meta router and installer for the embed-ai-tool skill bundle, not a single-flash script like flash-openocd alone.

FAQ

Who is embed-ai-tool for?

embedded developers using Claude Code-style agents who need disambiguation across Keil, PlatformIO, ESP-IDF, OpenOCD, and J-Link workflows.

When should I use embed-ai-tool?

At first install of the repo; whenever a command is ambiguous (compile/flash/debug); during Build integrations daily; in Ship testing when attaching GDB; in Operate when capturing serial or RTT logs from production firmware.

Is embed-ai-tool safe to install?

Review the Security Audits panel on this page; downstream skills may invoke shell, hardware debuggers, and serial devices—install only the skills you need.

Automation & Workflowsintegrationsdevops

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.