svd

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

A command-line tool that reads CMSIS-SVD files, which describe a chip's peripherals, registers, and bit fields. It can list register addresses and decode the current register values while the device is running.

In plain words
What is it for?
Use it to discover a chip's peripherals, inspect individual registers and bit fields, and read live values through OpenOCD or J-Link.
Why use it?
It avoids searching through long chip reference manuals to find register locations or understand which bits are set.

Command for Claude Code

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

Good fit Use it to discover a chip's peripherals, inspect individual registers and bit fields, and read live values through OpenOCD or J-Link.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/jzl-maker/ea-skill/svd"><img src="https://agentmods.dev/badge/commands/jzl-maker/ea-skill/svd.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,914 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.01914
Opus 5.5 $0.00000 $0.00766
Sonnet 5.5 $0.00000 $0.00383
Haiku 4.5 $0.00000 $0.00191

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

Security

Grade A, and why

svd 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 2mo 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/svd.md · 96 lines

How it starts

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

命令: /ea svd (寄存器地图)

功能

解析芯片 SVD 寄存器描述文件(CMSIS-SVD,Keil Pack 自带),把「门牌号(外设基地址)+ 住户名单(寄存器/位域)」查出来,还能免查手册读寄存器当前值并解码位域含义。

能力 说明 数据来源
发现 SVD 从 Keil Pack 目录自动扫描全部芯片 SVD ARM\PACK\*\*\svd\*.svd
外设清单 列出某外设下所有寄存器 + 地址偏移 SVD peripheral/registers
寄存器详情 地址、大小、读写属性、位域(bit 范围/含义/枚举) SVD register/fields/field
位域解码 读当前值后按位域展开:GPIOx_PL_CFG[1:0]=01 SVD enumeratedValues
读当前值 免断点直接读寄存器(OpenOCD TCL mdw,运行中读,不 halt) OpenOCD / J-Link

用途:调试时"这个寄存器现在是什么值 / 某位是不是置位 / 这个外设怎么配置的"——不必翻 1500 页参考手册,/ea svd 直接给出寄存器地图 + 实时值。

调用方式

py <SKILL>/tools/svd/scripts/svd_tool.py --detect
# → 发现 59 个 SVD(N32G4FR、STM32F4x1 等),用 --chip 匹配

# ① 外设下所有寄存器(门牌号)
py .../svd_tool.py --chip N32G4FR --periph GPIOA
# → GPIOA base 0x40010800 + 9 个寄存器(GPIOx_PL_CFG/PID/POD/… 各带偏移)
#   ⚠️ N32 寄存器命名与 STM32 不同(如 GPIO 是 GPIOx_PL_CFG 而非 MODER),以 SVD 输出为准

# ② 单个寄存器详情(住户名单:位域)
py .../svd_tool.py --chip N32G4FR --reg GPIOA GPIOx_PL_CFG
# → 0x40010800,位域 PMODE0[1:0]/PCFG0[3:2]… 各带 mask,可查枚举含义

# ③ 读当前值 + 位域解码(接好 ST-Link/DAP,免断点)
py .../svd_tool.py --chip N32G4FR --read RCC CR --backend openocd
# → RCC.CR = 0x0100XX00,按位域展开 HSEON/HSEONRDY…

# ④ 模糊搜索(记不全名字时)—— 子串匹配,不区分大小写
py .../svd_tool.py --chip N32G4FR --find TIM       # → TIM1..TIM8
py .../svd_tool.py --chip N32G4FR --find PID
# 搜不到时会给近邻建议,例如 --find timer → 建议 TIM8/TIM7/TIM6/…(它是子串匹配,
# 'timer' 不是 'TIM1' 的子串,所以匹配不到 —— 这不是大小写问题)

# AI 解析用 JSON
py .../svd_tool.py --chip N32G4FR --reg RCC CR --json

--chip 省略时自动尝试唯一匹配;多个候选时交互选择。--svd <路径> 可显式指定文件。

参数表

参数 必须 说明
--detect 是(动作) 列出可用 SVD 文件
--periph <外设> 是(动作) 列出外设下所有寄存器
--reg <外设> <寄存器> 是(动作) 寄存器详情(地址/位域/枚举)
--read <外设> <寄存器> 是(动作) 读当前值 + 位域解码
--find <关键词> 是(动作) 模糊搜索外设/寄存器名
--svd <file> 否 显式指定 SVD 文件
--chip <型号> 否 按芯片名匹配 SVD(如 N32G4FR)
--backend {jlink,openocd} 否 读值后端,默认 openocd(无停机)
--ocd-port 否 OpenOCD TCL 端口(默认 6666)
--json 否 结构化 JSON 输出

Read the full file on GitHub · 96 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. 2mo ago Changed f5968d890ec8
  2. 2mo ago Changed · +2 lines b1ba8ee7fa42
  3. 2mo ago Changed 3a2896916c63
  4. 3mo ago First seen · 94 lines · 0 tokens per session scan A 8afb25685d6e

Subscribe to this mod's changes

svd 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,914 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

svd compared with commands from other repositories

svd next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
svdjzl-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