Fully automated analog design from one request — the /mbg-full-auto command. Parses the specification, runs pre-layout optimization, layout, DRC, LVS, PEX extraction, PEX simulation and PEX-aware fine-tuning, with Devil and Angel reviewers at every stage, then a tapeout-ready sign-off gate and an automatic design report. Use when the user gives a design request and wants it carried through autonomously. Do not use for a single isolated stage (use the stage skills), or for layout with no perfo...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Mbg Full Auto Mthudaa Microelectronic Bloc 2?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/majiayu000-mbg-full-auto-mthudaa-microelectronic-bloc-2)
---
name: mbg-full-auto
description: Fully automated analog design from one request — the /mbg-full-auto command. Parses the specification, runs pre-layout optimization, layout, DRC, LVS, PEX extraction, PEX simulation and PEX-aware fine-tuning, with Devil and Angel reviewers at every stage, then a tapeout-ready sign-off gate and an automatic design report. Use when the user gives a design request and wants it carried through autonomously. Do not use for a single isolated stage (use the stage skills), or for layout with no performance target (use mbg-spice-to-gds).
---
<!-- GENERATED FILE — do not edit by hand. Source: .ai/skills/mbg-full-auto/SKILL.md. Regenerate with: python3 scripts/sync_agent_tools.py -->
# `/mbg-full-auto` — Fully Automated Design
Canonical definitions: `.ai/knowledge/FULL_AUTOMATE.md` and
`.ai/knowledge/DESIGN_FLOW.md`. Read them before deviating.
## Command
```text
/mbg-full-auto "Design a 5T OTA in GF180 with VDD=3.3 V, gain >= 40 dB,
bandwidth >= 100 MHz, phase margin >= 60 deg, power <= 1 mW, CL = 1 pF.
Produce a tapeout-ready package and design report."
```
**All MBG slash commands use `/mbg-*`.** Do not expose generic names for MBG
work: never `/full-auto`, never `/full-design`, never `/review`, never
`/signoff`, never `/report`, never `/status`. Use `/mbg-review`,
`/mbg-signoff`, `/mbg-report`, `/mbg-status` instead.
## What you do
One request in; a tapeout-ready package or a diagnosed failure out. No
stage-by-stage prompting from the user.
1. **Parse the specification.** Track provenance: `given`, `inferred`,
`defaulted`, `missing`. **Never invent a performance target.** No target
at all ⇒ `CONFIGURATION_FAILURE` — ask, do not guess.
2. Review the specification (Devil + Angel) *before* designing.
3. **LOOP A** — pre-layout simulate → evaluate → fine-tune → repeat, bounded
by `max_pre_iterations`. Review each evaluation.
4. Generate layout only once pre-layout passes.
5. **DRC → LVS → PEX extraction.** A failure upstream `SKIP`s everything
downstream. Review.
6. **PEX simulation** — separate from extraction. Evaluate against the *same*
targets. Review.
7. **LOOP B** — on a PEX spec miss: read the degradation (worst first),
choose circuit and/or layout changes, regenerate, re-verify, re-simulate.
Bounded by `max_pex_iterations` and `patience`.
8. **Final sign-off gate**, then package artifacts and write the report.
## Running it
```python
from mbg import Spec, make_hooks
from mbg.full_auto import run_full_auto, FullAutoConfig, SignoffGate
hooks = make_hooks(cell="ota_5t", in_node="inp", out_node="out",
supplies={"vdd": 3.3, "vss": 0.0},
spec_names=["gain_db", "bw_hz"])
res = run_full_auto(user_request, hooks,
config=FullAutoConfig(outdir="outputs/ota_5t"))
res.status # SUCCESS | NOT_CONVERGED | BLOCKED | TOOL_FAILURE | ...
res.tapeout_ready # only True when every gate condition PASSed
res.signoff.table() # the gate, condition by condition
res.report_path # design report, or non-convergence report
```
## Do not stop after one or two failed attempts
A spec miss starts a **search**, not a shutdown. Continue through the
configured budget until a legitimate termination condition is reached:
all specs pass, budget exhausted, no improvement for `patience` iterations,
every feasible move exhausted, or a tool failure.
Each iteration:
1. propose **several distinct candidates** from the same baseline — different
hypotheses, not one guessed edit;
2. build and measure each **independently**, so the improvement is
attributable to one change;
3. promote the winner, archive the near-misses, reject the regressions;
4. if nothing beat the incumbent, **roll back to the best design** and widen
the search rather than compounding a bad edit.
Size steps from measured sensitivity where it exists, continue a direction
that worked, and bracket it — the design space is not monotonic, and pushing
one metric can break another. Never extrapolate past a measurement.
`FullAutoConfig.for_effort("normal" | "high" | "exhaustive")` sets the budget.
## The sign-off gate
`SUCCESS` requires **all** configured conditions to be `PASS`: pre-layout
specs, PEX specs, DRC clean, LVS match, PEX extraction, final GDS, final PEX
netlist, no unresolved `CRITICAL` finding, reviews complete, design report.
PVT corners and Monte Carlo only when configured.
A condition that was not evaluated reads **`NOT RUN`** and fails the gate. It
is never counted as passed, and you must not claim an analysis that did not
run.
## Reviewers cannot be talked around
Precedence: incomplete review ⇒ `ESCALATE`; hard gate failure outranks
everything; unresolved `CRITICAL` blocks; measured evidence outranks
sentiment; reviewer verdicts last. **Critics can block; they cannot approve
past a failed gate.**
## Reporting the outcome
On `SUCCESS`: package + design report, and say `TAPEOUT_READY`.
Otherwise report truthfully — status, failure category, best iteration, which
specs remain unmet and by how much, unresolved CRITICAL findings, which
recommendations were tried and whether they helped, and what manual
intervention you recommend. A well-diagnosed non-convergence is a correct
result; a fabricated success is not.
## Never
- declare success after pre-layout, after DRC/LVS, or because PEX extraction
completed;
- treat a tool crash as a specification failure;
- present a reviewer's opinion as a verification result;
- invent a specification the user did not state;
- run unbounded;
- use a non-`/mbg-*` command name for MBG functionality.