chip-microarch-chart-workflow

chip-microarch-chart-workflow is a skill for Claude Code from zhaixin244-wq/fnw. It costs 81 tokens per session (1,458 once invoked), scanned A, original, MIT.

A workflow for creating and checking microarchitecture diagrams, which show how parts of a chip are organised and communicate. It covers D2 diagrams, WaveDrom timing diagrams, and interface diagrams.

In plain words
What is it for?
Use it to generate architecture, datapath, state-machine, timing, and interface charts for chip documentation.
Why use it?
It standardises the steps for producing the required diagrams and checking that their image files were created.

Skill for Claude Code

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node .claude/skills/chip-png-wavedrom-gen/gen_wavedrom.js {output_dir}/.

Good fit Use it to generate architecture, datapath, state-machine, timing, and interface charts for chip documentation.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/zhaixin244-wq/fnw
agentmods
npx agentmods add skills/zhaixin244-wq/fnw/chip-microarch-chart-workflow

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-microarch-chart-workflow

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhaixin244-wq/fnw/chip-microarch-chart-workflow/github.svg)](https://agentmods.dev/skills/zhaixin244-wq/fnw/chip-microarch-chart-workflow)
Your own site
<a href="https://agentmods.dev/skills/zhaixin244-wq/fnw/chip-microarch-chart-workflow"><img src="https://agentmods.dev/badge/skills/zhaixin244-wq/fnw/chip-microarch-chart-workflow/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-microarch-chart-workflow

Your own site · 80×15
<a href="https://agentmods.dev/skills/zhaixin244-wq/fnw/chip-microarch-chart-workflow"><img src="https://agentmods.dev/badge/skills/zhaixin244-wq/fnw/chip-microarch-chart-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,458 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.00081 $0.01458
Opus 5 $0.00041 $0.00729
Sonnet 5 $0.00016 $0.00292
Haiku 4.5 $0.00008 $0.00146

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

Security

Grade A, and why

chip-microarch-chart-workflow 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 11d 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.

.claude/skills/chip-microarch-chart-workflow/SKILL.md · 147 lines

How it starts

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

微架构图表生成工作流

本 skill 封装微架构文档中图表生成的标准化流程,确保每个子模块的图表完整生成。

输入参数

{
  "module": "data_adpt",
  "submodule": "input_if_mod",
  "output_dir": "work/data_adpt_work/ds/doc/ua/tmp",
  "charts": ["arch", "datapath", "fsm", "timing", "intf"]
}

工作流程

1. 架构图(arch)

1. Read 模块功能描述
2. Write wd_{sub}_arch.d2 到 {output_dir}/
3. 调用 Skill: chip-png-d2-gen
   - d2_file: {output_dir}/wd_{sub}_arch.d2
   - output_dir: {output_dir}/
4. Bash: 验证 {output_dir}/wd_{sub}_arch.png 存在

2. 数据通路图(datapath)

1. Read 数据通路描述
2. Write wd_{sub}_datapath.d2 到 {output_dir}/
3. 调用 Skill: chip-png-d2-gen
   - d2_file: {output_dir}/wd_{sub}_datapath.d2
   - output_dir: {output_dir}/
4. Bash: 验证 {output_dir}/wd_{sub}_datapath.png 存在

3. 状态机图(fsm)

1. Read 状态定义和转移条件
2. Write wd_{sub}_fsm.d2 到 {output_dir}/
3. 调用 Skill: chip-png-d2-gen
   - d2_file: {output_dir}/wd_{sub}_fsm.d2
   - output_dir: {output_dir}/
4. Bash: 验证 {output_dir}/wd_{sub}_fsm.png 存在

4. 时序图(timing)

1. Read 接口协议描述
2. Write wd_{desc}.json 到 {output_dir}/
3. 调用 Skill: chip-png-wavedrom-gen
   - json_file: {output_dir}/wd_{desc}.json
   - output_dir: {output_dir}/
4. Bash: 验证 {output_dir}/wd_{desc}.png 存在

5. 端口图(intf)

1. Read 端口列表
2. Write wd_intf_{sub}.json 到 {output_dir}/
3. 调用 Skill: chip-png-interface-gen
   - json_file: {output_dir}/wd_intf_{sub}.json
   - output_dir: {output_dir}/
4. Bash: 验证 {output_dir}/wd_intf_{sub}.png 存在

批量编译

node .claude/skills/chip-png-wavedrom-gen/gen_wavedrom.js {output_dir}/

验证清单

# 验证所有 .d2 有对应 .png
for f in {output_dir}/wd_*.d2; do
  [ -f "${f%.d2}.png" ] || echo "MISSING: ${f%.d2}.png"
done

# 验证所有 .json 有对应 .png
for f in {output_dir}/wd_*.json; do
  [ -f "${f%.json}.png" ] || echo "MISSING: ${f%.json}.png"
done

使用示例

示例 1

  • 用户:「为 data_adpt 的 input_if_mod 生成全套微架构图表」
  • 行为:依次生成架构图(.d2→.png)、数据通路图、状态机图、时序图(.json→.png)、端口图,验证所有 PNG 存在

示例 2

  • 用户:「只帮我编译 output_ctrl 的状态机图」
  • 行为:读取 wd_output_ctrl_fsm.d2,调用 d2 --layout dagre 编译为 PNG,验证输出文件存在

Read the full file on GitHub · 147 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. 11d ago First seen · 147 lines · 81 tokens per session scan A da259104c7cb

Subscribe to this mod's changes

chip-microarch-chart-workflow is a skill published in the GitHub repository zhaixin244-wq/fnw (29 stars, last pushed 3mo ago), licensed MIT. It adds 81 tokens to every session and 1,458 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