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.
git clone --depth 1 https://github.com/jzl-maker/EA-SKILLWrote 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.
[](https://agentmods.dev/commands/jzl-maker/ea-skill/build)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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 按以下顺序连续执行:
- 编译 → 成功则自动进入步骤 2
- 烧录 → 成功则自动进入步骤 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 已自动探测回退解码
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.
- 1mo ago Changed · +4 lines 61a60578746b
- 2mo ago Changed ac2625ce910b
- 2mo ago Changed · +16 lines 3faa68c9c01b
- 2mo ago Changed c62b7d44acb2
- 3mo ago First seen · 81 lines · 0 tokens per session scan A 2c0dabf585e5
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.
build compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| buildjzl-maker/EA-SKILL | Command | 15 | 1mo ago | MIT | A | 0 | Claude Code |
| rtosHermeticOrmus/LibreEmbed-Claude-Code | Command | 50 | 1mo ago | MIT | A | 27 | Claude Code |
| cortex-mHermeticOrmus/LibreEmbed-Claude-Code | Command | 50 | 1mo ago | MIT | A | 25 | Claude Code |
| debug-embeddedHermeticOrmus/LibreEmbed-Claude-Code | Command | 50 | 1mo ago | MIT | A | 27 | Claude Code |
| embedded-linuxHermeticOrmus/LibreEmbed-Claude-Code | Command | 50 | 1mo ago | MIT | A | 23 | Claude Code |
| esp-teachmathisk2095/jko-claude-plugins | Command | 3 | 1mo ago | MIT | A | 19 | Claude Code |
| tapeout-checkMidstall/claude-for-hardware | Command | 20 | 4mo ago | Apache-2.0 | A | 12 | Claude Code |