get-shit-done-cc 1.3.8 → 1.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/commands/gsd/new-project.md +105 -13
- package/commands/gsd/progress.md +1 -1
- package/get-shit-done/templates/project.md +128 -151
- package/get-shit-done/templates/state.md +61 -77
- package/get-shit-done/workflows/complete-milestone.md +229 -75
- package/get-shit-done/workflows/create-milestone.md +1 -1
- package/get-shit-done/workflows/create-roadmap.md +34 -23
- package/get-shit-done/workflows/execute-phase.md +20 -1
- package/get-shit-done/workflows/resume-project.md +17 -8
- package/get-shit-done/workflows/transition.md +184 -126
- package/package.json +1 -1
|
@@ -8,24 +8,28 @@ allowed-tools:
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
<objective>
|
|
11
|
+
|
|
11
12
|
Initialize a new project through comprehensive context gathering.
|
|
12
13
|
|
|
13
14
|
This is the most leveraged moment in any project. Deep questioning here means better plans, better execution, better outcomes.
|
|
14
15
|
|
|
15
16
|
Creates `.planning/` with PROJECT.md and config.json.
|
|
17
|
+
|
|
16
18
|
</objective>
|
|
17
19
|
|
|
18
20
|
<execution_context>
|
|
21
|
+
|
|
19
22
|
@~/.claude/get-shit-done/references/principles.md
|
|
20
23
|
@~/.claude/get-shit-done/references/questioning.md
|
|
21
24
|
@~/.claude/get-shit-done/templates/project.md
|
|
22
25
|
@~/.claude/get-shit-done/templates/config.json
|
|
23
|
-
</execution_context>
|
|
24
26
|
|
|
27
|
+
</execution_context>
|
|
25
28
|
|
|
26
29
|
<process>
|
|
27
30
|
|
|
28
31
|
<step name="setup">
|
|
32
|
+
|
|
29
33
|
**MANDATORY FIRST STEP — Execute these checks before ANY user interaction:**
|
|
30
34
|
|
|
31
35
|
1. **Abort if project exists:**
|
|
@@ -53,9 +57,11 @@ Creates `.planning/` with PROJECT.md and config.json.
|
|
|
53
57
|
```
|
|
54
58
|
|
|
55
59
|
**You MUST run all bash commands above using the Bash tool before proceeding.**
|
|
60
|
+
|
|
56
61
|
</step>
|
|
57
62
|
|
|
58
63
|
<step name="brownfield_offer">
|
|
64
|
+
|
|
59
65
|
**If existing code detected and .planning/codebase/ doesn't exist:**
|
|
60
66
|
|
|
61
67
|
Check the results from setup step:
|
|
@@ -66,8 +72,8 @@ Use AskUserQuestion:
|
|
|
66
72
|
- header: "Existing Code"
|
|
67
73
|
- question: "I detected existing code in this directory. Would you like to map the codebase first?"
|
|
68
74
|
- options:
|
|
69
|
-
- "Map codebase first"
|
|
70
|
-
- "Skip mapping"
|
|
75
|
+
- "Map codebase first" — Run /gsd:map-codebase to understand existing architecture (Recommended)
|
|
76
|
+
- "Skip mapping" — Proceed with project initialization
|
|
71
77
|
|
|
72
78
|
**If "Map codebase first":**
|
|
73
79
|
```
|
|
@@ -78,10 +84,12 @@ Exit command.
|
|
|
78
84
|
**If "Skip mapping":** Continue to question step.
|
|
79
85
|
|
|
80
86
|
**If no existing code detected OR codebase already mapped:** Continue to question step.
|
|
87
|
+
|
|
81
88
|
</step>
|
|
82
89
|
|
|
83
90
|
<step name="question">
|
|
84
|
-
|
|
91
|
+
|
|
92
|
+
**1. Open (FREEFORM — do NOT use AskUserQuestion):**
|
|
85
93
|
|
|
86
94
|
Ask inline: "What do you want to build?"
|
|
87
95
|
|
|
@@ -121,22 +129,97 @@ Use AskUserQuestion:
|
|
|
121
129
|
- header: "Ready?"
|
|
122
130
|
- question: "Ready to create PROJECT.md, or explore more?"
|
|
123
131
|
- options (ALL THREE REQUIRED):
|
|
124
|
-
- "Create PROJECT.md"
|
|
125
|
-
- "Ask more questions"
|
|
126
|
-
- "Let me add context"
|
|
132
|
+
- "Create PROJECT.md" — Finalize and continue
|
|
133
|
+
- "Ask more questions" — I'll dig deeper
|
|
134
|
+
- "Let me add context" — You have more to share
|
|
127
135
|
|
|
128
136
|
If "Ask more questions" → check coverage gaps from `questioning.md` → return to step 2.
|
|
129
137
|
If "Let me add context" → receive input via their response → return to step 2.
|
|
130
138
|
Loop until "Create PROJECT.md" selected.
|
|
139
|
+
|
|
131
140
|
</step>
|
|
132
141
|
|
|
133
142
|
<step name="project">
|
|
143
|
+
|
|
134
144
|
Synthesize all context into `.planning/PROJECT.md` using the template from `templates/project.md`.
|
|
135
145
|
|
|
146
|
+
**For greenfield projects:**
|
|
147
|
+
|
|
148
|
+
Initialize requirements as hypotheses:
|
|
149
|
+
|
|
150
|
+
```markdown
|
|
151
|
+
## Requirements
|
|
152
|
+
|
|
153
|
+
### Validated
|
|
154
|
+
|
|
155
|
+
(None yet — ship to validate)
|
|
156
|
+
|
|
157
|
+
### Active
|
|
158
|
+
|
|
159
|
+
- [ ] [Requirement 1]
|
|
160
|
+
- [ ] [Requirement 2]
|
|
161
|
+
- [ ] [Requirement 3]
|
|
162
|
+
|
|
163
|
+
### Out of Scope
|
|
164
|
+
|
|
165
|
+
- [Exclusion 1] — [why]
|
|
166
|
+
- [Exclusion 2] — [why]
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
All Active requirements are hypotheses until shipped and validated.
|
|
170
|
+
|
|
171
|
+
**For brownfield projects (codebase map exists):**
|
|
172
|
+
|
|
173
|
+
Infer Validated requirements from existing code:
|
|
174
|
+
|
|
175
|
+
1. Read `.planning/codebase/ARCHITECTURE.md` and `STACK.md`
|
|
176
|
+
2. Identify what the codebase already does
|
|
177
|
+
3. These become the initial Validated set
|
|
178
|
+
|
|
179
|
+
```markdown
|
|
180
|
+
## Requirements
|
|
181
|
+
|
|
182
|
+
### Validated
|
|
183
|
+
|
|
184
|
+
- ✓ [Existing capability 1] — existing
|
|
185
|
+
- ✓ [Existing capability 2] — existing
|
|
186
|
+
- ✓ [Existing capability 3] — existing
|
|
187
|
+
|
|
188
|
+
### Active
|
|
189
|
+
|
|
190
|
+
- [ ] [New requirement 1]
|
|
191
|
+
- [ ] [New requirement 2]
|
|
192
|
+
|
|
193
|
+
### Out of Scope
|
|
194
|
+
|
|
195
|
+
- [Exclusion 1] — [why]
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
**Key Decisions:**
|
|
199
|
+
|
|
200
|
+
Initialize with any decisions made during questioning:
|
|
201
|
+
|
|
202
|
+
```markdown
|
|
203
|
+
## Key Decisions
|
|
204
|
+
|
|
205
|
+
| Decision | Rationale | Outcome |
|
|
206
|
+
|----------|-----------|---------|
|
|
207
|
+
| [Choice from questioning] | [Why] | — Pending |
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
**Last updated footer:**
|
|
211
|
+
|
|
212
|
+
```markdown
|
|
213
|
+
---
|
|
214
|
+
*Last updated: [date] after initialization*
|
|
215
|
+
```
|
|
216
|
+
|
|
136
217
|
Do not compress. Capture everything gathered.
|
|
218
|
+
|
|
137
219
|
</step>
|
|
138
220
|
|
|
139
221
|
<step name="mode">
|
|
222
|
+
|
|
140
223
|
Ask workflow mode preference:
|
|
141
224
|
|
|
142
225
|
Use AskUserQuestion:
|
|
@@ -144,13 +227,15 @@ Use AskUserQuestion:
|
|
|
144
227
|
- header: "Mode"
|
|
145
228
|
- question: "How do you want to work?"
|
|
146
229
|
- options:
|
|
147
|
-
- "Interactive"
|
|
148
|
-
- "YOLO"
|
|
230
|
+
- "Interactive" — Confirm at each step
|
|
231
|
+
- "YOLO" — Auto-approve, just execute
|
|
149
232
|
|
|
150
233
|
Create `.planning/config.json` with chosen mode using `templates/config.json` structure.
|
|
234
|
+
|
|
151
235
|
</step>
|
|
152
236
|
|
|
153
237
|
<step name="commit">
|
|
238
|
+
|
|
154
239
|
```bash
|
|
155
240
|
git add .planning/PROJECT.md .planning/config.json
|
|
156
241
|
git commit -m "$(cat <<'EOF'
|
|
@@ -158,14 +243,15 @@ docs: initialize [project-name]
|
|
|
158
243
|
|
|
159
244
|
[One-liner from PROJECT.md]
|
|
160
245
|
|
|
161
|
-
Creates PROJECT.md with
|
|
246
|
+
Creates PROJECT.md with requirements and constraints.
|
|
162
247
|
EOF
|
|
163
248
|
)"
|
|
164
|
-
|
|
165
249
|
```
|
|
250
|
+
|
|
166
251
|
</step>
|
|
167
252
|
|
|
168
253
|
<step name="done">
|
|
254
|
+
|
|
169
255
|
Present completion with next steps (see ~/.claude/get-shit-done/references/continuation-format.md):
|
|
170
256
|
|
|
171
257
|
```
|
|
@@ -187,19 +273,25 @@ Project initialized:
|
|
|
187
273
|
|
|
188
274
|
---
|
|
189
275
|
```
|
|
276
|
+
|
|
190
277
|
</step>
|
|
191
278
|
|
|
192
279
|
</process>
|
|
193
280
|
|
|
194
281
|
<output>
|
|
282
|
+
|
|
195
283
|
- `.planning/PROJECT.md`
|
|
196
284
|
- `.planning/config.json`
|
|
285
|
+
|
|
197
286
|
</output>
|
|
198
287
|
|
|
199
288
|
<success_criteria>
|
|
289
|
+
|
|
200
290
|
- [ ] Deep questioning completed (not rushed)
|
|
201
|
-
- [ ] PROJECT.md captures full context
|
|
291
|
+
- [ ] PROJECT.md captures full context with evolutionary structure
|
|
292
|
+
- [ ] Requirements initialized as hypotheses (greenfield) or with inferred Validated (brownfield)
|
|
293
|
+
- [ ] Key Decisions table initialized
|
|
202
294
|
- [ ] config.json has workflow mode
|
|
203
295
|
- [ ] All committed to git
|
|
296
|
+
|
|
204
297
|
</success_criteria>
|
|
205
|
-
```
|
package/commands/gsd/progress.md
CHANGED
|
@@ -38,7 +38,7 @@ If missing STATE.md or ROADMAP.md: inform what's missing, suggest running `/gsd:
|
|
|
38
38
|
|
|
39
39
|
- Read `.planning/STATE.md` for living memory (position, decisions, issues)
|
|
40
40
|
- Read `.planning/ROADMAP.md` for phase structure and objectives
|
|
41
|
-
- Read `.planning/PROJECT.md` for
|
|
41
|
+
- Read `.planning/PROJECT.md` for current state (What This Is, Core Value, Requirements)
|
|
42
42
|
</step>
|
|
43
43
|
|
|
44
44
|
<step name="recent">
|
|
@@ -1,207 +1,184 @@
|
|
|
1
1
|
# PROJECT.md Template
|
|
2
2
|
|
|
3
|
-
Template for `.planning/PROJECT.md`
|
|
3
|
+
Template for `.planning/PROJECT.md` — the living project context document.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
<template>
|
|
6
6
|
|
|
7
7
|
```markdown
|
|
8
8
|
# [Project Name]
|
|
9
9
|
|
|
10
|
-
##
|
|
10
|
+
## What This Is
|
|
11
11
|
|
|
12
|
-
[
|
|
13
|
-
Use the user's language and framing.
|
|
14
|
-
This should feel like the user explaining their project to a smart collaborator.]
|
|
12
|
+
[Current accurate description — 2-3 sentences. What does this product do and who is it for?
|
|
13
|
+
Use the user's language and framing. Update whenever reality drifts from this description.]
|
|
15
14
|
|
|
16
|
-
##
|
|
15
|
+
## Core Value
|
|
17
16
|
|
|
18
|
-
[
|
|
19
|
-
|
|
20
|
-
Include the pain, the gap, or the opportunity that makes this worth building.]
|
|
17
|
+
[The ONE thing that matters most. If everything else fails, this must work.
|
|
18
|
+
One sentence that drives prioritization when tradeoffs arise.]
|
|
21
19
|
|
|
22
|
-
##
|
|
20
|
+
## Requirements
|
|
23
21
|
|
|
24
|
-
|
|
22
|
+
### Validated
|
|
25
23
|
|
|
26
|
-
|
|
27
|
-
- [ ] [Measurable outcome 2 - specific, verifiable]
|
|
28
|
-
- [ ] [Measurable outcome 3 - specific, verifiable]
|
|
29
|
-
- [ ] [Add as many as genuinely needed]
|
|
24
|
+
<!-- Shipped and confirmed valuable. -->
|
|
30
25
|
|
|
31
|
-
|
|
26
|
+
(None yet — ship to validate)
|
|
32
27
|
|
|
33
|
-
###
|
|
34
|
-
- [Feature/capability 1]
|
|
35
|
-
- [Feature/capability 2]
|
|
36
|
-
- [Feature/capability 3]
|
|
28
|
+
### Active
|
|
37
29
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
- [
|
|
41
|
-
- [
|
|
30
|
+
<!-- Current scope. Building toward these. -->
|
|
31
|
+
|
|
32
|
+
- [ ] [Requirement 1]
|
|
33
|
+
- [ ] [Requirement 2]
|
|
34
|
+
- [ ] [Requirement 3]
|
|
35
|
+
|
|
36
|
+
### Out of Scope
|
|
37
|
+
|
|
38
|
+
<!-- Explicit boundaries. Includes reasoning to prevent re-adding. -->
|
|
39
|
+
|
|
40
|
+
- [Exclusion 1] — [why]
|
|
41
|
+
- [Exclusion 2] — [why]
|
|
42
42
|
|
|
43
43
|
## Context
|
|
44
44
|
|
|
45
45
|
[Background information that informs implementation:
|
|
46
|
-
-
|
|
46
|
+
- Technical environment or ecosystem
|
|
47
47
|
- Relevant prior work or experience
|
|
48
|
-
-
|
|
49
|
-
-
|
|
48
|
+
- User research or feedback themes
|
|
49
|
+
- Known issues to address]
|
|
50
50
|
|
|
51
51
|
## Constraints
|
|
52
52
|
|
|
53
|
-
- **[
|
|
54
|
-
- **[
|
|
55
|
-
- **[Constraint type]**: [What] - [Why]
|
|
56
|
-
|
|
57
|
-
Common types: Tech stack, Timeline, Resources, Dependencies, Compatibility, Performance, Security
|
|
53
|
+
- **[Type]**: [What] — [Why]
|
|
54
|
+
- **[Type]**: [What] — [Why]
|
|
58
55
|
|
|
59
|
-
|
|
56
|
+
Common types: Tech stack, Timeline, Budget, Dependencies, Compatibility, Performance, Security
|
|
60
57
|
|
|
61
|
-
Key
|
|
58
|
+
## Key Decisions
|
|
62
59
|
|
|
63
|
-
|
|
64
|
-
|----------|--------|-----------|
|
|
65
|
-
| [Area/Topic] | [What we decided] | [Why this choice] |
|
|
66
|
-
| [Area/Topic] | [What we decided] | [Why this choice] |
|
|
60
|
+
<!-- Decisions that constrain future work. Add throughout project lifecycle. -->
|
|
67
61
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
- [ ] [Question 1 - known unknown to resolve]
|
|
73
|
-
- [ ] [Question 2 - decision to make later]
|
|
74
|
-
- [ ] [Question 3 - area needing research]
|
|
62
|
+
| Decision | Rationale | Outcome |
|
|
63
|
+
|----------|-----------|---------|
|
|
64
|
+
| [Choice] | [Why] | [✓ Good / ⚠️ Revisit / — Pending] |
|
|
75
65
|
|
|
76
66
|
---
|
|
77
|
-
*
|
|
67
|
+
*Last updated: [date] after [trigger]*
|
|
78
68
|
```
|
|
79
69
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
After shipping v1.0, update PROJECT.md to include current state:
|
|
83
|
-
|
|
84
|
-
```markdown
|
|
85
|
-
# [Project Name]
|
|
86
|
-
|
|
87
|
-
## Current State (Updated: YYYY-MM-DD)
|
|
88
|
-
|
|
89
|
-
**Shipped:** v[X.Y] [Name] (YYYY-MM-DD)
|
|
90
|
-
**Status:** [Production / Beta / Internal / Live with users]
|
|
91
|
-
**Users:** [If known: "~500 downloads, 50 DAU" or "Internal use only" or "N/A"]
|
|
92
|
-
**Feedback:** [Key themes from user feedback, or "Initial release, gathering feedback"]
|
|
93
|
-
|
|
94
|
-
**Codebase:**
|
|
95
|
-
- [X,XXX] lines of [primary language]
|
|
96
|
-
- [Key tech stack: framework, platform, deployment target]
|
|
97
|
-
- [Notable dependencies or architecture]
|
|
98
|
-
|
|
99
|
-
**Known Issues:**
|
|
100
|
-
- [Issue 1 from v1.x that needs addressing]
|
|
101
|
-
- [Issue 2]
|
|
102
|
-
- [Or "None" if clean slate]
|
|
103
|
-
|
|
104
|
-
## v[Next] Goals
|
|
105
|
-
|
|
106
|
-
**Vision:** [What's the goal for this next iteration?]
|
|
107
|
-
|
|
108
|
-
**Motivation:**
|
|
109
|
-
- [Why this work matters now]
|
|
110
|
-
- [User feedback driving it]
|
|
111
|
-
- [Technical debt or improvements needed]
|
|
112
|
-
|
|
113
|
-
**Scope (v[X.Y]):**
|
|
114
|
-
- [Feature/improvement 1]
|
|
115
|
-
- [Feature/improvement 2]
|
|
116
|
-
- [Feature/improvement 3]
|
|
70
|
+
</template>
|
|
117
71
|
|
|
118
|
-
|
|
119
|
-
- [ ] [Measurable outcome 1]
|
|
120
|
-
- [ ] [Measurable outcome 2]
|
|
121
|
-
- [ ] [Measurable outcome 3]
|
|
122
|
-
|
|
123
|
-
**Not Building (this version):**
|
|
124
|
-
- [Not doing X in this version]
|
|
125
|
-
- [Not doing Y in this version]
|
|
126
|
-
|
|
127
|
-
## Constraints
|
|
128
|
-
|
|
129
|
-
- **[Constraint type]**: [What] - [Why]
|
|
130
|
-
- **[Constraint type]**: [What] - [Why]
|
|
72
|
+
<guidelines>
|
|
131
73
|
|
|
132
|
-
|
|
74
|
+
**What This Is:**
|
|
75
|
+
- Current accurate description of the product
|
|
76
|
+
- 2-3 sentences capturing what it does and who it's for
|
|
77
|
+
- Use the user's words and framing
|
|
78
|
+
- Update when the product evolves beyond this description
|
|
79
|
+
|
|
80
|
+
**Core Value:**
|
|
81
|
+
- The single most important thing
|
|
82
|
+
- Everything else can fail; this cannot
|
|
83
|
+
- Drives prioritization when tradeoffs arise
|
|
84
|
+
- Rarely changes; if it does, it's a significant pivot
|
|
85
|
+
|
|
86
|
+
**Requirements — Validated:**
|
|
87
|
+
- Requirements that shipped and proved valuable
|
|
88
|
+
- Format: `- ✓ [Requirement] — [version/phase]`
|
|
89
|
+
- These are locked — changing them requires explicit discussion
|
|
90
|
+
|
|
91
|
+
**Requirements — Active:**
|
|
92
|
+
- Current scope being built toward
|
|
93
|
+
- These are hypotheses until shipped and validated
|
|
94
|
+
- Move to Validated when shipped, Out of Scope if invalidated
|
|
95
|
+
|
|
96
|
+
**Requirements — Out of Scope:**
|
|
97
|
+
- Explicit boundaries on what we're not building
|
|
98
|
+
- Always include reasoning (prevents re-adding later)
|
|
99
|
+
- Includes: considered and rejected, deferred to future, explicitly excluded
|
|
100
|
+
|
|
101
|
+
**Context:**
|
|
102
|
+
- Background that informs implementation decisions
|
|
103
|
+
- Technical environment, prior work, user feedback
|
|
104
|
+
- Known issues or technical debt to address
|
|
105
|
+
- Update as new context emerges
|
|
133
106
|
|
|
134
|
-
|
|
135
|
-
-
|
|
107
|
+
**Constraints:**
|
|
108
|
+
- Hard limits on implementation choices
|
|
109
|
+
- Tech stack, timeline, budget, compatibility, dependencies
|
|
110
|
+
- Include the "why" — constraints without rationale get questioned
|
|
111
|
+
|
|
112
|
+
**Key Decisions:**
|
|
113
|
+
- Significant choices that affect future work
|
|
114
|
+
- Add decisions as they're made throughout the project
|
|
115
|
+
- Track outcome when known:
|
|
116
|
+
- ✓ Good — decision proved correct
|
|
117
|
+
- ⚠️ Revisit — decision may need reconsideration
|
|
118
|
+
- — Pending — too early to evaluate
|
|
119
|
+
|
|
120
|
+
**Last Updated:**
|
|
121
|
+
- Always note when and why the document was updated
|
|
122
|
+
- Format: `after Phase 2` or `after v1.0 milestone`
|
|
123
|
+
- Triggers review of whether content is still accurate
|
|
136
124
|
|
|
137
|
-
|
|
125
|
+
</guidelines>
|
|
138
126
|
|
|
139
|
-
<
|
|
140
|
-
<summary>Original Vision (v1.0 - Archived)</summary>
|
|
127
|
+
<evolution>
|
|
141
128
|
|
|
142
|
-
|
|
129
|
+
PROJECT.md evolves throughout the project lifecycle.
|
|
143
130
|
|
|
144
|
-
|
|
131
|
+
**After each phase transition:**
|
|
132
|
+
1. Requirements invalidated? → Move to Out of Scope with reason
|
|
133
|
+
2. Requirements validated? → Move to Validated with phase reference
|
|
134
|
+
3. New requirements emerged? → Add to Active
|
|
135
|
+
4. Decisions to log? → Add to Key Decisions
|
|
136
|
+
5. "What This Is" still accurate? → Update if drifted
|
|
145
137
|
|
|
146
|
-
|
|
138
|
+
**After each milestone:**
|
|
139
|
+
1. Full review of all sections
|
|
140
|
+
2. Core Value check — still the right priority?
|
|
141
|
+
3. Audit Out of Scope — reasons still valid?
|
|
142
|
+
4. Update Context with current state (users, feedback, metrics)
|
|
147
143
|
|
|
148
|
-
|
|
144
|
+
</evolution>
|
|
149
145
|
|
|
150
|
-
|
|
146
|
+
<brownfield>
|
|
151
147
|
|
|
152
|
-
|
|
153
|
-
- [x] [Outcome 2] - Achieved
|
|
154
|
-
- [x] [Outcome 3] - Achieved
|
|
148
|
+
For existing codebases:
|
|
155
149
|
|
|
156
|
-
|
|
150
|
+
1. **Map codebase first** via `/gsd:map-codebase`
|
|
157
151
|
|
|
158
|
-
|
|
159
|
-
-
|
|
152
|
+
2. **Infer Validated requirements** from existing code:
|
|
153
|
+
- What does the codebase actually do?
|
|
154
|
+
- What patterns are established?
|
|
155
|
+
- What's clearly working and relied upon?
|
|
160
156
|
|
|
161
|
-
|
|
162
|
-
-
|
|
157
|
+
3. **Gather Active requirements** from user:
|
|
158
|
+
- Present inferred current state
|
|
159
|
+
- Ask what they want to build next
|
|
163
160
|
|
|
164
|
-
|
|
161
|
+
4. **Initialize:**
|
|
162
|
+
- Validated = inferred from existing code
|
|
163
|
+
- Active = user's goals for this work
|
|
164
|
+
- Out of Scope = boundaries user specifies
|
|
165
|
+
- Context = includes current codebase state
|
|
165
166
|
|
|
166
|
-
|
|
167
|
+
</brownfield>
|
|
167
168
|
|
|
168
|
-
|
|
169
|
+
<state_reference>
|
|
169
170
|
|
|
170
|
-
|
|
171
|
+
STATE.md references PROJECT.md:
|
|
171
172
|
|
|
172
|
-
|
|
173
|
+
```markdown
|
|
174
|
+
## Project Reference
|
|
173
175
|
|
|
174
|
-
|
|
176
|
+
See: .planning/PROJECT.md (updated [date])
|
|
175
177
|
|
|
176
|
-
|
|
178
|
+
**Core value:** [One-liner from Core Value section]
|
|
179
|
+
**Current focus:** [Current phase name]
|
|
177
180
|
```
|
|
178
181
|
|
|
179
|
-
|
|
180
|
-
**Greenfield:**
|
|
181
|
-
- Don't compress - capture everything from questioning
|
|
182
|
-
- Use user's words - preserve their language and framing
|
|
183
|
-
- Be specific - vague inputs create vague outputs
|
|
184
|
-
- Include rationale - "what" without "why" loses context
|
|
185
|
-
- Mark unknowns - open questions are valuable, not failures
|
|
186
|
-
|
|
187
|
-
**Brownfield:**
|
|
188
|
-
- Current State shows real-world context (shipped, users, feedback)
|
|
189
|
-
- v[Next] Goals focuses on the upcoming work
|
|
190
|
-
- Original Vision collapsed in `<details>` for reference
|
|
191
|
-
- Checkboxes marked [x] for achieved goals
|
|
192
|
-
- This makes all plans brownfield-aware automatically
|
|
193
|
-
</guidelines>
|
|
194
|
-
|
|
195
|
-
<state_summary>
|
|
196
|
-
When creating STATE.md, extract a summary from PROJECT.md:
|
|
197
|
-
|
|
198
|
-
**Building:** [One-liner from Vision]
|
|
199
|
-
|
|
200
|
-
**Core requirements:**
|
|
201
|
-
- [Top 3 from Success Criteria]
|
|
202
|
-
|
|
203
|
-
**Constraints:**
|
|
204
|
-
- [Key constraints]
|
|
182
|
+
This ensures Claude reads current PROJECT.md context.
|
|
205
183
|
|
|
206
|
-
|
|
207
|
-
</state_summary>
|
|
184
|
+
</state_reference>
|