/hdldiagzero:hdldiagzerofrom hdldiagZero
Generates validated SVG block diagrams from HDL/RTL/FPGA/SoC designs. Parses Verilog, SystemVerilog, VHDL, Vivado BD, or LiteX architecture into JSON specs and renders color-coded diagrams with clock domains and interface types.
Ships in hdldiagZero. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Create a small JSON architecture spec from HDL, then use this skill's scripts to render and validate the SVG. Edit JSON only; never hand-edit SVG.
Pipeline: HDL -> spec.json -> render.py -> diagram.svg -> validate.py.
Use the directory containing this SKILL.md. If unavailable, search ~/.codex/skills/hdldiagzero/, ~/.claude/skills/hdldiagzero/, then any user-named skill root. Ask once if still not found.
render.py spec.json out.svg: render JSON to SVG; add --theme dark only when requested.validate_spec.py spec.json: run before rendering.validate.py out.svg: run after rendering.Read references only when needed:
references/schema.md: JSON fields, examples, layout options.references/extraction.md: top detection, hierarchy walking, interface classification, clock domains, exclusions.references/validation.md: validator errors and fix recipes.light.docs/architecture.json and docs/architecture.svg unless the user names paths.Find the top: prefer top.v, *_top.{sv,vhd}, system.bd, litex_soc.py, project files, or build scripts. Use references/extraction.md if uncertain.
Extract hierarchy to requested depth. For depth > 1, declare expanded parents in top-level groups and assign child blocks with group.
Assign clock domains from ports, constraints, PLL/MMCM outputs, transceivers, or CDC primitives. Omit unknown frequencies; do not invent ? MHz. Use domain_b only for blocks whose architectural purpose is CDC; otherwise use a cdc edge.
Classify connections from actual ports: axi-mm, axi-lite, axi-stream, tilelink, cdc, or generic. Read widths from declarations; for parametric widths, use the parameter name string.
Write JSON. Use integer rows/cols by default; quarter steps are okay for tighter placement. Prefer grid.cell_w/cell_h for diagram-wide sizing and block w/h only for local exceptions. For larger SoCs, consider compact legends, functional bands, edge external I/O blocks, and explicit lines.
Validate and iterate:
python <skill>/validate_spec.py docs/architecture.json
python <skill>/render.py docs/architecture.json docs/architecture.svg
python <skill>/validate.py docs/architecture.svg
Fix JSON issues and rerun. Cap geometry-fix loops at 3; use references/validation.md for route and overlap recipes.
LICENSE (opens in a new tab)agents/openai.yaml (opens in a new tab)assets/hdldiagzero-small.svg (opens in a new tab)references/extraction.md (opens in a new tab)references/schema.md (opens in a new tab)references/validation.md (opens in a new tab)render.py (opens in a new tab)validate.py (opens in a new tab)validate_spec.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (lcapossio/hdldiagzero) — no native marketplace selected
npx claudepluginhub p/lcapossio-hdldiagzeroOther plugins' skills for the same job