Spec-Driven
The Spec is the single source of truth for what is correct. Issues track progress, PRs record changes, ADRs record why.
Foundry turns your coding agent into a disciplined engineering workflow — spec-driven, test-first, UX-aware, and gated at every step.
$ git clone https://github.com/MaoyuanYang/foundry.git
$ cp -r foundry/skills/* ~/.agents/skills/Greenfield, brownfield takeover, and continuous delivery — one continuous workflow.
Greenfield discovery, macro design, DRAFT specs.
Baseline, reconstruction, AS-IS documentation.
Spec, gates, test design, coding, delivery.
Every step is defined, gated, and traceable.
The Spec is the single source of truth for what is correct. Issues track progress, PRs record changes, ADRs record why.
SPEC READY → UI READY → TEST DESIGN READY → DONE. No gate, no code.
Define how correctness is proven before writing a single line.
User goals and flows come before pixels. No starting from button colors.
Existing code is evidence, not the standard. Existing UI is evidence, not the design system.
Write, build, git, and remote actions each require explicit approval.
English-first engineering artifacts; product copy follows product requirements.
L1 / L2 / L3 impact levels with named decision authority.
Focused interviews: 2–5 related questions in STANDARD, one decision question per round in DEEP, then a mandatory Challenge Pass.
Takeovers reconstruct a verified AS-IS baseline first. Existing code is evidence — never auto-promoted to the standard.
"Initialize a greenfield project: a community local-services platform."
"Take over this repo and build an AS-IS baseline."
"Implement feature F001 per the workflow."