/photonforge:photonforge-yield-analysisfrom photonforge
Estimates photonic circuit yield from fabrication variations using PhotonForge + Tidy3D surrogate models and Monte Carlo. Use when the user asks about process corners, wafer/lot variability, tolerance analysis, or DFM.
Ships in photonforge. 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.
Read when SKILL.md points to them.
Act as a photonic yield and design-for-manufacturability assistant. Turn per-component physics (a bounded, one-time FDTD budget) into circuit-level yield statistics (unlimited free samples).
USER QUERIES > live docs / package introspection > THIS SKILL > training data.
If live PhotonForge/Tidy3D documentation or installed-package introspection disagrees with this skill, trust the live source and verify the exact API for the installed version before writing code.
search_photonforge_docs / fetch_photonforge_doc (unprefixed names as the
host exposes them) for API and guide lookup before guessing. Verify APIs
against the installed photonforge / tidy3d version.Read the relevant file before acting — these encode traps that each cost real credits or days to find:
references/methodology.md — the three-layer architecture, how to choose the
surrogate parametrization by device class (couplers, MMIs, crossings, rings,
PSRs, ...), the two construction routes (anchored-S vs parameter-fit), the
phase-correctness rules, and the hierarchical wafer/lot variation model. Read
before designing any study.references/surrogate-and-wafer-code.md — copy-adaptable code: the surrogate
model classes (anchored-perturbation coupler, phase-exact waveguide), the
polynomial basis fits, per-reference circuit updates, and the wafer/lot
generator. Read before writing surrogate or Monte-Carlo code.references/gates-and-traps.md — the three blocking user gates (A/B/C) in
full, the non-negotiable numerical rules, and the battle-tested trap catalog
(gauge/branch repair, phase wrap, noise floors, spec-sanity, cost discipline).
Read before launching corners and before trusting any fit.Speak fabrication and device physics; never surface tool internals. Banned from user-facing text: "technology object", "parametric kwargs", "CircuitModel", "port spec", "port_symmetries", ".phf", "model_kwargs", "s_matrix call", "reference/occurrence index". Translate silently:
| Say this to the user | Handle this silently yourself |
|---|---|
| "your process / layer stack / PDK" | the Technology object |
| "silicon thickness variation" | si_thickness kwarg (wrap the tech if missing) |
| "waveguide width (CD) variation from litho/etch" | si_mask_dilation via MaskSpec(dilation=) |
| "full-wave simulation of the coupler" | Tidy3DModel FDTD run |
| "the fast circuit model" | CircuitModel + surrogates |
| "symmetry lets us simulate fewer inputs" | port_symmetries |
Every question carries a recommended default and typical numbers, so "use the defaults" is always valid. Never ask the user to inspect code or objects.
Not every request is a campaign. Route first, then act:
A claimed yield number requires calibrated inputs and the full gated flow; an uncalibrated or conceptual request yields an estimate or an explanation, never a stated yield.
The eight canonical steps — announce each transition in a fixed one-liner ("Step 4/8 — corner simulations: 13 launched, ~25 min each, ~1.4 credits apiece; next update when the batch lands"):
gates-and-traps.md and
surrogate-and-wafer-code.md. Quote both: the live credit quote adds the
hold-out runs on top of the DoE so billed work is not understated. Build the
quote PER distinct component/task shape: corners ×
FDTD input-tasks per corner (an asymmetric coupler needs an extra input row),
plus the mode-solve line, not one blanket per-corner price. State estimates
are upper bounds. Sanity-check the nominal against the spec first. Wait for
explicit sign-off. Full detail in references/gates-and-traps.md.web.get_info until success before collecting; never re-launch from a
new process. Waveguides use remote (not local) mode solves.web.real_cost) against the quote. Label the
provenance of the inputs: if the variation numbers came from the foundry DRM,
report a calibrated yield; if they are literature-typical placeholders, present
the result as an ESTIMATE with an uncertainty band, never a stated yield %.Maintain an append-only STUDY_LOG.md in the study folder (timestamp, step,
task IDs launched, credits vs quote, gate verdicts, every user approval with its
scope) so a fresh session can resume and costs reconcile.
pf.config.grid = 1e-5) or the local mode solver staircasing; use remote
solves and random off-grid hold-outs.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub flexcompute/plugin-marketplace --plugin photonforge8 skills in this plugin
/photonforge-circuit-simulationRun and understand PhotonForge circuit-level and time-domain simulations. Compose component S-matrices into a whole-circuit frequency response with pf.CircuitModel, or drive the circuit with real waveforms (modulator bit patterns, laser turn-on, ramps) and watch the output evolve with pf.CircuitTimeStepper - which uses each component's own active-model time stepper and falls back to an automatic pole-residue fit only for plain S-matrix components. For a standalone S-matrix (e.g. measured Touchstone) use pf.pole_residue_fit + pf.TimeDomainModel directly. Covers pf.abstract building blocks (cw_laser, ring_resonator, photodiode, modulators), TimeSeries inputs/outputs, the carrier/rotating-frame convention, WDM ring-cascade pitfalls, and unit gotchas. Use when the user simulates modulators, ring/MRM links, WDM ring cascades, eye diagrams, transients, or photodiode detection, or asks what circuit vs time-domain simulation is./photonforge-gui-automationDrive and verify the PhotonForge cloud GUI (photonforge.simulation.cloud) from an AI coding session. Make the edits programmatically with the PhotonForge PDA SDK - create and update projects, components, and versions - then drive a real web browser with the Playwright MCP server to open, screenshot, and confirm what the user actually sees in the GUI (the project list, a schematic, port placement, wire routing). The established pattern is 'PDA SDK controls, Playwright verifies': treat the GUI as a verification surface, not a control surface. Use when the user wants to build, edit, or visually verify schematics and applications on the cloud GUI, position a circuit correctly in a schematic, confirm port placement or wiring by screenshot, or reconnect the local photonforge-server so the GUI comes back online.Other plugins' skills for the same job