This is an orchestration layer for embedded development that discovers projects in your workspace, picks build/flash/debug/observe backends, and chains them together through shared state files. Instead of reimplementing toolchain logic, it delegates to underlying skills like Keil, JLink, OpenOCD, or probe-rs based on what it finds or what you've configured. The decision tree is sensible: CLI args override config file preferences, which override auto-discovery. When it spots multiple candidates it hands you a list rather than guessing. Useful if you're juggling different embedded toolchains and want one command to handle build-flash-debug sequences without manually wiring up each step every time.
npx -y skills add zhinkgit/embeddedskills --skill workflow --agent claude-codeInstalls into .claude/skills of the current project.
本 skill 不重复实现底层逻辑,只做发现、选择、串联和聚合。
支持 Keil / GCC / EIDE 三种构建后端,以及 jlink / openocd / probe-rs 三种 flash/debug/observe 后端。
observe 阶段当前会给出 jlink:rtt、jlink:swo、openocd:semihosting、openocd:itm、probe-rs:rtt 这几类候选观测后端。
python <skill-dir>/scripts/workflow_plan.py --json
python <skill-dir>/scripts/workflow_run.py plan --json
python <skill-dir>/scripts/workflow_run.py build --json
python <skill-dir>/scripts/workflow_run.py build-flash --json
python <skill-dir>/scripts/workflow_run.py build-debug --json
python <skill-dir>/scripts/workflow_run.py observe --json
python <skill-dir>/scripts/workflow_run.py diagnose --json
workflow 不再维护独立的工程配置结构,所有工程参数统一从 .embeddedskills/config.json 读取。
.embeddedskills/config.json 中的 workflow 段仅包含首选后端配置:
{
"workflow": {
"preferred_build": "auto",
"preferred_flash": "auto",
"preferred_debug": "auto",
"preferred_observe": "auto"
}
}
workflow 通过读取 .embeddedskills/config.json 中其他 skill 的配置段来获取工程参数(如 keil.project、eide.project、eide.config、jlink.device、probe-rs.chip 等)。
按以下决策树依次判断,命中即停止:
CLI 参数(优先级最高)
--build-backend、--flash-backend 等参数workflow_run.py build-flash --build-backend=keil --flash-backend=jlink--build-backend 可选值:auto / keil / gcc / eide配置文件(次优先)
.embeddedskills/config.json 的 workflow 段中对应 preferred_* 字段不为 "auto""preferred_build": "keil" → 使用 keil 作为构建后端自动发现(兜底)
preferred_* 为 "auto" 或字段缺失"preferred_flash": "auto" → 扫描 workspace 自动推断可用 flash 后端成功执行后,实际使用的后端会自动写回 .embeddedskills/config.json 的 workflow 段。
.embeddedskills/state.json 串联observe 只生成推荐命令,不在 workflow 内直接长时间占用观测通道.embeddedskills/config.json、.embeddedskills/state.json 和子进程调用底层 Skillsickn33/antigravity-awesome-skills
rohitg00/pro-workflow
supercent-io/skills-template