/lunima:gds-layoutfrom lunima
Analyse, import and export GDS layouts with Lunima — inspect cells and layers, reconstruct a GDS into placed components and connections, export to Nazca/GDS and netlists, and run DRC checks.
Ships in lunima. 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.
analyze_gds {path} reads a file without changing the design. It returns:
Text layers usually carry port labels:
1/10501/1Waveguides are usually on 1/0. Use the census to decide the layer roles before you import.
import_gds {path, top_cell, mode, port_layers, waveguide_layers, metal_layers}:
mode: explode (default): every sub-cell instance becomes a component. Pins come from port labels and waveguide ends. Abutting pins and drawn routes become connections.mode: black_box: imports the cell as one component."layer,datatype;...".
1,10;501,1, waveguides 1,0;1111,0, metal 11,0;12,0;13,0.reroute: false keeps the drawn routes; true lets Lunima's router redraw them.placed, connected, skipped_connections and warnings. Top-cell ports are left free on purpose.Then inspect the result with list_components, get_component and screenshot. Simulate it like any design; see the photonic-circuit-design skill.
export_gds {path: "/abs/dir/chip1.py"} writes the Nazca script. If Python with Nazca is configured, it also produces chip1.gds.
skipped_connections: blocked routes are not exported. Fix them first.unresolved_crossings and the placeholder warnings.numpy.py, re.py).export_netlist {format}:
gdsfactory_yaml (instances, placements, connections, ports)sax (a Python circuit model)photontorchverilog_a (a folder with modules plus a SPICE test bench)validate_design is a fast DRC-lite check. Before a tapeout, run the foundry deck:
check_foundry_drc {deck: "cornerstone_sin300_drc"} checks the open design. List the decks by omitting deck.{deck: "/path/deck.lydrc", gds_path: ...} checks any deck and GDS.clean: true.After importing or editing a layout, run compare_netlist {path: "schematic.yaml"} against the intended netlist. It reports:
Keep the gdsfactory YAML from export_netlist as the reference.
After export_gds, run analyze_gds on the produced GDS. Expect the same number of instances, and port texts on the expected layers. Then import_gds it into a new_design and compare list_connections with the source design.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub aignermax/lunima --plugin lunima4 skills in this plugin
/chiplet-assemblyDesign multi-chiplet photonic systems with Lunima — create dies with their own fabrication process, place parts per die, link dies through edge couplers, check alignment and per-die design rules, and size the floorplan. Use for chiplets, multi-process assemblies (e.g. SiN next to SOI or InP) and system-level layouts./logic-and-cpuBuild digital logic and a small processor from photonic circuits with Lunima — turn optical cells into gates with extracted truth tables, compose gates hierarchically, verify networks, clock registers, and run programs of Lunima's 4-bit ISA on the photonic units. Use for gates, adders, ALUs, registers, RAM, counters and the photonic CPU./photonic-circuit-designDesign, route, simulate and verify a photonic integrated circuit with the Lunima MCP tools — from an empty chip or an existing .lun file to a checked, simulated, saved design. Use for MZIs, ring filters, splitter trees, switch fabrics and any component-level PIC work.Other plugins' skills for the same job