caidish/klayoutclaw/visual

Claude Code and agent skill by caidish/klayoutclaw

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Capture the current KLayout layout as a PNG image for visual inspection. Use this skill whenever the user wants to see, view, screenshot, preview, or visually inspect the current layout. Also trigger when the user asks "what does it look like", "show me the layout", "take a screenshot", "capture the design", or needs a visual check of their GDS geometry.

Install

npx vskill@latest install caidish/klayoutclaw/visual

SKILL.md

KLayout Visual Capture

Save the current KLayout layout to a temporary GDS file, convert it to PNG, and return both file paths for visual inspection.

Prerequisites

  • KLayout running with KlayoutClaw plugin (v0.3+)
  • A layout with geometry must be open
  • Python packages: gdstk, matplotlib, numpy (available in the instrMCPdev conda env)

Script

capture.py 鈥?Capture layout as PNG
bash
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:

bash
python scripts/capture.py
# Output:
# GDS saved: /tmp/klayoutclaw_capture.gds
# PNG saved: /tmp/klayoutclaw_capture.png

How It Works

  1. Calls save_layout via MCP to write the current layout to a temp GDS file
  2. Runs tools/gds_to_image.py from the KlayoutClaw repo to convert GDS to PNG
  3. Prints both file paths

The GDS-to-PNG conversion uses gdstk to parse the GDS and matplotlib to render all layers with distinct colors and a legend.

After Capture

Use the Read tool on the PNG path to view the image directly in the conversation. This gives immediate visual feedback on layout geometry.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/caidish/klayoutclaw/visual/badge)](https://verified-skill.com/skills/caidish/klayoutclaw/visual)

Something wrong with this skill or its page? Tell us.