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 skills add Eriemon/verilog-generator --skill readable-verilog-compactgit clone --depth 1 https://github.com/Eriemon/verilog-generatorWrote 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/skills/eriemon/verilog-generator/readable-verilog-compact)<a href="https://agentmods.dev/skills/eriemon/verilog-generator/readable-verilog-compact"><img src="https://agentmods.dev/badge/skills/eriemon/verilog-generator/readable-verilog-compact/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/skills/eriemon/verilog-generator/readable-verilog-compact"><img src="https://agentmods.dev/badge/skills/eriemon/verilog-generator/readable-verilog-compact.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.00040 | $0.01238 |
| Opus 5.5 | $0.00016 | $0.00495 |
| Sonnet 5.5 | $0.00008 | $0.00248 |
| Haiku 4.5 | $0.00004 | $0.00124 |
Grade A, and why
readable-verilog-compact 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.
What it actually says
Verilog 过程语句紧凑写法
开始撰写或修改 Verilog 时与主责技能同轮读取。逐个检查过程体,将每个分支、case 项或循环体的直接子语句按语法计数。只有一条赋值、task 调用或系统任务调用的普通无名块可以省去包装,条件与受控语句写在同一行。任一分支有两条以上语句,该分支保留 begin/end,其他分支可以独立收紧。保留 always 的外层块、具名块、局部声明、属性、宏边界和依附于块的注释。
普通条件链。 同样适用于组合逻辑、时序逻辑、task/function 内的过程和测试台。else begin if (…) … end 只有在该块仅含这个 if、去块后所有 else 仍与原来的 if 配对时,才展开为 else if。保留判定顺序、四态下的未命中路径、调用次数及副作用。两个独立的 if 仍可同拍执行。
// 测试台:前两臂各调用一次 task,最后一臂还要登记应答数。
if(i_abort)cancel_transfer;
else if(i_retry)retry_transfer;
else begin
record_response(i_data);
response_count = response_count + 1;
end
case 与循环。 简单 case 项可以写为 ST_READ:read_word;。逐项保留标签顺序、匹配类型和 default 行为。过程循环如 for(i = 0; i < 8; i = i + 1)check_lane(i);、repeat(2)sample_bus; 和 while(has_data)read_word; 也按循环体的语句数处理。保留循环边界、迭代条件、时序控制和采样次数。generate 循环的命名层次仍按原结构处理。
时序赋值。 两个分支各写一次片选寄存器,可以直接收紧。
always@(posedge i_clk)begin
if(!i_rst_n)reg_cs_n <= 1'b1;
else reg_cs_n <= (state_next == ST_IDLE) || (state_next == ST_RESP);
end
嵌套使能。 外层命中后,即使内层条件为假,也已经跳过外层的其他分支。下例保留空闲分支的块,让最后的 else if 仍与外层条件配对。
always@(posedge i_clk)begin
if(!i_rst_n)reg_sclk <= 1'b0;
else if(state_current == ST_IDLE)begin
if(i_cmd_valid)reg_sclk <= i_cfg_cpol;
end else if(edge_pulse)reg_sclk <= ~reg_sclk;
end
复位释放、空闲、命令无效且 edge_pulse=1 时,原块保持时钟。若直接把空闲与命令有效合成首个条件,尾部分支会翻转时钟。只有证明每条落选路径(含 X/Z)行为相同,才可展平。对于两层均无 else 的 if(A)begin if(B)q <= d; end,若 A、B 均为无副作用的判断,可写为 if((A) && (B))q <= d;。
状态机。 保留次态默认值、每个状态的说明和显式保持。状态项里有条件选择时保留该项的块,单赋值的 default 可直接跟在冒号后。
always@(*)begin
state_next = state_current;
case(state_current)
// 空闲时等待命令。
ST_IDLE:begin
if(i_cmd_valid)state_next = ST_SETUP;
else state_next = ST_IDLE;
end
// 片选建立期结束后开始传输。
ST_SETUP:begin
if(half_last)state_next = ST_ACTIVE;
else state_next = ST_SETUP;
end
// 末位的尾沿结束传输。
ST_ACTIVE:begin
if(edge_trail && bit_last)state_next = ST_HOLD;
else state_next = ST_ACTIVE;
end
// 片选保持期结束后发出应答。
ST_HOLD:begin
if(half_last)state_next = ST_RESP;
else state_next = ST_HOLD;
end
// 应答被接收后回到空闲。
ST_RESP:begin
if(i_rsp_ready)state_next = ST_IDLE;
else state_next = ST_RESP;
end
// 非法编码恢复为空闲。
default:state_next = ST_IDLE;
endcase
end
交付前重新解析并核对每个 else 的归属。对改变条件结构的候选,比较更新与保持路径,覆盖外层真而内层假、竞争输入和未知值。仅需缩短版式时保留逻辑分支;合并不同分支体属于分支化简。
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 · 84 lines · 40 tokens per session scan A 5dc1603e7bdf
readable-verilog-compact is a skill published in the GitHub repository Eriemon/verilog-generator (350 stars, last pushed yesterday), licensed Apache-2.0. It adds 40 tokens to every session and 1,238 once invoked, about $0.0002 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.
readable-verilog-compact compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| readable-verilog-compactEriemon/verilog-generator | Skill | 350 | yesterday | Apache-2.0 | A | 40 | Claude Code, Codex |
| readable-hls-generatorEriemon/hls-generator | Skill | 35 | 3mo ago | none | A | 40 | Codex |
| vivado-cdc-auditmapleleavessssssss-wq/vivado-mcp | Skill | 181 | 1mo ago | Apache-2.0 | A | 58 | Claude Code, Codex |
| vivado-constraints-authoringmapleleavessssssss-wq/vivado-mcp | Skill | 181 | 1mo ago | Apache-2.0 | A | 66 | Claude Code, Codex |
| vivado-project-bringupmapleleavessssssss-wq/vivado-mcp | Skill | 181 | 1mo ago | Apache-2.0 | A | 50 | Claude Code, Codex |
| vivado-timing-closuremapleleavessssssss-wq/vivado-mcp | Skill | 181 | 1mo ago | Apache-2.0 | A | 56 | Claude Code, Codex |
| vivado-waveform-debugmapleleavessssssss-wq/vivado-mcp | Skill | 181 | 1mo ago | Apache-2.0 | A | 62 | Claude Code, Codex |