/analog-design-rf:rf-designfrom analog-design-rf
Designs and verifies RF/mmWave blocks (LNA, mixer, VCO, PLL, PA) with topology selection, S-parameter extraction, harmonic-balance, Pnoise/PAC, IP3, and load-pull analyses, sign-off against spec table. Uses open-source EDA tools (Qucs-S, Xyce, ngspice, scikit-rf, openEMS).
Ships in analog-design-rf. 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.
analog-chip-design-agents:rf-design-orchestrator agent and pass the full user request and any
available context. Do not execute stages directly.rf-design-orchestrator mid-flow (including re-validation after a serviced
fix_request): do not spawn a new agent. Treat this file as read-only — return the requested stage
rules, sign-off criteria, or loop-back guidance.Spawning the orchestrator from within an active orchestrator run causes recursive delegation and must never happen.
Before executing or advising on any stage, read the following if they exist:
memory/rf/knowledge.md — known matching/stability fixes, HB convergence recipes, phase-noise
and load-pull patterns, and PDK/tool quirks. Incorporate its guidance into every stage.memory/rf/run_state.md — current run identity for resume-after-interruption.Design and verify an RF/mmWave block — select and match the topology, extract S-parameters, run
harmonic-balance / Pnoise / IP3 / load-pull, and sign off against the RF spec table across the
required corners. Seven stages with explicit QoR gates. RF design is a cross-domain producer —
its loop-backs are stage-local first (spec/stability fail → topology_matching; non-convergence →
harmonic_balance settings); when a stage-local cap is exhausted and the block still misses spec it
opens a cross-domain fix_request. It reads the EM-modeling passive model (Touchstone +
fitted lumped model) from design_state.em as a data dependency; a limiter traced to a passive
opens a fix_request with route_to: em-modeling (an automated EM re-solve), while a device-level
spec miss opens one with route_to: circuit-design. The pipeline-orchestrator re-validates the fix
via this orchestrator.
qucs-s) — schematic + harmonic-balance front-end (RF capable)xyce) — parallel SPICE with harmonic balancengspice) — small-signal / transient (limited native RF)skrf) — S-parameter math, stability (K/Δ), de-embeddingopenEMS) — passive co-reference / S-param cross-checkspectre) — S-param/HB/Pnoise/PAC/load-pullads)awr)hspice)constraints.rf_specs (preferred) or
constraints.specs; record which specs are in scope for the block class (PA → pae_pct /
p1db_dbm / evm_pct; VCO/PLL → phase_noise_dbc_hz; LNA/mixer → nf_db / gain_db /
s11_db_max / iip3_dbm).design_state.em.touchstone + design_state.em.fitted_model; if absent, treat the passive as
ideal/approximate and flag the assumption for later escalation.constraints.corners (process × voltage_pct × temp_c) and the
analysis frequency grid covering the band plus the harmonics of interest.rf_specs present and boundeddesign_state.em, or explicitly flagged as ideal| Issue | Fix |
|---|---|
No rf_specs for the block class | escalate constraint_gap — require the governing RF spec(s) before proceeding |
| EM passive model missing for an on-chip inductor | read design_state.em; if absent, flag the ideal-passive assumption and WARN (may drive a later escalation) |
design_state.em).s11/s22 toward rf_specs.s11_db_max in-band and does
not push any passive past its self-resonant frequency.s11_db_max| Issue | Fix |
|---|---|
| Match operating above a passive's SRF | re-select / re-match below SRF; if no on-chip option exists, open fix_request → em-modeling for a re-solve |
Cannot hit s11_db_max with the chosen topology | re-top (loop-back target) — add a matching section or change topology class |
s11/s22 (return
loss), s21 (gain), and compute the Rollett stability factor K (and B1/Δ) from the
S-matrix with scikit-rf.s11_db/s22 ≤ rf_specs.s11_db_max in-bandgain_db (S21) ≥ targetk_factor ≥ 1 in-band where unconditional stability is required| Issue | Fix |
|---|---|
K < 1 (potentially unstable) in-band | loop back → topology_matching: add stabilization / re-match |
Return loss misses s11_db_max | loop back → topology_matching: re-tune the matching network |
s11_db, s22, gain_db/S21, k_factor
per corner)p1db_dbm, compression, harmonic levels) from the tool summary file, not
the raw spectrum.p1db_dbm extracted| Issue | Fix |
|---|---|
| HB fails to converge at high drive | retry with more harmonics / source-stepping / continuation (max 2×) |
| Excess harmonic / spur content | revisit bias/topology — loop back → topology_matching if structural |
p1db_dbm, compression curve, harmonic/spur levels per corner)nf_db (LNA/mixer), iip3_dbm/IIP2, and
phase_noise_dbc_hz at the spec offset(s) (VCO/PLL); compute from the tool's noise/spectrum
summary.rf_specs target; a spec miss is the second loop-back
trigger to topology_matching (max 2×).design_state.em),
do not loop locally — open a fix_request → em-modeling for an automated re-solve.nf_db ≤ targetiip3_dbm ≥ targetphase_noise_dbc_hz ≤ target at the spec offset| Issue | Fix |
|---|---|
nf_db over target, limiter = inductor Q | open fix_request → em-modeling (higher-Q passive) — no local fix |
iip3_dbm / phase-noise miss from the circuit | loop back → topology_matching: re-bias / re-top (max 2×) |
nf_db, iip3_dbm, phase_noise_dbc_hz per corner) with limiter
attributionpae_pct / p1db_dbm / Pout, and (where in spec) evaluate evm_pct under modulated drive;
for non-PA blocks, confirm the optimum source/load and compute evm_pct if specified, else
pass through.pae_pct/evm_pct miss loops back to topology_matching (max 2×).pae_pct ≥ target and p1db_dbm/Pout ≥ target at the chosen loadevm_pct ≤ target where specified| Issue | Fix |
|---|---|
| Optimum load needs a passive beyond Q/SRF | open fix_request → em-modeling to re-solve the output passive |
pae_pct/evm_pct miss with a realizable load | loop back → topology_matching: re-size the output stage / re-match (max 2×) |
pae_pct / p1db_dbm / Pout / evm_pct table per corner| Check | Criterion |
|---|---|
| Spec compliance | every in-scope rf_specs (nf/gain/s11/iip3/p1db/phase-noise/pae/evm) meets target across the required corners |
| Stability | k_factor ≥ 1 in-band where unconditional stability is required |
| Convergence | all S-param/HB/Pnoise analyses converged at every corner |
| Passive validity | on-chip passives used the EM-fitted model (no ideal substitute at sign-off) |
fix_request
(route_to: circuit-design for a device-level miss, or route_to: em-modeling when the limiter
is an on-chip passive); terminate with decision: escalate so the pipeline-orchestrator dispatches
the servicer and re-validates via this orchestrator.spec_gap (ambiguous/missing spec) or when the
cross-domain iteration cap is hit.See plugins/meta/skills/pipeline-orchestration/SKILL.md §Constraints Schema for the authoritative schema and stage-entry validation rule.
Required at entry (rf_spec) — hard-fail if missing:
constraints.supply.vdd_v — bias / headroomconstraints.rf_specs (or constraints.specs for a baseband
block) — the spec(s) to closeconstraints.pdk — device models / passive layer stackconstraints.corners.process falls back to ["tt"] with a WARN if absent. Skip constraint
validation entirely when invoked in re-run / fix-servicing mode (a fix_request.id or a serviced
em re-solve reference was passed in the prompt).
Write memory/rf/run_state.md as the first action:
run_id: rf_<YYYYMMDD>_<HHMMSS>
design_name: <design>
pdk: <pdk or unknown>
tool: <primary tool>
start_time: <ISO-8601>
last_stage: null
Update last_stage to the completed stage name only after each stage finishes successfully.
After each stage completes, upsert one JSON record in memory/rf/experiences.jsonl keyed by
run_id. key_metrics fields: nf_db, gain_db, iip3_dbm, phase_noise_dbc_hz. Set
signoff_achieved: false until rf_signoff passes; then true. Create the file and parent
directories if they do not exist.
If mcp__plugin_ecc_memory__add_observations is available, emit each matching/stability/HB fix as
an observation to entity analog-design-rf-fixes after writing to experiences.jsonl. Skip
silently if absent — the JSONL file is the canonical record.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub hdl-tools/analog-chip-design-agents --plugin analog-design-rfOther plugins' skills for the same job