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 zhaixin244-wq/fnw --skill chip-png-interface-gengit clone --depth 1 https://github.com/zhaixin244-wq/fnwWrote 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/zhaixin244-wq/fnw/chip-png-interface-gen)<a href="https://agentmods.dev/skills/zhaixin244-wq/fnw/chip-png-interface-gen"><img src="https://agentmods.dev/badge/skills/zhaixin244-wq/fnw/chip-png-interface-gen/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/zhaixin244-wq/fnw/chip-png-interface-gen"><img src="https://agentmods.dev/badge/skills/zhaixin244-wq/fnw/chip-png-interface-gen.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.00071 | $0.00954 |
| Opus 5 | $0.00036 | $0.00477 |
| Sonnet 5 | $0.00014 | $0.00191 |
| Haiku 4.5 | $0.00007 | $0.00095 |
Grade A, and why
chip-png-interface-gen 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 12d 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.
What it actually says
Chip PNG Interface Generator
任务
为芯片模块的每组接口生成 module_snapshot 风格的端口图 PNG。左侧放置 input 信号,右侧放置 output 信号,中间为模块名方框,信号旁标注位宽和方向箭头。
依赖
- python 3.8+
- 依赖包:见
requirements.txt(pip install -r requirements.txt)
脚本位置
.claude/skills/chip-png-interface-gen/gen_module_snapshot.py
执行步骤
-
准备接口定义:两种方式:
- 方式 A:修改脚本内
INTERFACES字典(适合单项目) - 方式 B:创建外部
interfaces.json(适合多项目复用)
- 方式 A:修改脚本内
-
定义接口格式:
- 使用
</left>和</right>分隔输入/输出(左侧=input,右侧=output) - 每个信号需包含
input/output方向、可选位宽[H:L]、信号名 - 没有
</left>/</right>标记时,默认全部在左侧(输入) - 信号之间用空行分隔会形成视觉分组
- 使用
-
运行生成脚本:
# 使用脚本内嵌的 INTERFACES(输出到当前目录) python .claude/skills/chip-png-interface-gen/gen_module_snapshot.py # 使用外部 JSON 配置,指定输出目录 python .claude/skills/chip-png-interface-gen/gen_module_snapshot.py <json_file> <output_dir> -
验证输出:确认
wd_intf_{接口名}.png文件存在且大小 > 0。 -
在文档中引用:

使用示例
示例 1:生成模块端口图
用户:帮我生成 data_adpt 模块的接口端口图
预期行为:读取模块端口声明,生成 wd_intf_data_adpt.png(左侧 input、右侧 output、信号名+位宽+方向箭头)
示例 2:生成子模块端口图
用户:画一个 buf_mgr 子模块的端口图,包含 clk/rst_n/data_in/data_out/valid/ready
预期行为:解析信号列表,生成 wd_intf_buf_mgr.png,input 信号在左、output 信号在右
异常处理
| 场景 | 触发条件 | 处理动作 |
|---|---|---|
| 脚本依赖缺失 | pip install 失败 |
提示用户安装依赖:pip install pillow,降级为文本端口表 |
| JSON 格式错误 | 解析失败 | 标注错误行号,给出修正建议 |
| 脚本执行失败 | Python 报错 | 检查 Verilog 语法,降级为 Markdown 端口表 |
| 输出目录不存在 | 路径无效 | 自动创建目录(mkdir -p) |
检查点
- 检查前:展示接口定义摘要(信号数、输入/输出分组),用户确认后执行
- 检查后:验证 PNG 文件存在且大小 > 0,否则报错
- 输入信号箭头朝右(→,指向模块),在线段起端
- 输出信号箭头朝右(→,指向外部),在线段末端
- 总线信号(位宽>1)绘制对角斜线标记并标注位宽数字
- 信号名使用等宽字体,位宽标注使用较小字号
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.
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.
- 12d ago First seen · 77 lines · 71 tokens per session scan A 48bc6739cdc1
chip-png-interface-gen is a skill published in the GitHub repository zhaixin244-wq/fnw (29 stars, last pushed 3mo ago), licensed MIT. It adds 71 tokens to every session and 954 once invoked, about $0.0004 per session on Opus 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-08-30.
Other skills, from other repositories
gke-compute-classes
Configures, optimizes, and troubleshoots GKE ComputeClasses. Use when configuring Spot VMs with on-demand fallback, targeting specific accelerators (GPUs/TPUs) or machine families, restricting ComputeClass access, or debugging pending pods related to node pool auto-creation. Do not use for cluster-level Node Auto…
jetson-diagnostic
Read-only Jetson health snapshot for identity, memory, GPU, thermal, power, storage, services, and top processes.
doca-socket-relay
Use this skill when the operator is driving the DOCA Socket Relay to bridge a socket-oriented host application onto a BlueField DPU peer without rewriting it — picking the deployment shape (in-process, sidecar, or BlueField service container), configuring the host-side socket and the DPU-side forwarding endpoint…
offensive-z-wave
Z-Wave attack methodology — sniffing with Z-Force / EZ-Wave / RTL-SDR + ZniffMobile, S0 (legacy) network-key derivation flaw and key reuse, S2 (modern) ECDH commissioning analysis, replay/injection on unauthenticated nodes, default-key brute-force on test deployments, and home-automation hub pivots. Use when targeting…
hsb-flash
Flash the FPGA on an HSB board connected to an NVIDIA devkit. Supports HSB Lattice boards (FPGA versions 2407, 2412, 2507, 2510) and Leopard Imaging VB1940 "all-in-one" cameras (FPGA versions 2507, 2510). Uses release-specific YAML manifests and board-type-specific program commands. Lattice and VB1940 commands must…
jetson-validate-image
Use after jetson-flash-image to run static BSP checks, on-target smoke/regression tests on a flashed DUT, or both. Not for build or flash steps. Triggers: validate bsp, on-target validation.