Prerequisites
None — this is the full pipeline entry point. Setup is handled automatically.
Execution
# Parse mode
TEAM_MODE = "--no-team" not in ARGUMENTS
if TEAM_MODE:
# ═══ TEAM MODE: Skill sequences phases directly ═══
# State management
Write(".rat/state/rat-auto-design-state.json",
{ "schema_version": "3.0", "status": "running",
"current_phase": 1, "execution_mode": "team",
"phases": { "1": {"status":"pending"}, "2": {"status":"pending"},
"3": {"status":"pending"}, "4": {"status":"pending"},
"5": {"status":"pending"}, "6": {"status":"pending"} } })
# Phase 1: Research (team)
Skill(skill="rtl-agent-team:rtl-p1-research-team", args="$ARGUMENTS")
# Gate check + state update
# Phase 2: Architecture + RefC (team)
Skill(skill="rtl-agent-team:rtl-p2-arch-team", args="Phase 1 complete")
# Gate check + state update
# Phase 3: uArch + BFM (team)
Skill(skill="rtl-agent-team:rtl-p3-uarch-team", args="Phase 2 complete")
# Gate check + state update
# Phase 4: RTL Implementation (team)
Skill(skill="rtl-agent-team:rtl-p4-implement-team", args="Phase 3 complete")
# Gate check + state update
# Phase 5: Verification (team)
Skill(skill="rtl-agent-team:rtl-p5-verify-team", args="Phase 4 complete")
# Gate check + state update
# Phase 6: Design Review (no team — sequential only)
Bash("mkdir -p reviews/phase-6-review")
Task(subagent_type="rtl-agent-team:p6-review-orchestrator",
prompt="Execute Phase 6 design review. Context: Phase 5 PASS.")
# Mark completed (stop-gate.sh reads top-level "status" to allow exit)
# Write completed status BEFORE cleanup so stop hook sees it
# Portable in-place JSON edit — avoids GNU/BSD sed -i differences (macOS BSD sed requires `-i ''`).
Bash("python3 -c 'import json, pathlib; p = pathlib.Path(\".rat/state/rat-auto-design-state.json\"); d = json.loads(p.read_text()); d[\"status\"] = \"completed\"; p.write_text(json.dumps(d, indent=2))'")
# Cleanup state
Bash("rm -f .rat/state/rat-auto-design-state.json")
else:
# ═══ SEQUENTIAL MODE: Delegate to autopilot-orchestrator ═══
Task(subagent_type="rtl-agent-team:autopilot-orchestrator",
prompt="Execute full RTL autopilot pipeline. --no-team. User input: $ARGUMENTS")
Team mode uses native teams within each phase for parallel execution (Orchestrator as Teammate pattern).
Each phase team skill handles its own TeamCreate/TeamDelete lifecycle with a coordinator teammate + 3-5 workers.
Sequential mode delegates everything to the autopilot-orchestrator.
Output
- Design artifacts:
docs/phase-1-research/ through docs/phase-5-verify/
- Phase 6 design note and review verdicts:
reviews/phase-6-review/
(Phase 6 is the design review + documentation phase; its outputs live under reviews/, not docs/)
rtl/*/*.sv — lint-clean, unit-tested RTL modules
sim/ — testbenches, regression results, and coverage data
reviews/ — per-phase review reports with final compliance verdict
1---2name: rat-auto-design3description: Full 6-phase RTL pipeline from spec to verified design (P1 research through P6 design note). Triggers: 'design a chip', 'full pipeline', 'autopilot'.4---56<Purpose>7Execute the full RTL design pipeline from specification to verified silicon.8In team mode (default), the skill directly sequences phases using phase-specific team skills9for parallel execution. In sequential mode (--no-team), delegates to autopilot-orchestrator.10</Purpose>1112<Use_When>13- Starting a complete RTL design from a specification document14- User says "design a chip", "full pipeline", "RTL design", "autopilot"15- Need end-to-end flow: Research → Architecture → μArch → RTL → Verify → Design Note16</Use_When>1718<Do_Not_Use_When>19- Only need a specific phase (use the phase-specific skill instead)20- Only need design space exploration (use rat-dse)21- Only need design documents without RTL (use rat-p1p3-spec-uarch)22</Do_Not_Use_When>2324## Prerequisites2526None — this is the full pipeline entry point. Setup is handled automatically.2728## Execution2930```python31# Parse mode32TEAM_MODE = "--no-team" not in ARGUMENTS3334if TEAM_MODE:35 # ═══ TEAM MODE: Skill sequences phases directly ═══3637 # State management38 Write(".rat/state/rat-auto-design-state.json",39 { "schema_version": "3.0", "status": "running",40 "current_phase": 1, "execution_mode": "team",41 "phases": { "1": {"status":"pending"}, "2": {"status":"pending"},42 "3": {"status":"pending"}, "4": {"status":"pending"},43 "5": {"status":"pending"}, "6": {"status":"pending"} } })4445 # Phase 1: Research (team)46 Skill(skill="rtl-agent-team:rtl-p1-research-team", args="$ARGUMENTS")47 # Gate check + state update4849 # Phase 2: Architecture + RefC (team)50 Skill(skill="rtl-agent-team:rtl-p2-arch-team", args="Phase 1 complete")51 # Gate check + state update5253 # Phase 3: uArch + BFM (team)54 Skill(skill="rtl-agent-team:rtl-p3-uarch-team", args="Phase 2 complete")55 # Gate check + state update5657 # Phase 4: RTL Implementation (team)58 Skill(skill="rtl-agent-team:rtl-p4-implement-team", args="Phase 3 complete")59 # Gate check + state update6061 # Phase 5: Verification (team)62 Skill(skill="rtl-agent-team:rtl-p5-verify-team", args="Phase 4 complete")63 # Gate check + state update6465 # Phase 6: Design Review (no team — sequential only)66 Bash("mkdir -p reviews/phase-6-review")67 Task(subagent_type="rtl-agent-team:p6-review-orchestrator",68 prompt="Execute Phase 6 design review. Context: Phase 5 PASS.")6970 # Mark completed (stop-gate.sh reads top-level "status" to allow exit)71 # Write completed status BEFORE cleanup so stop hook sees it72 # Portable in-place JSON edit — avoids GNU/BSD sed -i differences (macOS BSD sed requires `-i ''`).73 Bash("python3 -c 'import json, pathlib; p = pathlib.Path(\".rat/state/rat-auto-design-state.json\"); d = json.loads(p.read_text()); d[\"status\"] = \"completed\"; p.write_text(json.dumps(d, indent=2))'")74 # Cleanup state75 Bash("rm -f .rat/state/rat-auto-design-state.json")7677else:78 # ═══ SEQUENTIAL MODE: Delegate to autopilot-orchestrator ═══79 Task(subagent_type="rtl-agent-team:autopilot-orchestrator",80 prompt="Execute full RTL autopilot pipeline. --no-team. User input: $ARGUMENTS")81```8283Team mode uses native teams within each phase for parallel execution (Orchestrator as Teammate pattern).84Each phase team skill handles its own TeamCreate/TeamDelete lifecycle with a coordinator teammate + 3-5 workers.85Sequential mode delegates everything to the autopilot-orchestrator.8687## Output8889- Design artifacts: `docs/phase-1-research/` through `docs/phase-5-verify/`90- Phase 6 design note and review verdicts: `reviews/phase-6-review/`91 (Phase 6 is the design review + documentation phase; its outputs live under `reviews/`, not `docs/`)92- `rtl/*/*.sv` — lint-clean, unit-tested RTL modules93- `sim/` — testbenches, regression results, and coverage data94- `reviews/` — per-phase review reports with final compliance verdict