Keil
Tansuo2021/ADtoKeil
Keil MDK/uVision build skill for embedded projects. An agent skill from Tansuo2021/ADtoKeil.
Keil MDK 工程构建工具,用于扫描 .uvprojx/.uvproj/.uvmpw 工程、枚举 Target、执行 build/rebuild/clean 并解析构建日志,返回可供 jlink/openocd 复用的产物路径。
$ npx skills add zhinkgit/embeddedskills --skill keil -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install zhinkgit/embeddedskills keil --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/zhinkgit/embeddedskills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/keil .claude/skills/keil && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "keil" agent skill from https://github.com/zhinkgit/embeddedskills/tree/main/keil into .claude/skills/keil/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "keil", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/zhinkgit/embeddedskills/tree/main/keilType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add zhinkgit/embeddedskills --skill keil -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install zhinkgit/embeddedskills keil --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/zhinkgit/embeddedskills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/keil .agents/skills/keil && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "keil" agent skill from https://github.com/zhinkgit/embeddedskills/tree/main/keil into .agents/skills/keil/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "keil", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add zhinkgit/embeddedskills --skill keil -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install zhinkgit/embeddedskills keil --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/zhinkgit/embeddedskills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/keil .cursor/skills/keil && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "keil" agent skill from https://github.com/zhinkgit/embeddedskills/tree/main/keil into .cursor/skills/keil/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "keil", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/zhinkgit/embeddedskills.git --path keil--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add zhinkgit/embeddedskills --skill keil -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install zhinkgit/embeddedskills keil --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/zhinkgit/embeddedskills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/keil .gemini/skills/keil && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "keil" agent skill from https://github.com/zhinkgit/embeddedskills/tree/main/keil into .gemini/skills/keil/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "keil", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install zhinkgit/embeddedskills keilInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add zhinkgit/embeddedskills --skill keil -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/zhinkgit/embeddedskills.git skills-src && mkdir -p .github/skills && cp -r skills-src/keil .github/skills/keil && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "keil" agent skill from https://github.com/zhinkgit/embeddedskills/tree/main/keil into .github/skills/keil/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "keil", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add zhinkgit/embeddedskills --skill keil -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install zhinkgit/embeddedskills keil --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/zhinkgit/embeddedskills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/keil .opencode/skills/keil && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "keil" agent skill from https://github.com/zhinkgit/embeddedskills/tree/main/keil into .opencode/skills/keil/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "keil", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
keilKeil MDK 工程构建工具,用于扫描 .uvprojx/.uvproj/.uvmpw 工程、枚举 Target、执行 build/rebuild/clean 并解析构建日志,返回可供 jlink/openocd 复用的产物路径。
Keil is an agent skill from zhinkgit/embeddedskills. Keil MDK 工程构建工具,用于扫描 .uvprojx/.uvproj/.uvmpw 工程、枚举 Target、执行 build/rebuild/clean 并解析构建日志,返回可供 jlink/openocd 复用的产物路径。 flash 子命令仅作为兼容入口保留。当用户提到 Keil、MDK、uVision、UV4、 Target 枚举、编译、重建、清理、烧录、下载固件、flash 时自动触发,也兼容 /keil 显式调用。 即使用户只是说"编译一下"或"烧录到板子上",只要上下文涉及嵌入式 Keil 工程就应触发此 skill。
Its SKILL.md is about 880 tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including scripts and reference files (for example `README.md`, `config.example.json` and `references/compiler-notes.md`).
The repository describes itself as: An open-source collection of embedded development and debugging skills for Claude Code, Copilot, TRAE, and other AI coding assistants that support the Skill protocol. Once… The licence is MIT.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 536c1f9. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 3 files in scripts/ (Python), which the agent can run.
Shell commands in SKILL.md call:
pythonFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Keil loads about 883 tokens when it runs, and up to ~1.3k if it reads all its reference files. Until then it costs about 69 tokens; SKILL.md has 176 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from zhinkgit/embeddedskills at commit 536c1f9, republished under its MIT licence (© zhinkgit). 176 words, ~883 tokens.
.claude/skills/keil/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.本 skill 提供 Keil MDK 工程的发现、Target 枚举、构建、重建、清理能力,并返回可供 jlink/openocd 继续使用的固件产物路径。flash 仅作为兼容入口保留。
skill 目录下的 config.json 包含环境级配置,首次使用前确认 uv4_exe 路径正确:
{
"uv4_exe": "C:\\Keil_v5\\UV4\\UV4.exe",
"operation_mode": 1
}uv4_exe:UV4.exe 完整路径(必填)operation_mode:1 直接执行 / 2 输出风险摘要但不阻塞 / 3 执行前确认工程级共享配置统一保存在工作区的 .embeddedskills/config.json 中:
{
"keil": {
"project": "",
"target": "",
"log_dir": ".embeddedskills/build"
}
}project:默认工程路径(相对 workspace),构建成功后会自动更新target:默认 Target 名称,构建成功后会自动更新log_dir:构建日志输出目录,默认 .embeddedskills/build参数解析顺序(从高到低):
.embeddedskills/state.json(上次构建记录)| 子命令 | 用途 | 风险 |
|---|---|---|
scan | 搜索当前目录下的 .uvprojx/.uvproj/.uvmpw 工程 | 低 |
targets | 枚举工程中的 Target | 低 |
build | 增量编译 | 中 |
rebuild | 全量重建 | 中 |
clean | 清理工程 | 高 |
flash | 通过 Keil 烧录固件(兼容入口,优先建议使用 jlink/openocd) | 高 |
config.json,确认 uv4_exe 路径有效scanscan 搜索工程build/rebuild/clean 按 operation_mode 决定是否需要确认build/rebuild 成功后,尽量从工程配置中解析 flash_file / debug_file 等产物路径flash 仅在最近一次构建成功时允许执行skill 目录下有两个 Python 脚本,使用标准库实现,无额外依赖。
# 扫描工程
python <skill-dir>/scripts/keil_project.py scan --root <搜索目录> --json
# 枚举 Target
python <skill-dir>/scripts/keil_project.py targets --project <工程路径> --jsonpython <skill-dir>/scripts/keil_build.py <build|rebuild|clean|flash> \
--uv4 <UV4路径> \
--project <工程路径> \
--target <TargetName> \
--log-dir <日志目录> \
--jsonrebuild 额外支持 --clean-first 使用 -cr 而非 -r。
所有脚本以 JSON 格式返回,基础字段为 status(ok/error)、action、summary、details,并可能附带 context、artifacts、metrics、state、next_actions、timing。
成功示例:
{
"status": "ok",
"action": "build",
"summary": "build 成功,errors=0 warnings=2",
"details": {
"project": "project.uvprojx",
"target": "Debug",
"log_file": ".build/project-Debug-build.log",
"flash_file": "Objects/project.hex",
"debug_file": "Objects/project.axf"
},
"metrics": { "errors": 0, "warnings": 2, "flash_bytes": 32768, "ram_bytes": 8192 }
}错误示例:
{
"status": "error",
"action": "flash",
"error": { "code": "build_not_clean", "message": "最近一次构建存在错误,禁止继续烧录" }
}.uvproj(旧版 MDK4 工程)与 .uvprojx 共用同一套 XML 结构(Target/TargetOption/TargetCommonOption),产物解析、Target 枚举、扫描均已支持两种后缀flash_file / debug_file 与 jlink/openocd 串联flash 前必须确认最近一次构建成功(errors == 0)clean 不在自动流程中隐式执行遇到编译器相关问题时可查阅 references/compiler-notes.md。
© zhinkgit, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 6 other files (scripts, references) in keil of zhinkgit/embeddedskills.
Open the folder on GitHubat commit 536c1f9
Keil next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Keil this skillzhinkgit/embeddedskills | 733 | — | ~883 | Automated safety check: Pass | MIT | |
| KeilTansuo2021/ADtoKeil | 188 | — | ~1.2k | Automated safety check: Pass | GPL-3.0 | |
| Build KeilLeoKemp223/embed-ai-tool | 984 | — | ~619 | Automated safety check: Pass | None | |
| Flash KeilLeoKemp223/embed-ai-tool | 984 | — | ~459 | Automated safety check: Pass | None | |
| Embedded Firmware From HardwareTansuo2021/ADtoKeil | 188 | — | ~1.5k | Automated safety check: Pass | GPL-3.0 | |
| Mspm0 Ccsmc3545dada/mspm0-skill | 374 | — | ~4.5k | Automated safety check: Pass | MIT |
Tansuo2021/ADtoKeil
Keil MDK/uVision build skill for embedded projects. An agent skill from Tansuo2021/ADtoKeil.
LeoKemp223/embed-ai-tool
当需要通过 Keil MDK 命令行编译嵌入式工程,调用自带脚本解析工程文件、执行构建并定位固件产物时使用. An agent skill from LeoKemp223/embed-ai-tool.
LeoKemp223/embed-ai-tool
当需要通过 Keil MDK 内置调试器烧录固件到目标板时使用,利用工程中已配置的调试器和 Flash 算法执行下载. An agent skill from LeoKemp223/embed-ai-tool.
Tansuo2021/ADtoKeil
Build and review maintainable embedded MCU firmware from schematic, PCB, netlist, pin-map, BOM, Keil/C51/MDK projects, vendor demo code, or hardware debug evidence.
mc3545dada/mspm0-skill
Tool-neutral CLI agent rules for TI MSPM0 development with Code Composer Studio, Keil/uVision, CMake/GCC/OpenOCD, SysConfig, and DriverLib.
zhinkgit/embeddedskills
EIDE (Embedded IDE) 工程构建工具,用于扫描 .eide/eide.yml 工程、枚举构建 配置 (ConfigName)、执行 build/rebuild/clean 并解析构建日志,返回可供 jlink/openocd 复用的产物路径。当用户提到 EIDE、Embedded IDE、eide.yml、 unifybuilder、VS Code EIDE…
zhinkgit/embeddedskills
嵌入式 CAN / CAN-FD 调试工具,用于扫描接口、监控报文、发送测试帧、记录日志、数据库文件解码和总线统计. An agent skill from zhinkgit/embeddedskills.
zhinkgit/embeddedskills
J-Link 下载与在线调试工具,用于探测设备、烧录固件、读写内存、查看寄存器、复位目标、读取 RTT/SWO 日志, 以及在线调试(暂停/恢复/单步/断点运行/调用栈/变量查看)。
zhinkgit/embeddedskills
OpenOCD 下载与调试工具,用于探针探测、固件烧录、Flash 擦除、GDB Server 启动、目标复位控制、 Telnet 在线调试(halt/resume/step/寄存器/内存/断点)、GDB 源码级调试,以及 Semihosting/ITM 输出捕获和底层查询。
zhinkgit/embeddedskills
嵌入式串口调试工具,用于扫描串口、实时监控、发送数据、记录日志和 Hex 查看. An agent skill from zhinkgit/embeddedskills.
zhinkgit/embeddedskills
GCC 嵌入式工程构建工具(CMake + arm-none-eabi-gcc),用于扫描 CMake 型嵌入式工程、 列出预设、配置、编译、重建、清理和分析 ELF 大小。当用户提到 GCC、arm-none-eabi、 CMake 嵌入式编译、Ninja 构建、ELF 大小分析、arm-gcc、交叉编译、cmake --build、 cmake --preset 时自动触发,也兼容…
zhinkgit/embeddedskills
probe-rs 下载与调试工具,用于探针发现、固件烧录、复位、内存读写、GDB Server 调试和 RTT 日志读取。
Keil MDK 工程构建工具,用于扫描 .uvprojx/.uvproj/.uvmpw 工程、枚举 Target、执行 build/rebuild/clean 并解析构建日志,返回可供 jlink/openocd 复用的产物路径。. Keil is an agent skill from zhinkgit/embeddedskills.
Run `npx skills add zhinkgit/embeddedskills --skill keil -a claude-code`. Or copy the skill folder (keil in zhinkgit/embeddedskills) into .claude/skills/keil in your project. Claude Code loads it when a task matches its description.
Run `npx skills add zhinkgit/embeddedskills --skill keil -a codex`. Or copy the skill folder (keil in zhinkgit/embeddedskills) into .agents/skills/keil in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add zhinkgit/embeddedskills --skill keil -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/keil, .gemini/skills/keil, .github/skills/keil and .opencode/skills/keil in your project.
Going by SKILL.md and its folder, Keil needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Keil is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 883 tokens (SKILL.md is roughly 3.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 369 tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Keil: Keil (Tansuo2021/ADtoKeil, 188 stars), Build Keil (LeoKemp223/embed-ai-tool, 984 stars), Flash Keil (LeoKemp223/embed-ai-tool, 984 stars) and Embedded Firmware From Hardware (Tansuo2021/ADtoKeil, 188 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
zhinkgit (a GitHub user) maintains it in zhinkgit/embeddedskills, which has 733 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on September 3, 2026.
Source: zhinkgit/embeddedskills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.