/klayoutclaw:imagefrom klayoutclaw
Loads microscope, optical, or SEM images as background overlays in KLayout for design alignment. Supports scaling via pixel-size or scale bar, positioning, listing, and removing overlays.
Ships in klayoutclaw. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Load reference images (JPG, PNG, BMP) into KLayout as background overlays for aligning device geometry to real microscope photos.
create_layout first if needed)python scripts/add_image.py <filepath> [--pixel-size 0.1] [--scale-bar <um> <pixels>] [--x 0] [--y 0] [--center]
filepath — Path to image file (JPG, PNG, BMP)--pixel-size — Microns per pixel (default: 1.0)--scale-bar — Derive pixel size from a scale bar: <length_um> <length_pixels>. Takes priority over --pixel-size.--x, --y — Position offset in microns (default: 0, 0)--center — Center the image at the given position (default: image corner at position)Example — set pixel size directly:
python scripts/add_image.py ~/photos/graphene.jpg --pixel-size 0.1
Example — derive pixel size from a 20 um scale bar that spans 153 pixels:
python scripts/add_image.py ~/photos/graphene.jpg --scale-bar 20 153 --center
# Output: Scale bar: 20.0 um / 153.0 px = 0.1307 um/px
Example — load and center at a specific position:
python scripts/add_image.py ~/photos/flake.png --pixel-size 0.05 --x 100 --y 50 --center
python scripts/list_images.py
Prints a table of all loaded images with their ID, filename, position, and visibility.
python scripts/remove_image.py <image_id | all>
image_id — Numeric ID of the image to remove (from list_images.py)all — Remove all background imageslist_images.py to see loaded images, remove_image.py to clean upIf the image has a scale bar of length S microns spanning P pixels:
pixel-size = S / P
For example, a 20 um scale bar that spans 200 pixels gives pixel-size = 0.1.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub caidish/klayoutclaw --plugin klayoutclaw18 skills in this plugin
/autocadEdit and export layout geometry in the optional AutoCAD for Mac backend when the user selects AutoCAD or requests native DWG editing through its MCP server./displayklayoutclaw:displayToggle KLayout layer visibility on and off for better visualization. Use this skill when the user wants to show/hide layers, toggle layer display, change layer visibility, or focus on specific layers in KLayout. Also trigger when the user says things like "hide the metal layer", "show only mesa", "turn off layer 3", or wants to isolate layers for inspection./e2e-judgeklayoutclaw:e2e-judgeOther plugins' skills for the same job