From klayoutclaw
Captures the current KLayout layout as a PNG image for visual inspection. Useful for viewing, screenshotting, or previewing GDS geometry.
How this skill is triggered — by the user, by Claude, or both
Slash command
/klayoutclaw:visualThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Save the current KLayout layout to a temporary GDS file, convert it to PNG, and return both file paths for visual inspection.
Save the current KLayout layout to a temporary GDS file, convert it to PNG, and return both file paths for visual inspection.
gdstk, matplotlib, numpy (available in the instrMCPdev conda env)python scripts/capture.py [--output path.png] [--gds path.gds] [--dpi 200]
--output — PNG output path. If the user has a working directory or stack path, save there instead of /tmp.--gds — GDS output path. Same rule: prefer the user's working directory over /tmp.--dpi — Image resolution (default: 200)Returns the paths to both the GDS and PNG files, printed to stdout.
Example:
python scripts/capture.py
# Output:
# GDS saved: /tmp/klayoutclaw_capture.gds
# PNG saved: /tmp/klayoutclaw_capture.png
save_layout via MCP to write the current layout to a temp GDS filetools/gds_to_image.py from the KlayoutClaw repo to convert GDS to PNGThe GDS-to-PNG conversion uses gdstk to parse the GDS and matplotlib to render all layers with distinct colors and a legend.
Use the Read tool on the PNG path to view the image directly in the conversation. This gives immediate visual feedback on layout geometry.
npx claudepluginhub caidish/klayoutclaw --plugin klayoutclawCreates geometry in KLayout — rectangles, polygons, paths, cells, and cell instances via MCP scripts. Use for layout/chip/mask design tasks triggered by phrases like 'draw a rectangle' or 'add a polygon'.
Generates professional circuit diagrams via schemdraw Python. Outputs SVG/PDF/PNG from natural language. Use when user requests schematics, needs publication-quality diagrams, or mentions schemdraw.
Creates quick visual mockups (interactive HTML or matplotlib PNG) of diagrams before coding CeTZ, Fletcher, TikZ, or similar. Saves compile-fix cycles by letting users approve layouts first.