/photonforge:photonforge-project-versioningfrom photonforge
Version-control PhotonForge photonic designs, snapshot immutable project versions, and drive the cloud GUI from local Python via photonforge-server.
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 project-versioning and cloud-GUI assistant. This is the layer that stores PhotonForge designs as version-controlled, shareable cloud projects and lets the browser GUI drive code running in the user's own Python environment. Its value is traceability and collaboration: months after tapeout you can still recover exactly which component, at which parameters, against which PDK version was fabricated, and a teammate can open a project link and run it.
USER QUERIES > live docs / package introspection > THIS SKILL > training data.
This layer is simplified often across releases. If the live PhotonForge docs or
installed-package introspection disagree with this skill, trust them and verify
against the installed photonforge version.
photonforge.pda call connects to the
server on its own. Just call pda.stop() when a script finishes (in a
finally). pda.init() still exists and is idempotent (re-calling closes the
prior connection first) — use it only to connect eagerly or force a reconnect.search_photonforge_docs / fetch_photonforge_doc for API and guide lookup
before guessing; verify APIs against the installed version.photonforge-server is a small local process that lets the browser GUI run
the user's own Python — recomputing their parametric components at new
parameters and submitting their simulations. Without it the GUI can only show
stored geometry; with it, "open a project link and click Run" works.
photonforge-server --log-level INFO
https://photonforge.simulation.cloud/projects. It
auto-discovers the local server and shows "Connected to local server".No module named .... Either point the server at the source
(PYTHONPATH=/path/to/code photonforge-server; verify first with
PYTHONPATH=/path/to/code python -c "import <yourmodule>"), or ship the code
in the project's own managed module (project.import_module(globals()) +
project.save_module()) so it travels with the project (reference).photonforge-server --example
If this fails with Library 'Abstract Components' version <x> not found, that
matching library isn't published in your environment - skip --example and
seed a small project via the SDK instead (see reference).Full server, managed-module, and GUI-schematic-backing detail is in the reference.
Read references/projects-and-server.md before configuring photonforge-server
for the GUI, making a parametric module importable, backing a GUI schematic with
a component, seeding a PDK library, or debugging a GUI recompute error. It
carries the connection, project-lifecycle, server, module-import, GUI-backing,
and PDK-seeding patterns in full.
photonforge.pda (it connects
automatically); wrap script work in try / finally with pda.stop().
Confirm identity with pda.user_info().pda.list_projects(...) (filter by name / visibility / role) and
pda.list_libraries(...).pda.create_project(name, description=...), or
pda.load_project(name=... | project_id=...); load an immutable snapshot with
version=... (or a named tag=...).project.add_library(name, version=version) (version is keyword-only; a positional second arg raises
TypeError) and set pf.config.default_technology; save a component with
project.add(comp, tag="draft"); revise with project.update(comp) (matched
by component NAME — keep the name stable); snapshot immutably with
project.add_version("1.0.0", target=comp.name) (or whole-project
project.add_version("1.0.0")); reload with project.load(name, version=...); return a snapshot to editable head with load_latest().photonforge-server with the code importable (above + reference).@pf.parametric_component with promoted reference ports and an
activated model, make it importable, and save_module(). Five conditions must
hold — see the reference.project.list_permissions(); project.retire([...]) /
pda.retire_project(project_id=...) (versioned projects retire cleanly in
1.5.0; a 409 means the target is protected another way, e.g. published as a
shared library).No module named '<module>' on recompute → the server can't import the
user's code. Set PYTHONPATH or use the managed module + save_module(), and
verify the import at the CLI in the server's environment.Component '<x>' has no active model → an augmented component (copy +
attached model) still points at the base layout; set
parametric_function = None before project.add(...).only reference ports can be added / has no ports → the schematic is
backed by a component whose ports were added directly; wrap it so every port
and terminal is a promoted reference port.'NoneType' object has no attribute 'items' in model handling → a model
was added but not activated; pf.CircuitModel() auto-activates, others need
activate_model(...).project.update(...) changed the wrong thing → PDA matches by NAME; rebuild or
edit with the same component name.add_library(name=...) errors "N projects matching" → duplicate library names
in the account; pass library_id= from list_libraries() instead.pda.retire_project(...) returns 409 → the target is protected (e.g. published
as a shared library); add_version alone no longer blocks retire in 1.5.0.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-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.npx claudepluginhub flexcompute/plugin-marketplace --plugin photonforgeOther plugins' skills for the same job