/photonforge:photonforge-gui-automationfrom photonforge
Automates PhotonForge cloud GUI using PDA SDK for programmatic edits and Playwright MCP for browser verification. Use to build, edit, and visually verify schematics and applications.
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 PhotonForge cloud-GUI automation assistant.
Yes - this skill is for working with photonforge.simulation.cloud, the PhotonForge
cloud GUI (the browser app where an engineer sees their projects, schematics, and
layouts) from a coding session. And yes - it helps you build a circuit and confirm it
is drawn and positioned correctly in that GUI. The way it does that is a deliberate
split between two tools:
photonforge.pda) is the Python API to your PhotonForge cloud
account. It reads and writes the real objects behind the GUI - projects
(folders of work), components (the PhotonForge cells/circuits), and their
versions. This is how the agent makes changes: one Python call, no clicking,
and it is reproducible and version-controllable. [verified 1.5.0][verified 1.5.0 - the loop navigates, snapshots, and screenshots the live GUI]The rule that ties them together is "PDA SDK controls, Playwright verifies." Edit in Python; verify in the browser. Do not click through the GUI to add components, set parameters, or configure plots when one SDK call does it - each browser round-trip is slow and not reproducible. The GUI is a verification surface, not a control surface.
The public boundary (be honest about this). In the GUI, a schematic is an editable tab called an Application. A person creates and arranges an Application by clicking "New application" in the GUI. The public SDK creates and backs the components an Application uses, but it does not create the Application itself and does not programmatically drag its symbols around the canvas. So the honest workflow is: build the component in Python -> create or open the Application in the GUI -> verify the result with Playwright. (Any lower-level "place this symbol at these canvas coordinates" helpers are private, unsupported APIs and are intentionally out of scope here - do not reach for them.)
Plain-language glossary: PDA = PhotonForge Design Automation, the cloud-project
Python SDK. Project = a named container of components/applications in your account.
Component = a PhotonForge cell or circuit (pf.Component). Application = the
GUI's editable schematic (or layout) tab that sits on top of a component. Playwright
MCP = a tool server that remote-controls a browser. Accessibility snapshot = a
searchable text tree of the current page, better than a screenshot for finding and
clicking elements.
search_photonforge_docs /
fetch_photonforge_doc (unprefixed names) for API and guide lookup before guessing.
If those tools are absent, introspect the installed package or read checked-in source.ref[port_name].center) and confirm connectivity
agrees with your netlist. Do not reason about rotations/reflections in your head - the
mental model bridges API to geometry and fails silently. [verified 1.5.0]Read references/gui-verification.md before setting up Playwright, running the
save-and-verify cycle, or debugging GUI placement. It covers the division of labor,
Playwright MCP setup, why a real browser is required (the cloud GUI blocks embedding),
the verification recipes, the query-don't-deduce discipline, driving simulations from
Python, the electrical-drive and reference-frequency gotchas, and the
photonforge-server reconnect - all checked against PhotonForge 1.5.0.
pf.component_from_netlist,
project.add / project.update, project.add_version). Fast, reproducible,
version-controllable. [verified 1.5.0]component._repr_svg_() or a
matplotlib bbox plot) and look at it; run a frequency spot-check at the carrier to
confirm the topology is sane.eXX / fXX) is valid only for the most recent snapshot;
re-snapshot after navigation or significant interaction.photonforge-server is not
running (or was restarted). Relaunch it, then reload the GUI tab so the status clears -
a reload forces the reconnect poll. See the reference for the port and flags. [verified 1.5.0]V = Re{A} * sqrt(Re(Z0))). Feeding a raw voltage waveform over-drives by
sqrt(Z0); scale by 1/sqrt(Re(Z0)). See the reference. [verified 1.5.0 - source]reference_frequency between two arms (e.g. an abstract phase_modulator,
which has no reference_frequency argument and is fixed near 1550 nm, paired with a
waveguide/coupler overridden to another band) detunes a balanced interferometer. Keep
both arms consistent. See the reference. [verified 1.5.0]ref[port].center, is the most common source of save/screenshot churn.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
8 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-layout-verificationAssemble, route, inspect, and verify PhotonForge photonic layouts from schematic or netlist intent. Use when the user is working with component_from_netlist, Reference placement, physical connections, virtual connections, pf.parametric.route, routing errors, port or terminal exposure, get_netlist, LVS-style checks, schematic-to-layout conversion, or layout overlap/intersection sanity checks.npx claudepluginhub flexcompute/plugin-marketplace --plugin photonforgeOther plugins' skills for the same job