From klayoutclaw
Toggles KLayout layer visibility on/off via scripts. Hides, shows, or isolates layers by number for inspection during design review.
How this skill is triggered — by the user, by Claude, or both
Slash command
/klayoutclaw:displayThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Toggle layer visibility in KLayout via the MCP server for better visualization during design review.
Toggle layer visibility in KLayout via the MCP server for better visualization during design review.
python scripts/toggle_layer.py <layer> <datatype> [on|off]
on — make layer visibleoff — make layer invisibleExamples:
python scripts/toggle_layer.py 1 0 off # hide mesa layer
python scripts/toggle_layer.py 2 0 on # show metal layer
python scripts/toggle_layer.py 3 0 # toggle bonding pads
python scripts/show_only.py <layer1/dt1> [<layer2/dt2> ...]
Example:
python scripts/show_only.py 1/0 2/0 # show only mesa + metal, hide pads
The scripts use execute_script to manipulate pya.LayerProperties in the current LayoutView. Each layer properties entry has a visible attribute that controls display.
For custom display manipulation beyond these scripts, use execute_script directly:
tool_call("execute_script", code="""
lp_iter = _layout_view.begin_layers()
while not lp_iter.at_end():
lp = lp_iter.current()
lp.visible = (lp.source_layer == 1) # show only layer 1
_layout_view.set_layer_properties(lp_iter, lp)
lp_iter.next()
""")
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'.
Fixes SVG files for KiCad PCB import by splitting compound paths with holes, correcting Illustrator DPI scale (72 to 96), and converting CSS styles to inline attributes.
Drives an open-source EDA flow from RTL to GDS with signoff checks (DRC, LVS, RCX) using OpenROAD, Yosys, KLayout, and OpenRCX for PPA iteration and flow diagnosis.