/klayoutclaw:nanodevice_flakedetect_reviewfrom klayoutclaw
Visually validates committed flake polygons in KLayout against microscope images, assessing contour quality and alignment per material layer.
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.
None: SKILL.md is the whole skill.
Pure agent workflow using existing skills and MCP tools. No custom scripts needed.
After the commit step has inserted polygons into KLayout. Review validates the actual committed result, not just overlay images.
<out>/combine/overlay_raw.png, overlay_lut.png, combine_report.json<out>/align/alignment_report.jsonUse MCP screenshot to capture the current KLayout viewport with polygons on the background image:
mcp__klayoutclaw__screenshot
Read the resulting PNG to see all layers overlaid on the microscope photo.
Use the display skill to isolate each material layer for focused inspection:
# Show only top_hBN (layer 10/0) against the background
python skills/display/scripts/show_only.py 10/0
# Screenshot, then inspect
# Show only graphene (layer 11/0)
python skills/display/scripts/show_only.py 11/0
# Show only bottom_hBN (layer 12/0)
python skills/display/scripts/show_only.py 12/0
# Show only graphite (layer 13/0)
python skills/display/scripts/show_only.py 13/0
# Restore all layers
python skills/display/scripts/toggle_layer.py 10/0 11/0 12/0 13/0 --on
Take a screenshot after each show_only to compare each polygon against the flake features.
Read the overlay images from the combine step for cross-reference:
<out>/combine/overlay_raw.png — contours on desaturated raw image<out>/combine/overlay_lut.png — contours on LUT image (if available)<out>/combine/mask_composite.png — color-coded mask overlayThese show the contours before coordinate transform. The committed KLayout polygons should match.
Answer these specific questions about the KLayout screenshots:
Q1 — Top hBN boundary: "Do the top_hBN polygons (layer 10/0) follow the flake boundary visible in the background image?" Rate: tight fit / acceptable / poor fit
Q2 — Graphene containment: "Is the graphene polygon (layer 11/0) fully inside the top_hBN polygon (layer 10/0)? Any graphene outside top_hBN indicates a problem." Rate: fully contained / mostly contained / significant leakage
Q3 — Graphite alignment: "Does the graphite polygon (layer 13/0) align with the dark strip visible in the image?" Rate: aligned / offset / missing
Q4 — Bottom hBN coverage: "Does the bottom_hBN polygon (layer 12/0) cover the correct underlying hBN region?" Rate: good / partial / wrong region
Q5 — Overall: "Rate this result: excellent / good / needs work."
Read the reports for numeric cross-checks:
From <out>/align/alignment_report.json:
From <out>/combine/combine_report.json:
| Visual Assessment | Metrics | Decision |
|---|---|---|
| excellent/good | metrics OK | PASS — detection complete |
| good | metrics borderline | PASS with note |
| needs work (alignment) | high chamfer / low IoU | FAIL → re-run align with different rotation or parameters, then redo combine → commit → review |
| needs work (detection) | — | FAIL → re-run specific detect script with adjusted parameters, then redo combine → commit → review |
| needs work (commit) | — | FAIL → re-run commit (coordinate transform or layer error) |
Record the decision and reasoning. If FAIL, specify which step to retry and what to change.
--cluster-id overrides. Check source image quality.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-judgeRun agentic E2E tests for KlayoutClaw. Gives Claude Code natural-language tasks, lets it autonomously choose MCP tools, independently verifies layout state via direct MCP calls, and judges outcomes with gpt-5-mini. Use when the user wants to run agentic tests, validate KlayoutClaw, or benchmark agent performance./geometryklayoutclaw:geometryCreate geometry in KLayout via MCP — rectangles, polygons, paths, cells, and cell instances. Use this skill whenever the user wants to draw, add, or create shapes/geometry/structures in KLayout, even if they don't say "geometry" explicitly. Trigger on phrases like "draw a rectangle", "add a polygon", "create a cell", "place an instance", "make a shape", or any layout/chip/mask design geometry task./imageklayoutclaw:imageLoad a reference image (microscope photo, optical image, SEM) into KLayout as a background overlay for design alignment. Use this skill whenever the user wants to load an image, add a background image, overlay a microscope photo, import a reference picture, align to a photo, or trace over an image. Also trigger when the user says "load this image", "use this photo as reference", "overlay the microscope image", or needs to position/scale/remove background images./klayout_gds_importImport a GDS file into the current KLayout layout, flatten hierarchy, and merge into a single top cell. Use this instead of raw Layout.read() which leaves orphaned cell indices and multi-top-cell states.Other plugins' skills for the same job