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

Workflow

  • 405 installs
  • 534 repo stars
  • Updated June 29, 2026
  • zhinkgit/embeddedskills

Orchestrate embedded firmware build, flash, debug, and observe across Keil, GCC, EIDE, J-Link, OpenOCD, and probe-rs from one workspace-aware workflow.

About

Workflow is a thin orchestration skill for embedded workspaces in the embeddedskills ecosystem. It does not replace Keil, GCC, EIDE, J-Link, OpenOCD, or probe-rs; it discovers which projects exist, picks backends for build, flash, debug, and observe, threads state through `.embeddedskills/state.json`, and aggregates script output. Preferred backends (auto or explicit) live under the workflow section of `.embeddedskills/config.json` alongside keil, gcc, eide, jlink, openocd, and probe-rs blocks. Operators run Python scripts such as workflow_plan and workflow_run with JSON flags for plan-only runs, full build-flash-debug chains, observe mode, and diagnose. It suits indie hardware and firmware builders who juggle multiple IDEs and probes and want one agent-guided path instead of re-documenting commands every session.

  • Thin orchestration: discovers Keil / GCC / EIDE projects and selects build, flash, debug, observe backends
  • CLI entrypoints: workflow_plan, workflow_run for plan, build, build-flash, build-debug, observe, diagnose
  • Observe candidates: jlink:rtt, jlink:swo, openocd:semihosting, openocd:itm, probe-rs:rtt
  • Unified config from `.embeddedskills/config.json` plus `.embeddedskills/state.json`—no duplicate workflow config schema
  • CLI overrides beat config: e.g. `--build-backend=keil` wins over preferred_build auto

Workflow by the numbers

  • 405 all-time installs (skills.sh)
  • +23 installs in the week ending Jul 28, 2026 (Skillselion tracking)
  • Ranked #297 of 1,435 DevOps & CI/CD 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/zhinkgit/embeddedskills --skill workflow

Add your badge

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

Listed on Skillselion
Installs405
repo stars534
Security audit3 / 3 scanners passed
Last updatedJune 29, 2026
Repositoryzhinkgit/embeddedskills

What it does

Orchestrate embedded firmware build, flash, debug, and observe across Keil, GCC, EIDE, J-Link, OpenOCD, and probe-rs from one workspace-aware workflow.

Files

SKILL.mdMarkdownGitHub ↗

Workflow 编排层

本 skill 不重复实现底层逻辑,只做发现、选择、串联和聚合。

支持 Keil / GCC / EIDE 三种构建后端,以及 jlink / openocd / probe-rs 三种 flash/debug/observe 后端。

observe 阶段当前会给出 jlink:rttjlink:swoopenocd:semihostingopenocd:itmprobe-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.projecteide.projecteide.configjlink.deviceprobe-rs.chip 等)。

参数解析顺序

按以下决策树依次判断,命中即停止:

1. CLI 参数(优先级最高)

  • 条件:用户在命令行传入 --build-backend--flash-backend 等参数
  • 示例:workflow_run.py build-flash --build-backend=keil --flash-backend=jlink
  • --build-backend 可选值:auto / keil / gcc / eide
  • 行为:直接使用该参数指定的后端,跳过后续步骤

2. 配置文件(次优先)

  • 条件:CLI 未指定,且 .embeddedskills/config.jsonworkflow 段中对应 preferred_* 字段不为 "auto"
  • 示例:"preferred_build": "keil" → 使用 keil 作为构建后端
  • 行为:读取配置值并使用,跳过自动发现

3. 自动发现(兜底)

  • 条件:CLI 未指定,且配置中 preferred_*"auto" 或字段缺失
  • 示例:"preferred_flash": "auto" → 扫描 workspace 自动推断可用 flash 后端
  • 行为:枚举候选后端列表;若唯一则直接使用,若多个则返回列表请用户确认

成功执行后,实际使用的后端会自动写回 .embeddedskills/config.jsonworkflow 段。

规则

  • 发现多个工程或多个候选后端时,只返回候选列表,不自动猜测
  • 构建、烧录、调试、观测之间优先通过 .embeddedskills/state.json 串联
  • observe 只生成推荐命令,不在 workflow 内直接长时间占用观测通道
  • 失败时优先返回哪个阶段失败,以及底层脚本的结构化错误
  • workflow 与其他 Skill 的协同只通过 .embeddedskills/config.json.embeddedskills/state.json 和子进程调用底层 Skill

Related skills

FAQ

Is Workflow safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

DevOps & CI/CDdevopsintegrations

This week in AI coding

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

unsubscribe anytime.