Quickstart
The user is staring at an empty repo and wants to go from zero to a running full-stack scaffold in one command. This skill chains the three foundational skills in the right order so the user does not have to remember them.
The pipeline is:
domain-to-spec → scaffold-frontend → scaffold-backend (optional)
(writes PRD) (reads PRD, builds (reads PRD, builds
client/) server/ if needed)
Preflight
Before starting, check the repo state:
test -f AGENTS.md && echo "AGENTS_EXISTS"
test -f PRD.md && echo "PRD_EXISTS"
test -d client && echo "CLIENT_EXISTS"
test -d server && echo "SERVER_EXISTS"
If any of AGENTS.md, PRD.md, client/, or server/ already exist, STOP and show the user what was found. Ask:
"I found existing files from a previous run. Do you want to (a) skip steps whose output already exists, (b) overwrite everything and start fresh, or (c) cancel?"
Respect the answer. Never overwrite silently.
Step 1: Run domain-to-spec
Invoke the domain-to-spec skill end-to-end. Do not summarize it. Do not skip any of its questions. The user must complete the full Q&A so the PRD is properly filled in.
When domain-to-spec finishes, both AGENTS.md and PRD.md should exist at the repo root. Verify:
test -f AGENTS.md && test -f PRD.md && echo "STEP_1_OK" || echo "STEP_1_FAILED"
If the check fails, STOP. Do not proceed to Step 2. Ask the user to retry domain-to-spec or investigate why the files were not created.
Step 2: Pause for User Review
Before running any scaffolds, show the user:
- The
## Pages / Screenstable fromPRD.md. - The
## Backend Needed?line fromPRD.md. - The
## Backend Routessection fromPRD.md(if backend is needed).
Ask:
"Review these sections. Are the pages, backend decision, and routes correct? Reply 'yes' to continue, or paste corrections and I will update
PRD.mdbefore scaffolding."
If the user pastes corrections, update PRD.md in place, then re-show the sections and ask again. Only proceed when the user confirms.
Step 3: Run scaffold-frontend
Invoke the scaffold-frontend skill end-to-end. It will:
- Preflight that
AGENTS.mdandPRD.mdexist (they will, from Step 1). - Run
pnpm create next-appintoclient/. - Generate pages, layout, types, and (if backend is needed) an API client.
- Start
pnpm devand verify the landing page renders.
When the skill finishes, verify:
test -d client/app && test -f client/package.json && echo "STEP_3_OK" || echo "STEP_3_FAILED"
If the check fails, STOP and hand off to bugfix-doctor. Do not proceed to Step 4.
Step 4: Decide on Backend
Read PRD.md > Backend Needed?:
- If it starts with No, skip to Step 6. Tell the user: "No backend needed per
PRD.md. Skippingscaffold-backend." - If it starts with Yes, proceed to Step 5.
Step 5: Run scaffold-backend
Invoke the scaffold-backend skill end-to-end. It will:
- Preflight
AGENTS.md,PRD.md, andBackend Needed? = Yes. - Ask about Supabase integration.
- Scaffold
server/with FastAPI, Pydantic models, and one route file per PRD entity. - Run
pytestand verifyGET /health.
When the skill finishes, verify:
test -f server/app/main.py && test -f server/requirements.txt && echo "STEP_5_OK" || echo "STEP_5_FAILED"
If the check fails, STOP and hand off to bugfix-doctor.
Step 6: Connect Frontend and Backend (if backend exists)
If server/ was scaffolded:
- Ensure
client/.env.localcontainsNEXT_PUBLIC_API_URL=http://localhost:8000(create or append). - Start both dev servers (in separate terminals):
cd server && source .venv/bin/activate && uvicorn app.main:app --reload cd client && pnpm dev - Verify the frontend can reach the backend by loading the landing page in the browser and checking the network tab.
If frontend-only, just confirm pnpm dev is still running on http://localhost:3000.
Step 7: Summary and Handoff
Return exactly:
- Pipeline Result:
domain-to-spec: OK / Failedscaffold-frontend: OK / Failedscaffold-backend: OK / Skipped / Failed
- Files and Folders Created:
AGENTS.md(repo root)PRD.md(repo root)client/with X pagesserver/with X routes (if applicable)
- Live Endpoints:
- Frontend:
http://localhost:3000 - Backend:
http://localhost:8000(if applicable) - API Docs:
http://localhost:8000/docs(if applicable)
- Frontend:
- Next Skills to Run:
feature-builder: implement the first MVP feature.bugfix-doctor: if anything breaks.demo-prep: once the MVP is done and you are preparing to present.
Rules
- Never skip Step 1. The PRD drives every other step.
- Never run
scaffold-frontendorscaffold-backendwithout the preflight check passing. - Pause for user confirmation between Step 2 and Step 3. It is much easier to edit
PRD.mdonce than to rescaffold twice. - If any sub-skill fails, STOP the whole pipeline. Do not cascade broken state downstream.
- Never invent features, pages, or routes beyond what the user confirmed in the PRD.
- Always leave the dev servers running at the end so the user can see their app immediately.