embed-ai-tool
- Repo stars 530
- Author updated Live
- Author repo embed-ai-tool
- Domain
- Other
- Compatible agents
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- Trust score
- 88 / 100 · community maintained
- Author / version / license
- @LeoKemp223 · no license declared
- Token usage
- Lean
- Setup complexity
- Guided setup
- External API key
- Not required
- Operating systems
- macOS · Linux · Windows
- Runtime requirements
- Node.js · Python
- Permissions
-
- Read-only
- Write / modify
- Network behavior
- Local-only
- Install commands
- 26 variants
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: embed-ai-tool
description: 本技能负责两类交互:安装引导 和 指令消歧。 当用户请求安装本仓库的 skill 时,按以下流程引导。不要跳过询问直接安装。 | 分类 | 技能 | 说明 | |------|------|-…
category: other
runtime: Node.js / Python
---
# embed-ai-tool output preview
## PART A: Task fit
- Use case: 本技能负责两类交互:安装引导 和 指令消歧。 当用户请求安装本仓库的 skill 时,按以下流程引导。不要跳过询问直接安装。 | 分类 | 技能 | 说明 | |------|------|------| | 构建 | build-cmake | 配置并构建基于 CMake 的 MCU 固件工程 | runs entirely locally; runs on Node.js. Works with Claude Code, Cursor, Cline and 23 more..
- Inputs: target material, constraints, expected output, and acceptance criteria.
- Evidence boundary: follow “一、安装引导 / 流程 / 可用技能” and do not present inference as author intent.
## PART B: Execution result
- **01** The card summarizes the use case; runtime output centers on “本技能负责两类交互:安装引导 和 指令消歧。 当用户请求安装本仓库的 skill 时,按以下流程引导。不要跳过询问直接安装。 | 分类 | 技能 | 说明 | |------|------|------| | 构建 | build-cmake | 配置并构建基于 CMake 的 MCU 固件工程 | runs entirely locally; runs on Node.js. Works with Claude Code, Cursor, Cline and 23 more.”.
- **02** When the source has headings, the agent prioritizes “一、安装引导 / 流程 / 可用技能” so the result follows the author’s structure.
- **03** Typical output includes task judgment, concrete steps, required commands or file edits, validation, and follow-up options.
- **04** Risk context follows the fingerprint: read files, write/modify files; mostly runs locally; usually needs no extra API key.
## Running Rules
- read files, write/modify files; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding scope.
- Return the result, validation criteria, and next iteration options. The source mentions slash commands such as `/tmp`, `/path`, `/skill-name`, `/build-cmake`, `/serial-monitor`; use them first when your agent supports command triggers.
Name target files or source material, expected output, forbidden changes, and whether network or shell access is allowed. Permission fingerprint: read files, write/modify files.
Start with a small task and check whether the result follows “一、安装引导 / 流程 / 可用技能”. Inspect diffs, logs, previews, or tests before expanding scope.
Confirm the final output includes a concrete result, evidence, and next action. If it stays generic, tighten inputs, boundaries, and acceptance criteria.
---
name: embed-ai-tool
description: 本技能负责两类交互:安装引导 和 指令消歧。 当用户请求安装本仓库的 skill 时,按以下流程引导。不要跳过询问直接安装。 | 分类 | 技能 | 说明 | |------|------|-…
category: other
source: LeoKemp223/embed-ai-tool
---
# embed-ai-tool
## When to use
- 本技能负责两类交互:安装引导 和 指令消歧。 当用户请求安装本仓库的 skill 时,按以下流程引导。不要跳过询问直接安装。 | 分类 | 技能 | 说明 | |------|------|------| | 构建 | build-cm…
- Use it when the task has clear inputs, repeatable steps, and validation criteria.
## What to provide
- Target material, scope, expected result, and forbidden changes.
- Whether network, commands, file writes, or external services are allowed.
## Execution rules
- Organize steps around “一、安装引导 / 流程 / 可用技能” and keep inference separate from source facts.
- read files, write/modify files; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding the task.
## Output requirements
- Return the deliverable, key evidence, validation method, and next action.
- Mark missing information as unknown; do not invent commands, platforms, or dependencies. The author source anchors workflow facts; repository files anchor sources and commands; Fluxly only adds fit, limitations, and quality judgment.
skill "embed-ai-tool" {
input -> user goal + target files + boundaries + acceptance criteria
context -> 一、安装引导 / 流程 / 可用技能
rules -> SKILL.md triggers / order / output contract
runtime -> Node.js / Python | read files, write/modify files | mostly runs locally
guardrails -> usually needs no extra API key + small-sample validation + diff/log review
output -> copyable result + checklist + next iteration
} embed-ai-tool 总控
本技能负责两类交互:安装引导 和 指令消歧。
一、安装引导
当用户请求安装本仓库的 skill 时,按以下流程引导。不要跳过询问直接安装。
流程
- 向用户展示下面的 可用技能列表
- 询问用户选择安装方式:
- 全部安装 — 安装所有 24 个 skill
- 按需安装 — 用户指定要安装的 skill 名称
- 根据用户选择执行对应的安装命令
可用技能
| 分类 | 技能 | 说明 |
|---|---|---|
| 构建 | 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-debug |
FreeRTOS/RT-Thread/Zephyr 线程感知调试 |
| 通信 | serial-monitor |
串口选择与运行日志抓取 |
| 通信 | modbus-debug |
Modbus RTU/TCP 寄存器读写与从站扫描 |
| 通信 | can-debug |
CAN 总线帧监听、发送和节点扫描 |
| 通信 | visa-debug |
VISA 仪器 SCPI 通信、波形捕获和截图 |
| 分析 | memory-analysis |
.map/ELF 内存使用报告与符号排名 |
| 分析 | static-analysis |
cppcheck/clang-tidy 静态分析,MISRA-C 合规 |
| 开发 | peripheral-driver |
搜索并适配开源 BSP 外设驱动 |
| 开发 | stm32-hal-development |
STM32 HAL 库开发指导与最佳实践 |
| 编排 | 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 / *.uvproj |
Keil MDK | build-keil flash-keil |
platformio.ini |
PlatformIO | build-platformio flash-platformio debug-platformio |
sdkconfig + components/ |
ESP-IDF | build-idf flash-idf |
CMakeLists.txt + *.cmake |
CMake | build-cmake |
Makefile / makefile(无 CMakeLists.txt) |
Makefile | build-makefile |
.jlink 文件或 JLinkExe 在 PATH |
J-Link | flash-jlink debug-jlink |
.vscode/launch.json 含 openocd |
OpenOCD | flash-openocd debug-gdb-openocd |
| 以上均无 | 未知 | 必须询问用户 |
分类候选表
当自动探测无法唯一确定时,按用户指令所属分类展示候选 skill:
编译 / 构建:
| 技能 | 适用场景 |
|---|---|
build-keil |
Keil MDK 工程(.uvprojx) |
build-cmake |
CMake 工程(CMakeLists.txt) |
build-iar |
IAR EWARM 工程(.ewp) |
build-platformio |
PlatformIO 工程(platformio.ini) |
build-idf |
ESP-IDF 工程(sdkconfig) |
build-makefile |
裸 Makefile 工程 |
烧录 / 下载:
| 技能 | 适用场景 |
|---|---|
flash-keil |
Keil 工程 + 内置调试器(ST-Link / J-Link / CMSIS-DAP) |
flash-openocd |
OpenOCD 兼容探针(ST-Link / CMSIS-DAP / DAPLink) |
flash-jlink |
SEGGER J-Link 探针 |
flash-platformio |
PlatformIO 上传(串口 / JTAG / DFU) |
flash-idf |
ESP-IDF 工具链(ESP32 系列串口烧录) |
调试:
| 技能 | 适用场景 |
|---|---|
debug-gdb-openocd |
OpenOCD + GDB 调试 |
debug-jlink |
J-Link GDB Server 调试 |
debug-platformio |
PlatformIO 内置 GDB |
rtos-debug |
RTOS 线程感知调试(FreeRTOS / RT-Thread / Zephyr) |
通信 / 监控:
| 技能 | 适用场景 |
|---|---|
serial-monitor |
串口日志抓取 |
modbus-debug |
Modbus RTU/TCP 通信 |
can-debug |
CAN / CAN-FD 总线 |
visa-debug |
SCPI 仪器通信 |
示例交互
👤 烧录
🤖 当前工作区未检测到明确的烧录工具配置,请选择:
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(移除)
Decide Fit First
Design Intent
How To Use It
Boundaries And Review