/lunima:logic-and-cpufrom lunima
Builds digital logic and a photonic CPU from optical cells using Lunima: extract truth tables, compose gates hierarchically, verify networks, clock registers, and run 4-bit ISA programs.
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's ladder: optical parts → gate → cell (adder slice, register) → unit (ALU, RAM, accumulator, PC) → CPU that runs the 4-bit ISA. Each step is verified before the next.
create_group {component_ids, name}.make_gate {id, inputs, outputs, bias}. Inputs (at most 4) and bias pins inject light, and outputs are thresholded.
noise_margin_of_gap.save_as_prefab {group_id} stores the gate in the library. Remove it later with delete_prefab.The shipped examples already contain working gates. Load one with load_example: "Logic Gate NOT-NAND", "Logic Gate OR-AND", "Logic Gate Register 2-bit", "Logic Gate Full Adder", "Logic Gate 4-Bit Adder", "Logic Gate ALU 1-bit", "Logic Gate RAM 2x2", "Logic Gate PC 2-bit".
To reuse a whole circuit (for example a full adder made of many gates):
create_group, then save_as_prefab.get_component on the cell. Every cell pin reports inner, the gate pin it exposes, and signal, the logic signal it carries (A, B, Cin, S, Cout, …).signal. One logic signal often feeds several gate pins. Each of those pins needs its own wire, so a single output driving them needs a splitter or copy cell.list_component_types {filter} lists library gates under groups. Place them with place_component {type: "<gate>", x, y, name}.create_connection with pin names, gate output → gate input.logic_build reports fan-out warnings.logic_build builds the network. It reports the network inputs/outputs (named after the unwired gate pins or signal names), the gates, registers and the critical-path delay in ps.logic_truth_table enumerates every input combination. Compare each row with the intended function; for an adder, compute every sum.
primary_outputs (for example S0..S3, Cout).fixed: {"Cin": 0} to keep the table small.logic_evaluate {inputs} tests single cases.logic_step {inputs, reset} is one clock edge. Check that registers load when enabled and hold otherwise.isa_run {program | sample, photonic} runs Lunima's 4-bit accumulator ISA (docs/ISA.md):
LOAD imm, ADD addr, AND addr, NOT, STORE addr, JMP addr, JZ addr, HALT.label:, ; comments.photonic the C# golden model runs.photonic: true (after logic_build), every operation the built chip implements runs through the optical network. photonic_units shows which ones: ADD on the 4-bit adder, AND/NOT on the logic unit, the zero flag, accumulator and RAM. photonic_status gives the light's propagation time.A gate's output must stay above its threshold through a chain of gates. Check that each stage's power stays within its gates' margins (simulate, get_light_values) before claiming a deep circuit works.
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./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./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