readable-verilog-format

readable-verilog-format is a skill for Claude Code, Codex from Eriemon/verilog-generator. It costs 33 tokens per session (1,179 once invoked), scanned A, original, Apache-2.0.

A deterministic formatter for Verilog source files that previews layout changes and can write them back using project rules.

In plain words
What is it for?
Use it to format generated or edited Verilog, check region headings, and review or apply layout changes.
Why use it?
It removes inconsistent spacing, indentation, grouping, and instance formatting while letting you inspect the diff before changing files.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to format generated or edited Verilog, check region headings, and review or apply layout changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/eriemon/verilog-generator/readable-verilog-format
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.

Any agent
npx skills add Eriemon/verilog-generator --skill readable-verilog-format
Clone the repo
git clone --depth 1 https://github.com/Eriemon/verilog-generator

Made for: Claude Code, Codex.

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 readable-verilog-format

README.md
[![agentmods](https://agentmods.dev/badge/skills/eriemon/verilog-generator/readable-verilog-format/github.svg)](https://agentmods.dev/skills/eriemon/verilog-generator/readable-verilog-format)
Your own site
<a href="https://agentmods.dev/skills/eriemon/verilog-generator/readable-verilog-format"><img src="https://agentmods.dev/badge/skills/eriemon/verilog-generator/readable-verilog-format/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 readable-verilog-format

Your own site · 80×15
<a href="https://agentmods.dev/skills/eriemon/verilog-generator/readable-verilog-format"><img src="https://agentmods.dev/badge/skills/eriemon/verilog-generator/readable-verilog-format.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,179 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.00033 $0.01179
Opus 5.5 $0.00013 $0.00472
Sonnet 5.5 $0.00007 $0.00236
Haiku 4.5 $0.00003 $0.00118

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

Security

Grade A, and why

readable-verilog-format 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 today.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/formatting/regions.py, scripts/formatting/render.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/readable-verilog-format/SKILL.md · 57 lines

How it starts

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

脚本排版

预览与写回

  1. 确认源码编码。工具读取 UTF-8(可带 BOM);GBK/GB18030 先在临时 UTF-8 副本预览,避免损失字符。
  2. 使用工程规格时传 --spec,让区域标题遵从 comment_language。先看 diff,确认候选保持作者结构后再写回。
& $py -m verilog_generator format $rtl --spec $spec
& $py -m verilog_generator format $rtl --spec $spec --write
& $py -m verilog_generator format $rtl --spec $spec --check-regions
  1. --check-regions 返回原件行号与规则。--regions-only 可预览或写回区域注释。对 region.order 或 region.owner,只读所报行及相邻声明,核对依赖后局部移动声明组或修正标题,保留过程体。复查该文件并续跑 dispatch。归属有歧义时交审查。版式与功能分区

核对候选

保持 RTL 功能分组 的成员顺序和分组空行,相邻 always 之间留一行。缺少过程用途说明时,由生成或编辑技能对照实际行为补写。

具名实例的参数和端口分别每行一项,沿用原绑定顺序。默认使用下例的紧凑括号。项目要求列对齐时,在规格顶层写 "align_instance_columns": true,预览和完整流程共用此选择;单文件可传 format <文件> --align-instance-columns。对齐版对参数和端口分别计算左右括号列。

	uart_baud_gen #(
		.C_CLK_FREQ(C_CLK_FREQ),
		.C_BAUD_RATE(C_BAUD_RATE)
	)u_baud_gen(
		.i_clk(i_clk),
		.i_rst(i_rst),
		.o_tick16(tick16)
	);

同一实例使用 --align-instance-columns 时,映射显示为:

	uart_baud_gen #(
		.C_CLK_FREQ  (C_CLK_FREQ  ),
		.C_BAUD_RATE (C_BAUD_RATE )
	)u_baud_gen(
		.i_clk    (i_clk  ),
		.i_rst    (i_rst  ),
		.o_tick16 (tick16 )
	);
  • 版式:检查 Tab 缩进、空格、空行、括号、begin/end、always@(…)begin、end else begin、case 和 packed range。进制整数字面量的位宽、进制和数字紧连,如 32'h0000_0000、3'd2、1'b0。保留符号标记、大小写、数字分组和 X/Z。普通表达式约 100 列在支持的运算符处折行;长标识符可超宽。清行尾空白,保留末尾换行。
  • 模块与接口:逐模块英中头紧贴对应声明上方,保留版权、依赖、修订和原 timescale;新文件用已确认的时间单位。缺头只生成字段骨架,功能、译文和历史由作者补实。按接口/通道分组,具名参数与端口映射逐行可读。begin:gen_* 标签、作用域、属性、公开端口/参数、位置绑定和求值顺序保持原义。
  • 区域与注释:非空区域标题以 46 个显示列居中,两端至少两根横线,奇数左多一根;长标题保留全文。首组说明紧接标题并贴近首个实体,后续组间空一行。前导注释与过程、case item 或实例同缩进,尾注释组内对齐,长句可右移。
  • 语义边界:可将 reg [7:0] a, b; 分为两个同宽声明,保留驱动过程和声明初值。保全工具指令、include、块注释、宏续行和层次名;宏说明放在定义上方,无法独立解析的条件段可保留原样。纯排版保持名称。

预览退出 0 也可能有 diff。写回前重新解析候选并检查二次排版稳定性。写回后再预览核对剩余差异;完整设计将最终源清单交审查,单次排版交付 diff 即可。出现标题叠加、短头被覆盖、映射被压缩或块标签被拆开时保留原版;解析、等价性、稳定性或并发写入检查失败时报告原因。

Read the full file on GitHub · 57 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today Changed · +2 lines ab673fbb70e8
  2. yesterday First seen · 55 lines · 33 tokens per session scan A b11a1b7c54e2

Subscribe to this mod's changes

readable-verilog-format is a skill published in the GitHub repository Eriemon/verilog-generator (350 stars, last pushed yesterday), licensed Apache-2.0. It adds 33 tokens to every session and 1,179 once invoked, about $0.0001 per session on Opus 5.5. 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-12-03.

Related

readable-verilog-format compared with skills from other repositories

readable-verilog-format next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
readable-verilog-formatEriemon/verilog-generatorSkill350yesterdayApache-2.0A33Claude Code, Codex
readable-hls-generatorEriemon/hls-generatorSkill353mo agononeA40Codex
vivado-cdc-auditmapleleavessssssss-wq/vivado-mcpSkill1811mo agoApache-2.0A58Claude Code, Codex
vivado-constraints-authoringmapleleavessssssss-wq/vivado-mcpSkill1811mo agoApache-2.0A66Claude Code, Codex
vivado-project-bringupmapleleavessssssss-wq/vivado-mcpSkill1811mo agoApache-2.0A50Claude Code, Codex
vivado-timing-closuremapleleavessssssss-wq/vivado-mcpSkill1811mo agoApache-2.0A56Claude Code, Codex
vivado-waveform-debugmapleleavessssssss-wq/vivado-mcpSkill1811mo agoApache-2.0A62Claude Code, Codex