klayoutclaw:geometry

Draw and place rectangles, polygons, paths, cells, and cell instances in KLayout via MCP scripts.

32|6|Updated Mar 8, 2026
One-click install
npx skills add https://github.com/caidish/KlayoutClaw --skill klayoutclaw-geometry
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: klayoutclaw:geometry
Source: https://github.com/caidish/KlayoutClaw/tree/main/skills/geometry
Command: npx skills add https://github.com/caidish/KlayoutClaw --skill klayoutclaw-geometry

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Create and place geometric shapes in KLayout via MCP to automate layout design tasks, reducing manual drawing time and errors.

Core Features & Use Cases

  • Supports rectangles, polygons, paths, cells, and cell instances created through MCP scripts.
  • Enables batch geometry generation for chip layouts and nanodevice designs from an AI agent.
  • Use when you need to programmatically construct structure in KLayout without manual GUI clicks.

Quick Start

Run a sample script such as scripts/add_rect.py to draw a rectangle in the active KLayout layout.

Frequently Asked Questions about klayoutclaw:geometry

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate drawing geometry in KLayout without manual GUI clicks?

You can automate KLayout geometry by running Python scripts through an MCP server connection to programmatically draw rectangles, polygons, paths, and cell instances in active layouts.

What types of shapes can I create in KLayout through scripted batch generation?

Scripted batch generation in KLayout supports creating rectangles, polygons, paths, cells, and cell instances to programmatically construct structures for chip and nanodevice layouts.

Do I need the KlayoutClaw plugin to draw KLayout geometry via MCP?

Yes, drawing KLayout geometry via MCP requires KLayout to run with the KlayoutClaw plugin installed, as it enables the MCP connection and exposes the script execution commands.

What's the best way to start scripting layout tasks for nanodevice design in KLayout?

Start scripting layout tasks by running a sample script like add_rect.py to draw a rectangle in the active KLayout layout, then extend to polygons, paths, and cell instancing for nanodevices.

Can I use MCP to place cell instances in active KLayout layouts?

Yes, MCP scripts support creating and placing cell instances in active KLayout layouts, allowing AI agents to batch generate structures for chip layouts and nanodevice designs.

Why does my MCP script fail to execute geometry commands in KLayout?

MCP script execution fails if KLayout is not running with the KlayoutClaw plugin active, which is required to expose the scripts directory and enable the execute_script command operations.