build

build is a command for Claude Code from jzl-maker/EA-SKILL. It costs 0 tokens per session (1,268 once invoked), scanned A, original, MIT.

A build command for Keil UV4 embedded projects. It finds a .uvprojx or .uvproj project, compiles the firmware, and reports the result and output files.

In plain words
What is it for?
Use it to compile microcontroller firmware, check compiler errors and warnings, and identify the generated file and its Flash and RAM usage. A successful build can continue to device programming and serial-log checks.
Why use it?
It removes the need to locate the project and start the Keil compiler manually. Build errors, warnings, firmware size, and output paths are collected in one result.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it to compile microcontroller firmware, check compiler errors and warnings, and identify the generated file and its Flash and RAM usage. A successful build can continue to device programming and serial-log checks.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/jzl-maker/ea-skill/build
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/jzl-maker/EA-SKILL

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for build

README.md
[![agentmods](https://agentmods.dev/badge/commands/jzl-maker/ea-skill/build/github.svg)](https://agentmods.dev/commands/jzl-maker/ea-skill/build)
Your own site
<a href="https://agentmods.dev/commands/jzl-maker/ea-skill/build"><img src="https://agentmods.dev/badge/commands/jzl-maker/ea-skill/build/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for build

Your own site · 80×15
<a href="https://agentmods.dev/commands/jzl-maker/ea-skill/build"><img src="https://agentmods.dev/badge/commands/jzl-maker/ea-skill/build.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,268 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01268
Opus 5.5 $0.00000 $0.00507
Sonnet 5.5 $0.00000 $0.00254
Haiku 4.5 $0.00000 $0.00127

Measured 1mo ago against content hash 61a60578746b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

build scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/build.md · 101 lines

How it starts

The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.

命令: /ea build (编译)

ESP32 分支

ESP32 工程先读取 ESP32 适配流程,按框架执行 idf.py build、pio run -e <env> 或 Arduino CLI 编译。只编译,不自动烧录;以下 Keil 流程仅用于 Keil 工程。

功能

调用 Keil UV4 编译工程固件

调用方式

python <SKILL>/tools/build-keil/scripts/keil_builder.py \
  --project <工程文件> \
  --target <目标名> \
  --log <STATE_DIR>/logs/build_S<N>.log

⚠️ 建议总是显式传 --log:不传时日志默认写到工程目录下 (<工程目录>/<target>_build.log),会污染仓库、被 git 看到。显式指向 <STATE_DIR>/logs/ 既干净,也让日志与步骤号 S<N> 对应得上。

参数来源

参数 来源
--project 扫描工作区的 .uvprojx/.uvproj 文件
--target 使用工程中第一个 Target,或由用户指定
--log 建议传 <STATE_DIR>/logs/build_S<N>.log(缺省落工程目录,见上)
UV4 路径 自动从 tool_config 读取(由 /ea setup 注册)

检测工程

AI 自动在工作区中查找 Keil 工程文件:

python -c "
from pathlib import Path
for p in Path('.').rglob('*.uvprojx'): print(p)
for p in Path('.').rglob('*.uvproj'): print(p)
"

结果处理

AI 从脚本 stdout 中提取以下字段记录到 HVR:

字段 作用 是否总出现
编译状态 ✅ 成功 / ❌ 失败 ✅ 总是
错误数/警告数 错误: N 警告: N ⚠️ 有条件
固件大小 Flash ≈ N KB RAM ≈ N KB ⚠️ 有条件
产物路径 产物: file.axf (N KB) ⚠️ 解析到产物才有

⚠️ 这两个字段缺了 ≠ 解析失败,别据此判断编译异常:

  • 错误: N 警告: N 只在至少有一个非零时打印。0 错误 0 警告(干净的成功编译) 时整行不出现 —— 「没有这一行」恰恰是最理想的情况。
  • 固件大小 只在日志里出现 Program Size: 时才打印。增量编译没有重新链接时, UV4 不输出这一行,字段就缺席。要拿固件大小请用 /ea size(解析 .map), 或加 --rebuild 强制全量重编 —— 别用「增量编译没打印大小」推断编译有问题。

后续步骤(烧录 / 验证)不要依赖这两个字段非空,只认编译状态与产物路径。

自动决策

编译成功 → 自动进入烧录流程(AI 连续执行,用户只需观察物理现象)

AI 按以下顺序连续执行:

  1. 编译 → 成功则自动进入步骤 2
  2. 烧录 → 成功则自动进入步骤 3
  3. 串口 → 抓取启动日志,用户观察物理现象并口述结果
编译(AI执行) → 烧录(AI执行) → 串口监控(AI抓日志) → 用户口述观察结果

编译失败 → 读取编译日志 → 分析错误 → 请求用户修复

⚠️ 源文件编码(防乱码)

本类 Keil 工程源文件为 GB2312(GBK)编码,非 UTF-8。 修改 .c/.h 前注意:

  • 读取按 open(path, encoding="gbk"),不要按 UTF-8 读(中文会乱码)
  • 禁止用 UTF-8 编辑器直接改源文件中文注释——整文件会被转成 UTF-8,全部中文变 \xEF\xBF\xBD,编译报 missing closing quote
  • 修改用字节级 Python 操作保持 GBK,注释尽量用 ASCII;改动前建议留备份
  • 编译日志是 GBK/UTF-8 混合,keil_builder.py 已自动探测回退解码

Read the full file on GitHub · 101 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +4 lines 61a60578746b
  2. 2mo ago Changed ac2625ce910b
  3. 2mo ago Changed · +16 lines 3faa68c9c01b
  4. 2mo ago Changed c62b7d44acb2
  5. 3mo ago First seen · 81 lines · 0 tokens per session scan A 2c0dabf585e5

Subscribe to this mod's changes

build is a command published in the GitHub repository jzl-maker/EA-SKILL (15 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,268 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

build compared with commands from other repositories

build next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
buildjzl-maker/EA-SKILLCommand151mo agoMITA0Claude Code
rtosHermeticOrmus/LibreEmbed-Claude-CodeCommand501mo agoMITA27Claude Code
cortex-mHermeticOrmus/LibreEmbed-Claude-CodeCommand501mo agoMITA25Claude Code
debug-embeddedHermeticOrmus/LibreEmbed-Claude-CodeCommand501mo agoMITA27Claude Code
embedded-linuxHermeticOrmus/LibreEmbed-Claude-CodeCommand501mo agoMITA23Claude Code
esp-teachmathisk2095/jko-claude-pluginsCommand31mo agoMITA19Claude Code
tapeout-checkMidstall/claude-for-hardwareCommand204mo agoApache-2.0A12Claude Code