KwantaeKim

Cirfig Gen — AI skill for Claude Code

AI community

AI-driven analog circuit figure generator.

How to install Cirfig Gen

This entry records only its repository, not the path inside it, so there is no exact command to give. Open KwantaeKim/cirfig_gen and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Cirfig Gen does

AI-driven analog circuit figure generator. Ask Claude Code or Codex for a circuit and get one SVG at final size.

Alternatives in AI

README

cirfig_gen

Clean analog circuit schematics for slides, drawn by a coding agent.

You describe a circuit in plain words. Claude Code or Codex lays it out from a fixed palette of symbols, checks it against the drawing rules, and gives you one SVG file to drop into PowerPoint, Keynote or any slide tool.

![PMOS-input current-mirror OTA](references/OTA/OTA2P.png)

Why one SVG per circuit

If a schematic is built from separate pictures and lines in PowerPoint, the PDF export shifts every object by its own small amount, up to about 0.4 pt. Wires and symbol leads then no longer line up. A single SVG per circuit keeps every line exactly aligned, on screen and in the PDF.

How to use

  1. Clone the repository and open the folder in Claude Code or Codex:

    git clone https://github.com/KwantaeKim/cirfig_gen.git
    cd cirfig_gen
    claude        # or: codex
  2. Ask for a circuit, for example:

    Draw a PMOS-input current-mirror OTA.

    Draw an NMOS current mirror with a reference current source and an output terminal.

    The agent picks up its instructions from `AGENTS.md` by itself. You don't need to open any other file. It saves `output/.svg` with a PNG preview, and tells you the exact size.

  3. Insert the SVG into your slide (drag it in, or **Insert → Pictures → Picture from File**). Check that its size matches the reported width × height, then only move it. **Never resize it.** Resizing scales every line width.

  4. To change something, ask the agent ("move the M5 label", "add a cascode", "make it narrower"). It updates the figure and tells you whether the size changed:

    • Same size: right-click the picture → Change Picture. It keeps its place.
    • Size changed: delete the old picture and insert the new one. (Change Picture would stretch it to the old size and change the line widths.