Skip to content

Commit b18ef20

Browse files
committed
Update template.
1 parent 5828e58 commit b18ef20

File tree

2 files changed

+9
-36
lines changed

2 files changed

+9
-36
lines changed

templates/commands/plan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Given the implementation details provided as an argument, do this:
1919
4. Execute the implementation plan template:
2020
- Load `/templates/plan-template.md` (already copied to IMPL_PLAN path)
2121
- Set Input path to FEATURE_SPEC
22-
- Run the Execution Flow (main) function steps 1-10
22+
- Run the Execution Flow (main) function steps 1-9
2323
- The template is self-contained and executable
2424
- Follow error handling and gate checks as specified
2525
- Let the template guide artifact generation in $SPECS_DIR:

templates/plan-template.md

Lines changed: 8 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,19 @@ scripts:
1717
2. Fill Technical Context (scan for NEEDS CLARIFICATION)
1818
→ Detect Project Type from context (web=frontend+backend, mobile=app+api)
1919
→ Set Structure Decision based on project type
20-
3. Evaluate Constitution Check section below
20+
3. Fill the Constitution Check section based on the content of the constitution document.
21+
4. Evaluate Constitution Check section below
2122
→ If violations exist: Document in Complexity Tracking
2223
→ If no justification possible: ERROR "Simplify approach first"
2324
→ Update Progress Tracking: Initial Constitution Check
24-
4. Execute Phase 0 → research.md
25+
5. Execute Phase 0 → research.md
2526
→ If NEEDS CLARIFICATION remain: ERROR "Resolve unknowns"
26-
5. Execute Phase 1 → contracts, data-model.md, quickstart.md, agent-specific template file (e.g., `CLAUDE.md` for Claude Code, `.github/copilot-instructions.md` for GitHub Copilot, or `GEMINI.md` for Gemini CLI).
27-
6. Re-evaluate Constitution Check section
27+
6. Execute Phase 1 → contracts, data-model.md, quickstart.md, agent-specific template file (e.g., `CLAUDE.md` for Claude Code, `.github/copilot-instructions.md` for GitHub Copilot, or `GEMINI.md` for Gemini CLI).
28+
7. Re-evaluate Constitution Check section
2829
→ If new violations: Refactor design, return to Phase 1
2930
→ Update Progress Tracking: Post-Design Constitution Check
30-
7. Plan Phase 2 → Describe task generation approach (DO NOT create tasks.md)
31-
8. STOP - Ready for /tasks command
31+
8. Plan Phase 2 → Describe task generation approach (DO NOT create tasks.md)
32+
9. STOP - Ready for /tasks command
3233
```
3334

3435
**IMPORTANT**: The /plan command STOPS at step 7. Phases 2-4 are executed by other commands:
@@ -52,35 +53,7 @@ scripts:
5253
## Constitution Check
5354
*GATE: Must pass before Phase 0 research. Re-check after Phase 1 design.*
5455

55-
**Simplicity**:
56-
- Projects: [#] (max 3 - e.g., api, cli, tests)
57-
- Using framework directly? (no wrapper classes)
58-
- Single data model? (no DTOs unless serialization differs)
59-
- Avoiding patterns? (no Repository/UoW without proven need)
60-
61-
**Architecture**:
62-
- EVERY feature as library? (no direct app code)
63-
- Libraries listed: [name + purpose for each]
64-
- CLI per library: [commands with --help/--version/--format]
65-
- Library docs: llms.txt format planned?
66-
67-
**Testing (NON-NEGOTIABLE)**:
68-
- RED-GREEN-Refactor cycle enforced? (test MUST fail first)
69-
- Git commits show tests before implementation?
70-
- Order: Contract→Integration→E2E→Unit strictly followed?
71-
- Real dependencies used? (actual DBs, not mocks)
72-
- Integration tests for: new libraries, contract changes, shared schemas?
73-
- FORBIDDEN: Implementation before test, skipping RED phase
74-
75-
**Observability**:
76-
- Structured logging included?
77-
- Frontend logs → backend? (unified stream)
78-
- Error context sufficient?
79-
80-
**Versioning**:
81-
- Version number assigned? (MAJOR.MINOR.BUILD)
82-
- BUILD increments on every change?
83-
- Breaking changes handled? (parallel tests, migration plan)
56+
[Gates determined based on constitution file]
8457

8558
## Project Structure
8659

0 commit comments

Comments
 (0)