# fig-gen: Hardware Figure Generator

> Generate paper-ready datapath, FSM, microarchitecture and timing figures from typed JSON, with optional RTL cross-checks and simulation-grounded waveforms.

fig-gen: Hardware Figure Generator is a free AI agent skill on Agensi by laz, in Technical Documentation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [laz](https://www.agensi.io/creators/creator-1645)
- Category: [Technical Documentation](https://www.agensi.io/skills/technical-documentation)
- Version: 0.3.1
- Last updated: 2026-12-05
- Security: scan passed (2026-12-05); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/fig-gen-hardware-figure-generator
- Tags: documentation, code-review, research, verilog, systemverilog, hardware-design

## What it does

- Generate datapath schematics with muxes, registers, pipelines and memories
- Build FSM diagrams with states, guards, resets and transitions
- Create timing waveforms from JSON or Verilator simulation stimuli
- Map SoC fabrics, interfaces, address maps, interrupts, DMA and clock/reset domains
- Check coverage, connectivity, labels and latency against available RTL or simulation evidence
- Deliver editable SVG, outlined PDF and a receipt in IEEE/ACM-style column sizes

## Who it's for

- **Hardware researchers writing papers:** Editable hardware figures laid out for paper columns, with checks and evidence summarized in a receipt. Try: "Create a two-column datapath figure for this Verilog decoder and show which parts are cross-checked."
- **RTL and FPGA engineers:** Readable views of datapaths, controller FSMs, and timing for design reviews. Try: "Show the fetch pipeline and validate the registers and connections against my RTL."
- **SoC architects and systems designers:** System overviews with bus fabrics, address maps, interfaces, interrupts and domains. Try: "Make a microarchitecture view of this accelerator with its AXI fabrics and address map."

## About this skill

fig-gen is a Claude Code skill for publication-quality hardware figures from typed JSON. It covers datapath schematics, FSMs, timing waveforms, and SoC/microarchitecture views.

### How it works
Choose a figure type and scope, then define or refine a JSON spec using the bundled schemas and examples. When Verilog/SystemVerilog is available, the CLI can draft structure from a Verilator netlist. Run validation, render, and deliver; fix diagnostics before finalizing.

### Checks and evidence
Structural checks cover items such as coverage, connectivity, labels, and latency. Datapath regions can be cross-checked against RTL, with gate-level equivalence checks for mixed-abstraction regions. Timing waveforms can be grounded in Verilator simulations for the supplied stimulus. The receipt records checks and marks unsupported or unverified content rather than assuming it is correct.

### Output
Editable, Figma-safe SVG plus outlined-text PDF and a JSON receipt. The two-column paper variant is the required deliverable; one-column is best effort. The figures use print-size rules for IEEE/ACM-style columns.

### Requirements and limits
Requires Node.js 20+ and Git; run npm ci to install dependencies. Verilator 5.x is optional for RTL extraction and simulation. Without source or simulation evidence, the skill can work from a hand-written JSON spec, but those claims cannot be source-verified.

## Requires

- Node.js
- Git
- Optional: Verilator 5.x

Network is needed only for Git/npm setup. Verilator 5.x is optional; without it, use JSON specs but skip RTL extraction and simulation checks. No API keys needed.

## Known limitations

Verilator 5.x is optional but needed for RTL extraction and simulation-grounded checks. With a JSON-only spec, structural validation still runs, but code/simulation claims cannot be cross-checked. The one-column layout is best effort; the two-column variant is the required deliverable.

## Technical details

Claude Code skill in SKILL.md format. CLI: node bin/fig-gen.mjs. Requires Node.js 20+ and Git; npm ci installs dependencies. Verilator 5.x is optional for RTL extraction, FSM extraction, and simulation-grounded timing. Bundled resvg handles headless previews by default; no browser is required. Inputs: datapath, fsm, timing, and microarch JSON. Outputs: editable SVG, outlined PDF, and a JSON receipt. MIT license.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the fig-gen: Hardware Figure Generator skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What kinds of figures does fig-gen support?

It supports datapath schematics, FSM/state diagrams, timing waveforms, and SoC/microarchitecture views such as bus fabrics and address maps.

### Do I need to provide RTL or other files?

No. You can write a typed JSON spec using the bundled schemas and examples. Provide Verilog/SystemVerilog for RTL-derived drafts and source cross-checks; Verilator 5.x is optional but needed for extraction and simulation checks.

### What files does it produce?

It delivers editable Figma-safe SVG, an outlined-text PDF, and a JSON receipt. The two-column paper variant is required; the one-column variant is best effort.

### What does fig-gen verify?

It adds structured schemas and checks for coverage, connectivity, latency and labels. RTL/equivalence checks run only where supported source evidence is available; unverified parts are not assumed correct.

### What do I need to install?

Node.js 20+ and Git are required; run npm ci to install dependencies. Verilator 5.x is optional for RTL extraction and simulation. Bundled resvg provides headless previews by default; no browser is needed.

### Can it work without Verilator or RTL?

Yes, it can work from a typed JSON spec. Without RTL or simulation evidence, code and timing claims cannot be cross-checked; the receipt should make those limits explicit.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
