/analog-design-meta:pipeline-orchestrationfrom analog-design-meta
Orchestrates closed-loop feedback for analog/mixed-signal/RF design pipeline. Provides fix_request protocol, iteration caps, and design_state schema for spec↔circuit↔layout cycles.
Ships in analog-design-meta. 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.
analog-chip-design-agents:pipeline-orchestrator agent and pass the full user
request and any available context. Do not execute stages directly.design_state.json, summarise open
fix_requests[], and return — do not spawn subagents (anti-recursion rule).This skill provides the closed-loop feedback protocol for analog design. When a spec
violation, non-convergence, or yield miss is found during simulation, post-layout
sign-off, or AMS verification, it must be communicated to the selected servicer (via the
fix_request route_to hint — circuit-design by default, or behavioral-modeling) in a
machine-actionable way, and the pipeline must iterate until the spec is met or the
iteration cap is reached.
The protocol has three participants:
| Participant | Role |
|---|---|
| circuit-simulation-orchestrator / post-layout-signoff-orchestrator / ams-verification-orchestrator / physical-verification-orchestrator / parasitic-extraction-orchestrator / ams-integration-orchestrator / rf-design-orchestrator | Detects the failure; writes a fix_request entry to design_state.fix_requests[] with status=open; terminates with decision=escalate. |
| circuit-design-orchestrator / behavioral-modeling-orchestrator / custom-layout-orchestrator / em-modeling-orchestrator | Reads the open fix_request; sets status=claimed; the circuit servicer re-sizes/re-tops the circuit, the modeling servicer re-authors/re-validates the behavioral model, the layout servicer repairs the layout (DRC/LVS/parasitic), the em servicer re-solves the passive and republishes the em block; sets status=fixed with circuit_response; terminates. The servicer is chosen by the entry's route_to hint (default circuit-design). |
| pipeline-orchestrator | Detects open entries; assigns a pipeline_session_id; dispatches the chosen servicer (circuit-design, behavioral-modeling, custom-layout, or em-modeling) then re-validation in sequence; enforces a configurable cap (default 3, via pipeline_config.max_cross_domain_iterations); archives resolved entries on signoff; escalates via pending_approval if cap exceeded. |
All entries in design_state.fix_requests[] must conform to this schema:
{
"id": "fr_<pipeline_session_id>_<YYYYMMDD>_<HHMMSS>_<seq>",
"created_at": "<ISO-8601>",
"updated_at": "<ISO-8601>",
"created_by": "circuit-simulation-orchestrator | post-layout-signoff-orchestrator | ams-verification-orchestrator | physical-verification-orchestrator | parasitic-extraction-orchestrator | ams-integration-orchestrator | rf-design-orchestrator",
"failure_class": "spec_violation | convergence | functional | yield | drc_lvs | connectivity",
"retry_strategy": "refine",
"route_to": "circuit-design | behavioral-modeling | custom-layout | em-modeling (optional; omit for default circuit-design)",
"analysis_name": "<analysis or testbench name, e.g. ac_stability, tran_settling>",
"spec_or_metric": "<violated spec key, e.g. phase_margin_deg, nf_db, or null>",
"corner": "<failing corner, e.g. ss_125C_vmin, or null>",
"waveform_path": "<path or null>",
"log_path": "<path or null>",
"suspected_circuit": {
"block": "<block/cell name>",
"device": "<device or net, or null>",
"netlist": "<netlist path or null>",
"schematic_ref": "<schematic ref or null>"
},
"summary": "<one-line failure description>",
"expected_behavior": "<spec excerpt or target value>",
"observed_behavior": "<measured value / observed behaviour>",
"session_id": "<pipeline_session_id or null>",
"status": "open | claimed | fixed | abandoned",
"circuit_response": null,
"history": []
}
route_to is optional (default circuit-design when absent) — it names the servicer the
pipeline-orchestrator dispatches: behavioral-modeling for a model fault (RNM/cosim divergence
indicting the model), custom-layout for a physical fault (DRC/LVS from physical-verification,
or parasitic reduction from post-layout/extraction), em-modeling for a passive fault (an
rf-design-detected passive shortfall — low Q / under-spec SRF — that needs an automated EM
re-solve), or circuit-design for a circuit fault. Producers set it; the pipeline-orchestrator
reads it. Omitting it preserves the legacy circuit-design routing.
The RF emphasis tier is wired into this loop: rf-design-orchestrator is a producer. An RF spec
miss that needs device-level rework opens a fix_request with route_to: circuit-design; an
RF-detected passive shortfall opens one with route_to: em-modeling so the EM re-solve runs
closed-loop. Both carry created_by: rf-design-orchestrator, so re-validation dispatches back to
rf-design-orchestrator (see Dispatch pattern).
failure_class for a fix_request is restricted to {spec_violation, convergence, functional, yield, drc_lvs, connectivity} — the cross-domain repair classes. (The broader history enum also
includes matching/reliability/tool_error/etc., which are stage-local and never open a
cross-domain fix_request.) drc_lvs maps to retry_strategy: regenerate; connectivity to
refine.
circuit_response (populated by the servicer — circuit-design, behavioral-modeling,
custom-layout, or em-modeling — on close; for an em re-solve files_changed lists the
republished Touchstone / fitted-model artifacts):
{
"fixed_at": "<ISO-8601>",
"diff_summary": "<one-paragraph description of the circuit change>",
"files_changed": ["sch/ldo_ota.sch", "netlist/ldo_ota.spice"],
"commit_ref": null
}
fix_request.history[] — one entry per state transition:
{
"timestamp": "<ISO-8601>",
"agent": "<agent name>",
"from_status": "<previous status>",
"to_status": "<new status>",
"note": "<optional one-liner>"
}
circuit-design-orchestrator by default, or behavioral-modeling-orchestrator when route_to: behavioral-modeling, or custom-layout-orchestrator when route_to: custom-layout, or em-modeling-orchestrator when route_to: em-modeling) owns the open→claimed and claimed→fixed|abandoned transitions.pipeline-orchestrator sets cross_domain_iteration_count, pipeline_session_id, pipeline_config, and moves resolved entries to archive_fix_requests[].pending_approval exclusively with type: "checkpoint" at their own sign-off stage; type: "escalation" remains the sole responsibility of the pipeline-orchestrator.approved_checkpoints[] is written by the user (or by an orchestrator executing an explicit approval instruction) and read by all orchestrators.fix_request.history[] but must not overwrite each other's entries.cross_domain_iteration_count tracks the total number of circuit↔simulation dispatch
cycles for the current pipeline session. The cap is pipeline_config.max_cross_domain_iterations
(default: 3 if absent). The orchestrator treats the cap as "reaches or exceeds"
(use >= max_cross_domain_iterations), writing a pending_approval entry and exiting as
soon as the count is equal to or greater than the cap:
{
"pending_approval": {
"type": "escalation",
"stage": null,
"agent": "pipeline-orchestrator",
"reason": "resource_limit: fix_request loop reached 3 cross-domain iterations — relax the spec, raise the cap, or accept current QoR",
"fix_request_id": "<id>",
"last_summary": "<last circuit_response.diff_summary>",
"requires_user": true
}
}
The user reviews the escalation, manually adjusts the circuit/spec, then clears
pending_approval (set to null) and resets cross_domain_iteration_count to 0 before
re-invoking the pipeline-orchestrator. Optionally raise max_cross_domain_iterations.
pipeline_session_id ("ps_<YYYYMMDD>_<HHMMSS>" or null): identifies the active run. Set on entry, cleared on successful signoff. Scopes divergence checks and archival to the current session.pipeline_config (object): user-tunable settings, written with defaults on first run, never overwritten if present.
max_cross_domain_iterations (integer, default 3).checkpoints (array of strings, default []): stage names requiring human approval before sign-off. Example: ["arch_signoff", "schematic_signoff", "pex_signoff", "tapeout_signoff"].track_infrastructure (bool, default false): opt-in infrastructure memory.approved_checkpoints[]: { "stage": "<name>", "approved_at": "<ISO-8601>", "approved_by": "user" }.archive_fix_requests[]: resolved entries moved here on successful signoff.design_state.constraints is the single source of truth for design-intent parameters
across all domain orchestrators. Defined once here; domain SKILL.md files reference these
keys and document their default fallbacks. See also
docs/design_state_schema.md.
"constraints": {
"supply": { "vdd_v": null, "vss_v": 0.0 },
"specs": {
"dc_gain_db": null,
"gbw_hz": null,
"phase_margin_deg": 60,
"input_noise_nv_rthz": null,
"psrr_db": null,
"cmrr_db": null,
"offset_mv_max": null,
"power_mw": null,
"settling_ns": null,
"thd_db": null,
"iip3_dbm": null
},
"rf_specs": {
"nf_db": null,
"gain_db": null,
"s11_db_max": -10,
"iip3_dbm": null,
"p1db_dbm": null,
"phase_noise_dbc_hz": null,
"pae_pct": null,
"evm_pct": null
},
"corners": {
"process": ["tt"],
"mismatch": true,
"temp_c": [27],
"voltage_pct": [0]
},
"yield": { "target_sigma": 3, "mc_samples": 1000 },
"area_um2": null,
"pdk": null
}
Non-null values are documented defaults. null values must be supplied by the user
for constraint-bearing domains.
| Constraint key | Required by (hard-fail if missing/null) |
|---|---|
supply.vdd_v | circuit-design, circuit-simulation, all downstream |
at least one non-null entry in specs (or rf_specs for RF blocks) | circuit-design, circuit-simulation, rf-design |
corners.process (≥ 1 entry) | circuit-simulation, post-layout-signoff |
pdk | circuit-design, custom-layout, physical-verification, extraction |
All other keys are optional — absent keys fall back to the schema default with a WARN.
Every constraint-bearing domain orchestrator applies this rule at the first stage that
consumes design constraints. Skip entirely when invoked in fix-request-servicing mode (a
fix_request.id was passed in the prompt):
design_state.constraints. Treat missing key as {}.null, perform atomic
RMW — set pending_approval:
{
"type": "constraint_gap",
"stage": "<entry stage name>",
"agent": "<this-orchestrator>",
"reason": "required constraint <key> missing from design_state.constraints",
"fix_request_id": null,
"last_summary": "<comma-separated list of missing keys>",
"requires_user": true
}
Append a history[] entry: decision: "escalate", confidence: "high",
failure_class: "spec_gap", retry_strategy: "escalate", suggested_next_step: "escalate",
constraint_ref: "<missing key>". Print the gate message and halt.reason field.constraint_refIn every history[] entry emitted after a stage that evaluates QoR against a constraint,
set constraint_ref to the primary constraint key compared in dot-path notation
(e.g. "specs.phase_margin_deg", "rf_specs.nf_db", "yield.target_sigma"). All other
history entries retain constraint_ref: null.
Every failure is categorised so recovery is determined programmatically. Two fields work
together on each history[] entry:
failure_class — what went wrong.retry_strategy — how to recover, derived deterministically from failure_class.retry_strategy ∈ none | regenerate | refine | escalate:
fix_request.await_approval).failure_class → default retry_strategy)failure_class | retry_strategy | rationale |
|---|---|---|
none | none | no failure |
functional | refine | re-run circuit design with the failing testbench |
spec_violation | refine | re-size/re-top targeting the violated spec + corner |
matching | refine | re-do device matching/layout targeting the mismatch |
yield | refine | re-center design / widen margins targeting the MC tail |
convergence | regenerate | re-run sim with a clean testbench / solver options |
drc_lvs | regenerate | re-run layout/extraction from a clean state |
connectivity | refine | re-run targeting the violated connection/connect rule |
reliability | refine | re-run targeting the EM/IR/ESD violation |
tool_error | regenerate | re-run the same stage from scratch |
spec_gap | escalate | ambiguous/missing spec — needs user clarification |
resource_limit | escalate | iteration cap / runtime exceeded — human decision |
Producers that emit a fix_request (simulation, post-layout, ams-verification, ams-integration)
set its retry_strategy to refine (their classes map to refine).
Whenever retry_strategy resolves to escalate or a cap is hit, pending_approval.reason
must state both the failure_class and a plain-language description of what the user must
supply to unblock, e.g.:
spec_gap → "spec_gap: clarify — provide the intended ."resource_limit → "resource_limit: loop cap (N) reached on — relax the spec, raise the cap, or accept current QoR."design_state.json for this marketplace uses a single working baseline:
"1.0": full schema — constraints (analog/RF), fix_requests[],
cross_domain_iteration_count, per-stage history[] (one entry per completed stage,
each carrying confidence, failure_class, retry_strategy, suggested_next_step,
reason, constraint_ref), pipeline_config.checkpoints, approved_checkpoints[],
and pending_approval.type (checkpoint | escalation | constraint_gap).All orchestrators must set format_version to "1.0" if absent; never downgrade. Treat
missing fix_requests/cross_domain_iteration_count as []/0; missing
pipeline_config.checkpoints/approved_checkpoints as []; missing pending_approval.type
as "escalation"; missing constraints as {} (apply schema defaults; halt on first
missing required key).
Proactive human-in-the-loop gates at configurable stage boundaries. Orthogonal to the
failure-driven pending_approval (type escalation).
fix_request.id was passed).pipeline_config.checkpoints. If the orchestrator's sign-off stage name appears in
the list and not in approved_checkpoints[].stage: atomic RMW — set pending_approval
with type: "checkpoint", append a history[] entry with decision: "await_approval",
failure_class: "none", retry_strategy: "none", suggested_next_step: "escalate"; do
not set signoff=true; print the gate message and halt.approved_checkpoints[], clear
pending_approval (set null) and proceed to set signoff=true.After a domain orchestrator completes, the pipeline-orchestrator reads the terminal
history[] entry to decide retry/escalate without string-parsing prose. Decision table
(evaluated in order):
confidence | failure_class | suggested_next_step | Pipeline action |
|---|---|---|---|
| any | resource_limit | any | Escalate via pending_approval — cap exceeded |
low | any | any | Escalate — result unreliable |
| any | tool_error | convergence | retry_stage | Re-dispatch the same orchestrator once; if still failing, escalate |
| any | drc_lvs | loop_back_to:<stage> | Re-dispatch the layout/extraction orchestrator from a clean slate |
| any | spec_violation | functional | yield | escalate | Append a new fix_request and loop back via circuit-design |
| any | matching | connectivity | reliability | loop_back_to:<stage> | Re-dispatch targeting the violation with QoR feedback |
| any | spec_gap | escalate | Escalate — ambiguous spec |
high | medium | none | proceed | Advance to next stage / signoff |
| any | any | abandon | Escalate — child reports unrecoverable |
Programmatic branches must read structured fields — do not re-derive intent from reason.
Sequential dispatch — never parallel:
route_to hint:
behavioral-modeling → the modeling orchestrator; custom-layout → the custom-layout
orchestrator; em-modeling → the em-modeling orchestrator (re-solves the passive in
fix-servicing mode); otherwise (default) circuit-design.created_by): a simulation fix re-validates via circuit-simulation, an
ams-verification fix via ams-verification, a physical-verification fix via
physical-verification, a post-layout/extraction fix via post-layout-signoff, an
ams-integration fix via ams-integration, and an rf-design fix (RF spec miss → circuit-design,
or passive shortfall → em-modeling) re-validates via rf-design.Spawn form:
subagent_type: analog-design-circuit:circuit-design-orchestratorsubagent_type: analog-design-modeling:behavioral-modeling-orchestratorsubagent_type: analog-design-layout:custom-layout-orchestratorsubagent_type: analog-design-em:em-modeling-orchestratorsubagent_type: analog-design-simulation:circuit-simulation-orchestratorsubagent_type: analog-design-ams-verification:ams-verification-orchestratorsubagent_type: analog-design-physical-verification:physical-verification-orchestratorsubagent_type: analog-design-post-layout:post-layout-signoff-orchestratorsubagent_type: analog-design-ams-integration:ams-integration-orchestratorsubagent_type: analog-design-rf:rf-design-orchestratorAlways pass the fix_request.id in the subagent prompt.
cross_domain_iteration_count — circuit↔simulation dispatch cycles (target: ≤ 2 for clean designs)time_to_signoff — wall-clock from first open fix_request to sign-offescalation_rate — fraction of sessions that hit the cap (target: < 10%)fix_request_abandonment_rate — fraction of fix_requests reaching status=abandoned (target: 0%)design_state.json with all fix_requests[] at terminal status (fixed or abandoned)design_state.json with cross_domain_iteration_count updatedmemory/meta/experiences.jsonl entry for this runWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub hdl-tools/analog-chip-design-agents --plugin analog-design-metaOther plugins' skills for the same job