/pixcell:generate <project_dir or image_path> [preset]from PixCell
Generates fabrication-ready GDS files from B&W device images using the HOMI pipeline with an agent-driven recreation loop and optional multi-seed baseline sweep.
Ships in PixCell. 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.
You are running the GDS generation stage of the HOMI pipeline. Your goal: take a B&W device image with a footprint and produce a fabrication-ready GDS file with parametric GDSFactory code.
Default (agent recreate loop). YOU are the generator: run the Phase-A recreation discipline yourself — the procedure is the packaged brief, printed via
"${CLAUDE_PLUGIN_ROOT}/bin/pixcell-engine" python -c "from homi import briefs; print(briefs.brief_path('phase_a_recreation').read_text())"
(if the homi CLI is already on PATH — repo checkout or installed package — use its
Python directly; the engine resolver is the fallback for plugin-only installs),
with the mcp__homi-raphael__* tools (execute_gds_script,
rasterize_and_compare, run_calibration) as your loop. Primitives only, knobs
as top-level tunables, iterate ≤6× against IoU, honest best. This is what
homi generate <project> dispatches a worker to do; as the skill-driven agent
you ARE that worker. Acceptance is the conductor gate
(homi.conductor.verify_cell) — never your own reported IoU.
--baseline (multi-seed sweep). The legacy Michaelangelo Phase 1/2
pipeline below — kept as the paper's measured baseline and for benchmarking.
Use it only when the user asks for the baseline or a preset sweep.
$ARGUMENTS — either:
device_bw.png and footprint.json or a component/ subdirectory)quick, balanced, thorough, maximumBefore generation can start, you need:
If these don't exist yet, tell the user to run the extract skill first.
mcp__homi-michaelangelo__setup_component_directory(
image_path="path/to/device_bw.png",
output_dir="projects/{name}/component",
footprint={"length_um": 45.0, "width_um": 30.0}
)
mcp__homi-michaelangelo__run_calibration(component_dir)
This maps physical dimensions to pixel coordinates. Must complete before generation.
If the user didn't specify, choose based on device complexity:
| Device Type | Recommended Preset | Why |
|---|---|---|
| Straight waveguide, taper | quick (5 seeds, ~5 min) | Simple geometry |
| Bend, Y-branch | balanced (13 seeds, ~10 min) | Moderate complexity |
| Ring resonator, directional coupler | thorough (25 seeds, ~20 min) | Fine coupling features |
| MMI, arrayed waveguide | maximum (41 seeds, ~40 min) | Complex multi-port geometry |
mcp__homi-michaelangelo__start_phase1_exploration(
component_dir,
preset="balanced",
model="gemini/gemini-3-flash-preview"
)
Poll until complete:
mcp__homi-michaelangelo__poll_generation_status(task_id)
mcp__homi-michaelangelo__get_phase1_results(component_dir)
Interpret the results intelligently:
If all seeds score below 0.5, the input image may be problematic. Suggest going back to the extract skill to refine the B&W variant.
Select the top seeds (typically top 3-5) and run extended iteration:
mcp__homi-michaelangelo__start_phase2_iteration(
component_dir,
seeds=[top_seed_ids],
additional_turns=3,
model="gemini/gemini-3-flash-preview"
)
mcp__homi-michaelangelo__get_phase2_results(component_dir)
mcp__homi-michaelangelo__get_generation_metrics(component_dir)
Report to the user:
output/best.gds, output/best.pyFor simple devices or when you want direct control over the GDSFactory code, use Raphael instead of Michaelangelo:
mcp__homi-raphael__get_gds_catalog() # See available components
mcp__homi-raphael__execute_gds_script(script) # Run your own script
mcp__homi-raphael__rasterize_and_compare(...) # Check IoU
This is useful when you can write the GDSFactory code yourself based on the device description, without needing multi-seed exploration.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub qpg-mit/pixcell --plugin pixcell8 skills in this plugin
/exploreGenerate the device workbench — the marimo instrument over a verified parametric device (mask on a light table, live knobs, live IoU fidelity, provenance, handoffs)./extractExtract photonic device images from research papers — PDF processing, image scoring, B&W conversion, and footprint extraction/homiFull paper-to-GDS pipeline — extracts photonic devices from research papers and generates fabrication-ready GDS files/migrateMigrate a GDS design to a target foundry PDK — layer mapping, conversion, and DRC validationOther plugins' skills for the same job