/lunima:photonic-circuit-designfrom lunima
Design, route, simulate, and verify photonic integrated circuits using Lunima MCP tools. Handles MZIs, ring filters, splitter trees, switch fabrics, and component-level PIC work from empty chip or .lun file.
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.
Lunima runs headless behind the lunima MCP server: the same routing, S-matrix simulation and design
checks as the desktop app. Units are µm (positions are a component's top-left corner), angles
are degrees counter-clockwise, powers are linear relative to a unit laser (dB = 10·log10).
new_design, open_design {path}, or load_example {name} (omit the name to list examples).list_component_types {filter, pdk}. It returns the footprint, pins (offset from the top-left corner and facing), parameters, and whether the active process allows the part. Prefer one PDK per chip.get_floorplan to see free areas.find_free_space {width, height, near_x, near_y} to get spots where a block fits.place_component {type, x, y, rotation_deg, name}.
name. You can use it as an id afterwards.nudge=true accepts the hint.create_connection {from_component, from_pin, to_component, to_pin}.
length_um, loss and blocked.set_light_source {id, enabled, wavelength_nm, power}. A source with enabled=false is an output. Mark the input coupler on and each output coupler off.simulate returns per-output power_db and transmission_db. open_ends shows light escaping through unwired pins, which usually means a missing wire.sweep_parameter {id, parameter} for phase/coupling transfer curves, and sweep_spectrum {start_nm, end_nm} for spectra (extinction ratio, FSR).validate_design {min_severity: "problem"} runs DRC-lite (width, spacing, bend radius per PDK process), overlaps and process checks. Fix every problem. Hints such as open fiber pins are often intended.screenshot (whole design or a µm region) shows the routed layout with the power overlay.save_design {path}. Export with export_gds (Nazca script plus GDS) and export_netlist (gdsfactory YAML, SAX, Verilog-A).apply_design {design: {instances, connections}, clear: true}.
x, y, rotation_deg) or is placed against an earlier part (attach_to: "split.out1", pin: "in", gap_um).parameters and a light_source.text or path) is accepted too.place_component {type, attach_to: "<part>.<pin>", pin: "<own pin>", gap_um} turns the part to face the pin and wires it.connect_bundle {connections: [{from, to}]} routes them together and reports the skew.
match_lengths {connection_ids: ["a.out1", "a.out2"]} adds meanders until the lengths are equal. Use it for MZI arms and phased arrays.describe_component_type {type} shows where its light goes. A 3 dB coupler, for example, gives −3 dB to both outputs with a 90° phase offset.optimize {parameters: [{id, parameter}], objective: {maximize_ratio: ["bar", "cross"]}} searches the parameters and applies the best values.add_fiber_array {ports: ["dev.in1", "dev.in2"], coupler: "Grating Coupler", side: "west"} places a 127 µm-pitch row of couplers and wires it.batch {steps, atomic: true}. It is undone on failure."a.out1". GUIDs change when a design is reopened.blocked: true, failure_reason): move a part with move_component {id, dx, dy}, or call suggest_fixes {connection_id} and then apply_suggestion {id: "s1"}. Crossing wires can be cut with list_cut_candidates and insert_crossing.loss.bends_db and min_bend_radius_um in list_connections. Give the router more room.undo.get_component, list_connections {blocked_only: true}) instead of trusting the plan.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
photonic-ic, pic-design, lunima, mzi, ring-filter, splitter-tree, switch-fabric
4 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./gds-layoutAnalyse, import and export GDS layouts with Lunima — inspect cells and layers, reconstruct a GDS into placed components and connections, export a design to Nazca/GDS and netlists, and round-trip check the result. Use whenever a .gds file or a foundry layout is involved./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.npx claudepluginhub aignermax/lunima --plugin lunimaOther plugins' skills for the same job