verify

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

An embedded-device verification workflow that checks a development step through building, flashing firmware, debugging with J-Link, and reading serial logs. Firmware is software that runs directly on a microcontroller or other device.

In plain words
What is it for?
Use it to verify a numbered development step, confirm the firmware reaches its main function, capture startup logs, audit protected files, record results, and prepare a commit suggestion.
Why use it?
It brings the main hardware checks into one recorded process and can block verification when protected files changed without approval.

Command for Claude Code

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

Good fit Use it to verify a numbered development step, confirm the firmware reaches its main function, capture startup logs, audit protected files, record results, and prepare a commit suggestion.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/jzl-maker/ea-skill/verify
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 verify

README.md
[![agentmods](https://agentmods.dev/badge/commands/jzl-maker/ea-skill/verify/github.svg)](https://agentmods.dev/commands/jzl-maker/ea-skill/verify)
Your own site
<a href="https://agentmods.dev/commands/jzl-maker/ea-skill/verify"><img src="https://agentmods.dev/badge/commands/jzl-maker/ea-skill/verify/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 verify

Your own site · 80×15
<a href="https://agentmods.dev/commands/jzl-maker/ea-skill/verify"><img src="https://agentmods.dev/badge/commands/jzl-maker/ea-skill/verify.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,264 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.01264
Opus 5.5 $0.00000 $0.00506
Sonnet 5.5 $0.00000 $0.00253
Haiku 4.5 $0.00000 $0.00126

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

Security

Grade A, and why

verify 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/verify.md · 82 lines

How it starts

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

命令: /ea verify (步骤验证)

功能

对某个开发步骤做验证:编译 → 烧录 → J-Link 运行验证 → 串口日志 四连 + HVR 记录 + 保护区/增量审计 + commit 提议。

触发

/ea verify s<编号>    # 如 /ea verify s7

步骤参数使用 /ea new 分配的 S 编号。

执行流程

  1. 【状态目录】 get_state_dir() → <STATE_DIR>

  2. 【读 context】 读取 <STATE_DIR>/context.md(芯片/外设/构建入口/保护区基线)

  3. 【更新状态】 state.md: 当前步骤 → S<N> 🔄 验证中;project-spec.md 步骤表同步

  4. 【四连执行】 加载 workflows/verify-flow.md:

    • 编译 build-keil → 成功自动进烧录;失败分析编译日志请求修复
    • 烧录 后端可插拔:ST-Link/CMSIS-DAP → openocd;J-Link → --backend jlink-native (Windows 装了 SEGGER 驱动时 OpenOCD 用不了 J-Link,判据 LIBUSB_ERROR_NOT_SUPPORTED) → 成功自动进 J-Link 验证
    • J-Link 运行验证 jlink-debug:--regs 读 PC/SP 确认固件进入 main;--rtt 抓启动日志;必要时 --mem 读固件区内存
    • 串口 serial-monitor 抓业务启动日志;无串口时降级为 RTT 并在 HVR 标注
    • 结果记入 HVR 的「执行记录」区段

    ⚠️ 任一环因环境不可达时,先走降级路径,不要直接判"验证失败" —— 那报的是 "环境没配好",却看起来像"代码有问题"。降级事实与未被覆盖的验证项都要写进 HVR。

  5. 【保护区/增量审计】 python <SKILL>/tools/shared/project_guard.py --check

    • 与 context.md 基线比对:保护区文件有改动且无 approve 记录 → 告警并阻塞验证
    • 输出改动清单 + 保护区 diff(供用户确认;关键源文件的 diff 加 --diff)
  6. 【git 可用性前置检查】(要用 git 出 diff 时必须先跑)

    python <SKILL>/tools/shared/git_state.py --root <工程目录>
    
    • 退出 0 → git diff 可用,继续按 git 流程
    • 退出 1/2 → 不要再拿 git diff --stat 当改动清单:它会返回空输出, 看起来像"没有改动"。改用上一步的 project_guard --check --diff 基线比对

    ⚠️ 两种静默失效要认得:① 仓库还没有任何提交 → git diff 恒空; ② 仓库根不是工程目录(工程是某仓库的子目录)→ 在仓库根 git add . 会把同级工程一起提交。git_state.py 会把这两种情况直接说破。

  7. 【生成 HVR】 <STATE_DIR>/checkpoints/HVR-<步骤>-<序号>.md(模板 templates/hvr-template.md,嵌入式四连字段内嵌)

  8. 【输出验证清单】 待用户口述物理现象的检查点(LED/按键/波形等)

  9. 【提议 commit】 见下

commit 提议

━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 提议 commit
建议 commit message:
  [S<step>] feat: verify <步骤描述> with HVR-<序号>

待提交文件:
  M  <STATE_DIR>/checkpoints/HVR-<步骤>-<序号>.md
  M  <STATE_DIR>/state.md
  M  <STATE_DIR>/project-spec.md
  M  <本次实际改动的源文件,来自 diff>

确认提交?[y/n/edit]
━━━━━━━━━━━━━━━━━━━━━━━━━━

Read the full file on GitHub · 82 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 ae53b4e87d4a
  2. 1mo ago Changed · +16 lines 82850d0831a7
  3. 1mo ago Changed a70faa12deb7
  4. 1mo ago First seen · 66 lines · 0 tokens per session scan A ada7132980ed

Subscribe to this mod's changes

verify is a command published in the GitHub repository jzl-maker/EA-SKILL (9 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,264 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.