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.
npx agentmods add commands/jzl-maker/ea-skill/scopegit clone --depth 1 https://github.com/jzl-maker/EA-SKILLWhat 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 | $0.00000 | $0.03616 |
| Opus 5 | $0.00000 | $0.01808 |
| Sonnet 5 | $0.00000 | $0.00723 |
| Haiku 4.5 | $0.00000 | $0.00362 |
Grade A, and why
scope 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 yesterday.
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 — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.
命令: /ea scope (示波器)
功能
两条路径:
A. Rigol 示波器实时 SCPI —— 抓取 + 测量,排查模拟波形/电压/频率。 已真机验证:DS1074Z(DS1000Z 系列)。DS2000A 系列(如 DS2302A)命令集通用,但电压换算公式需真机复核(DS2000A 坐标系统不同,见注意事项)。
| 能力 | 参数 | 底层 | 依赖 |
|---|---|---|---|
| 波形抓取 | --capture |
:WAV:DATA? + TMC 解析 |
pyvisa + pyvisa-py |
| 电压/时间轴还原 | --capture |
(val-128)/25*vdiv+voffs + :WAV:XINC? |
numpy |
| 直接测量 | --measure vpp,freq,... |
:MEAS:ITEM? |
pyvisa |
| CSV / PNG | --save / --plot |
numpy + matplotlib | + matplotlib |
| 设备识别 | --detect |
*IDN? |
pyvisa |
| 无硬件自测 | --parse-tmc <file> |
合成 TMC 块走解析链路 | numpy 即可 |
SCPI 基本通用,主流品牌(Siglent/鼎阳/泰克等)命令集大同小异,换设备只需调 --resource。
B. 正点原子 DS100 手持示波器(无 SCPI,U 盘导出 CSV) —— 手动导出波形后解析分析。
| 能力 | 参数 | 底层 | 依赖 |
|---|---|---|---|
| 导出 CSV 波形解析 | --parse-ds100 <file.csv> |
跳过 header/自动探测列 + numpy 测量 | numpy 即可 |
| 采样率自动提取 | --parse-ds100 |
正则解析 header sampling rate : N |
numpy |
| 频率/周期/占空比 | --parse-ds100 |
过中值上升沿检测 + 阈值占比 | numpy |
| 波形出图 | --plot |
matplotlib | + matplotlib |
DS100 限制:不支持 SCPI、无官方 PC 软件,USB 仅作 U 盘(卷标 ATK-DSO)。只能在示波器上按 M → Save → CSV 导出原始采样,再用本命令解析。
真机格式(已实测 999.CSV):单行 header CHA(V) probe:X5,sampling rate : 10000,后接单列电压值(每行一个,100000 点)。脚本自动从 header 提取采样率(10kHz)与探头倍率(x5),无需手动指定。
调用方式
py ~/.claude/skills/ea-skill/tools/instrument/scripts/scope.py --detect
# ✅ 确认 pyvisa 栈 / VISA 资源 / 设备
py .../scope.py --list # 列出所有 VISA 资源
# 抓波形:CHAN1,存 CSV + 出图
py .../scope.py --capture --channel CHAN1 --save .ea/captures/scope_S9.csv --plot scope.png
# 直接测量(不抓波形):Vpp / 频率 / 周期
py .../scope.py --measure vpp,freq,period
# 指定资源(USB / LAN)
py .../scope.py --capture --resource USB0::0x1AB1::0x04CE::DS1ZA000000::INSTR
# 无硬件自测:解析合成 TMC 块(验证解析/还原/出图全链路)
py .../scope.py --parse-tmc raw.bin --vdiv 1.0 --xinc 1e-6 --save out.csv --plot out.png
# 纯逻辑核对(打印将执行的 SCPI 序列,不连设备)
py .../scope.py --dry-run --capture
# ── 正点原子 DS100(U 盘导出 CSV)──
# 解析用户导出的 CSV,输出频率/幅值/周期/占空比 + 出图
py .../scope.py --parse-ds100 E:/DS100_DATA/latest.csv --plot ds100.png --save norm.csv
# 单列电压 CSV:用采样率推断时间轴(DS100 常导出单列原始电压)
py .../scope.py --parse-ds100 wave.csv --sample-rate 1000000 --json
# CSV 列不是默认 time,voltage 时显式指定(0 基)
py .../scope.py --parse-ds100 wave.csv --time-col 0 --volt-col 2 --plot wave.png
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.
- yesterday First seen · 165 lines · 0 tokens per session scan A eef7fb21de21
scope is a command published in the GitHub repository jzl-maker/EA-SKILL (4 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,616 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.
Other commands, from other repositories
icpg-bootstrap
Infer ReasonNodes from existing git commit history. One-time setup for existing codebases.
version
Display current guide and Claude Code versions.
go-review
Go code review for idiomatic patterns.
review-branch
Review the current branch's diff against base by dispatching atomic-reviewer. No orchestration loop, no spec required — pre-flight before /commit pr or /commit merge.
execute
Executa o plano aprovado em .first-plan/07-state/plans/. Segue o plano à risca, para se algo invalidar premissa, gera relatório ao final.
dispatcher
Pick the next-best repo to work on across the portfolio — rank free repos, recommend one, claim its lease atomically, and route to the entry command.