Skip to content

Commit 1c0e7d1

Browse files
authored
Merge pull request #563 from danwashusen/plan-project-structure-fix
Refined wording in `plan-template.md` to ensure the Source Code section consistently works
2 parents 55555eb + df3e493 commit 1c0e7d1

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

templates/plan-template.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ scripts:
1515
1. Load feature spec from Input path
1616
→ If not found: ERROR "No feature spec at {path}"
1717
2. Fill Technical Context (scan for NEEDS CLARIFICATION)
18-
→ Detect Project Type from context (web=frontend+backend, mobile=app+api)
18+
→ Detect Project Type from file system structure or context (web=frontend+backend, mobile=app+api)
1919
→ Set Structure Decision based on project type
2020
3. Fill the Constitution Check section based on the content of the constitution document.
2121
4. Evaluate Constitution Check section below
@@ -69,8 +69,14 @@ specs/[###-feature]/
6969
```
7070

7171
### Source Code (repository root)
72+
<!--
73+
ACTION REQUIRED: Replace the placeholder tree below with the concrete layout
74+
for this feature. Delete unused options and expand the chosen structure with
75+
real paths (e.g., apps/admin, packages/something). The delivered plan must
76+
not include Option labels.
77+
-->
7278
```
73-
# Option 1: Single project (DEFAULT)
79+
# [REMOVE IF UNUSED] Option 1: Single project (DEFAULT)
7480
src/
7581
├── models/
7682
├── services/
@@ -82,7 +88,7 @@ tests/
8288
├── integration/
8389
└── unit/
8490
85-
# Option 2: Web application (when "frontend" + "backend" detected)
91+
# [REMOVE IF UNUSED] Option 2: Web application (when "frontend" + "backend" detected)
8692
backend/
8793
├── src/
8894
│ ├── models/
@@ -97,15 +103,16 @@ frontend/
97103
│ └── services/
98104
└── tests/
99105
100-
# Option 3: Mobile + API (when "iOS/Android" detected)
106+
# [REMOVE IF UNUSED] Option 3: Mobile + API (when "iOS/Android" detected)
101107
api/
102108
└── [same as backend above]
103109
104110
ios/ or android/
105-
└── [platform-specific structure]
111+
└── [platform-specific structure: feature modules, UI flows, platform tests]
106112
```
107113

108-
**Structure Decision**: [DEFAULT to Option 1 unless Technical Context indicates web/mobile app]
114+
**Structure Decision**: [Document the selected structure and reference the real
115+
directories captured above]
109116

110117
## Phase 0: Outline & Research
111118
1. **Extract unknowns from Technical Context** above:

0 commit comments

Comments
 (0)