coding-start — Overview & State Machine
coding-start moves an unimplemented project idea to a state that can be handed to Feature development. It clarifies direction, boundaries, and durable rules before producing project-level documents and a shallow Feature map. By default it writes no business code and creates no full scaffolding.
When it triggers
Enter only when the user explicitly asks to start or initialize a Greenfield project — including a single-Feature phrasing for a project that has no macro baseline yet.
Do not enter when:
- The directory has material business code, a runnable system, migrations, or historical behavior → route to
project-onboard. - The user wants to build/fix one Feature and a credible macro baseline exists → route to
feature-dev. - The user only wants discussion or evaluation, or has not authorized writes → interview or answer, but stop before formal artifacts.
If Greenfield vs Brownfield is unclear, ask one entry-classification question; never guess or overwrite existing content.
The state machine
Formal project documents are generated only after MACRO DESIGN READY. Interview summaries and candidate recommendations are not formal artifacts.
Non-negotiable boundaries
- No business implementations, business APIs, database tables, domain classes, pages, or components by default.
- No full application scaffolding by default.
- Macro design fixes direction, boundaries, rules, and constraints — it must not freeze DTOs, fields, classes, components, internal functions, message topics, cache keys, or pixel details.
- Must not mature a
DRAFTSpec or runSPEC READY/UI READY/TEST DESIGN READY. - Must not create Feature implementation Issues or PRs (those belong to
feature-dev). - Local-write authorization does not authorize
git commit/push, remote Issues/PRs, merge, or release. See Authorization.
Minimal non-business scaffolding (exception)
Only when explicitly requested, and only after MACRO DESIGN READY plus a separate scaffold-write authorization, may coding-start create minimal non-business scaffolding (package management, formatting, a test entry point, an empty app entry). It must contain no business logic, sample entities, placeholder endpoints, complete schema, or UI pages — and its real commands are synced into README/TESTING/AGENTS.
STOP conditions
The success path stops only when all are true:
- Project Interview is complete.
- Challenge Pass is complete and the Decision Authority confirmed the revised synthesis.
- Formal file writes had explicit local authorization (Git/remote not inferred).
- The Gate explicitly output
MACRO DESIGN READY. - Applicable macro documents exist, are consistent, and follow the language policy.
- Macro UX/UI documents exist for
UI: YES; the skip decision is recorded forUI: NO. AGENTS.mdcontains durable rules and the language policy.- Feature Map, dependency analysis, and Roadmap exist.
- Every Feature has a shallow DRAFT Spec.
- Exactly one authority-confirmed
NEXT(or aBLOCKED_HANDOFFwith zero). - No business code exists; any authorized minimal scaffold is verified. Self Review is complete and every finding is fixed.
On success, coding-start recommends handing the sole NEXT to feature-dev — it does not invoke it automatically.