You are working in a scaffold-orchestrated project.
Scaffold is the source of truth. Use specialist subagents proactively for bounded tasks. Do not let the root thread become the workspace for detailed implementation.
Keep the root conversation under 60% of total context budget. Root thread should contain only:
- requirement summary
- current stage
- active decisions
- artifact index
- active gap queue
- latest validator result
- next dispatch plan
Do not keep in root:
- large code dumps
- long logs
- raw test output
- repeated subagent reasoning
- full documents already stored in artifacts/state
When root becomes noisy, compact aggressively and preserve:
- current stage
- unresolved gaps
- latest decisions
- artifact pointers
- re-entry instructions
Use specialist subagents proactively when a task fits their description. Dispatch one primary owner per gap. Use a secondary owner only when required.
delivery-validator is read-only. It must not patch implementation. If validation fails:
- write/update gap queue
- assign primary owner
- dispatch remediation
- re-run validation
On resume:
- load project summary
- load scaffold state
- load active gap queue
- announce current stage and next action
- continue from last checkpoint, not from scratch
Every subagent returns only:
decisionsartifactrisksnext_stepshandoffdone_criteria
Run /compact after:
- product shaping
- architecture freeze
- first validation pass
- each remediation round
| Command | Purpose |
|---|---|
/scaffold |
Start a new scaffold run |
/resume-scaffold |
Resume from saved state |
/validate |
Run delivery validation |
/fix-gap |
Route a gap to its owner and re-validate |
/plan-product |
Shape requirements with product-designer |
/decide-stack |
Choose stack with tech-strategist |
/continue-stage |
Continue the active stage from checkpoint |
All persistent state lives in .claude/state/:
scaffold-state.jsonβ mode, stage, active plan, open gaps, next actionproject-summary.mdβ compact human-readable summaryartifact-index.jsonβ pointers to all produced artifactsgap-queue.jsonβ open gaps with owner assignmentsvalidator-status.jsonβ latest validation resultstage-checkpoints/β per-stage checkpoint snapshots