chip-png-interface-gen

chip-png-interface-gen is a skill for Claude Code from zhaixin244-wq/fnw. It costs 71 tokens per session (954 once invoked), scanned A, original, MIT.

A generator for PNG port diagrams from Verilog module declarations, where Verilog is a language for describing digital hardware. Each diagram shows the module in the center, input signals on the left, output signals on the right, and signal widths and directions.

In plain words
What is it for?
Use it to create module or submodule interface images, group related signals, show widths such as [H:L], choose an output directory, and embed the resulting PNG files in markdown documentation.
Why use it?
It turns a text-based port list into a visual interface reference that is easier to inspect and include in documentation. It also supports reusable external JSON definitions for multiple projects.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

Good fit Use it to create module or submodule interface images, group related signals, show widths such as [H:L], choose an output directory, and embed the resulting PNG files in markdown documentation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zhaixin244-wq/fnw/chip-png-interface-gen
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 zhaixin244-wq/fnw --skill chip-png-interface-gen
Clone the repo
git clone --depth 1 https://github.com/zhaixin244-wq/fnw

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 chip-png-interface-gen

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhaixin244-wq/fnw/chip-png-interface-gen/github.svg)](https://agentmods.dev/skills/zhaixin244-wq/fnw/chip-png-interface-gen)
Your own site
<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.

agentmods 80×15 button for chip-png-interface-gen

Your own site · 80×15
<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>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 954 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.00071 $0.00954
Opus 5 $0.00036 $0.00477
Sonnet 5 $0.00014 $0.00191
Haiku 4.5 $0.00007 $0.00095

Measured 12d ago against content hash 48bc6739cdc1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 1 executable file (gen_module_snapshot.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.

.claude/skills/chip-png-interface-gen/SKILL.md · 77 lines

What it actually says

Chip PNG Interface Generator

任务

为芯片模块的每组接口生成 module_snapshot 风格的端口图 PNG。左侧放置 input 信号,右侧放置 output 信号,中间为模块名方框,信号旁标注位宽和方向箭头。

依赖

  • python 3.8+
  • 依赖包:见 requirements.txtpip install -r requirements.txt

脚本位置

.claude/skills/chip-png-interface-gen/gen_module_snapshot.py

执行步骤

  1. 准备接口定义:两种方式:

    • 方式 A:修改脚本内 INTERFACES 字典(适合单项目)
    • 方式 B:创建外部 interfaces.json(适合多项目复用)
  2. 定义接口格式

    • 使用 </left></right> 分隔输入/输出(左侧=input,右侧=output)
    • 每个信号需包含 input/output 方向、可选位宽 [H:L]、信号名
    • 没有 </left>/</right> 标记时,默认全部在左侧(输入)
    • 信号之间用空行分隔会形成视觉分组
  3. 运行生成脚本

    # 使用脚本内嵌的 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>
    
  4. 验证输出:确认 wd_intf_{接口名}.png 文件存在且大小 > 0。

  5. 在文档中引用

    ![{接口名} 端口图](wd_intf_{接口名}.png)
    

使用示例

示例 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)绘制对角斜线标记并标注位宽数字
  • 信号名使用等宽字体,位宽标注使用较小字号
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. 12d ago First seen · 77 lines · 71 tokens per session scan A 48bc6739cdc1

Subscribe to this mod's changes

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.

Related

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…

google/skills · 83 tokens

jetson-diagnostic

Read-only Jetson health snapshot for identity, memory, GPU, thermal, power, storage, services, and top processes.

NVIDIA/skills · 30 tokens

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…

NVIDIA/skills · 236 tokens

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…

SnailSploit/Claude-Red · 113 tokens

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…

NVIDIA/skills · 94 tokens

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.

NVIDIA/skills · 50 tokens