flow-cc 0.7.1 → 0.8.1
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/CHANGELOG.md +30 -0
- package/README.md +20 -20
- package/VERSION +1 -1
- package/package.json +1 -1
- package/skills/flow-done.md +125 -122
- package/skills/flow-go.md +80 -128
- package/skills/flow-intro.md +28 -34
- package/skills/flow-setup.md +61 -103
- package/skills/flow-spec.md +90 -211
- package/skills/flow-status.md +37 -53
- package/skills/flow-task.md +46 -86
- package/skills/flow-triage.md +28 -34
- package/templates/CLAUDE.md.template +34 -34
- package/templates/ROADMAP.md.template +4 -4
- package/templates/STATE.md.template +6 -6
package/skills/flow-setup.md
CHANGED
|
@@ -10,64 +10,37 @@ You are executing the `/flow:setup` skill. This sets up the planning scaffolding
|
|
|
10
10
|
|
|
11
11
|
## Guard: Already Initialized
|
|
12
12
|
|
|
13
|
-
Check if `.planning/STATE.md`
|
|
14
|
-
- **
|
|
15
|
-
- **
|
|
13
|
+
Check if `.planning/STATE.md` exists:
|
|
14
|
+
- **Exists** → Print: "Already set up. Run `/flow:triage` to add projects, or `/flow:spec` to spec the current one." **STOP.**
|
|
15
|
+
- **Does not exist** → Continue.
|
|
16
16
|
|
|
17
17
|
---
|
|
18
18
|
|
|
19
19
|
## Step 1: Ask Setup Questions
|
|
20
20
|
|
|
21
|
-
Use AskUserQuestion to gather project info
|
|
22
|
-
|
|
23
|
-
**
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
**
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
- (Other — user types custom)
|
|
39
|
-
|
|
40
|
-
**Question 4 — Roadmap:**
|
|
41
|
-
- "Do you already have a roadmap or list of milestones?" with options:
|
|
42
|
-
- "Yes — I'll paste or describe them"
|
|
43
|
-
- "No — let's figure it out together"
|
|
44
|
-
|
|
45
|
-
**If user selects "Yes":**
|
|
46
|
-
- Accept free text (bullet list, paragraph, pasted doc — any format)
|
|
47
|
-
- Parse into milestones, each with a name + brief goal
|
|
48
|
-
- Print back: "Here's what I got:" followed by the parsed list (e.g., "Auth — user registration and login", "Dashboard — analytics and settings")
|
|
49
|
-
- Use AskUserQuestion to confirm: "Does this look right?" with options:
|
|
50
|
-
- "Yes — looks good"
|
|
51
|
-
- "Let me adjust" (user re-enters)
|
|
52
|
-
|
|
53
|
-
**If user selects "No" (guided):**
|
|
54
|
-
- Ask: "What's the first milestone?" (name + one-sentence goal)
|
|
55
|
-
- Then: "Any more milestones you can see right now? List them, or skip to add them later with `/flow:triage`." with options:
|
|
56
|
-
- "I have more to add" (user enters additional milestones)
|
|
57
|
-
- "That's it for now"
|
|
58
|
-
|
|
59
|
-
**Question 5 — Brownfield scan:**
|
|
60
|
-
- "Is this an existing codebase I should scan?" with options:
|
|
61
|
-
- "Yes — scan and catalog existing code"
|
|
62
|
-
- "No — greenfield project"
|
|
21
|
+
Use AskUserQuestion to gather project info (combine into 2-3 calls):
|
|
22
|
+
|
|
23
|
+
**Q1 — Project basics:** "What is this project?" (one sentence)
|
|
24
|
+
|
|
25
|
+
**Q2 — Tech stack:** Options: "Next.js + TypeScript + PostgreSQL" / "Python + FastAPI + PostgreSQL" / "React + Node.js + MongoDB" / Other
|
|
26
|
+
|
|
27
|
+
**Q3 — Verification commands:** Options: "npx tsc --noEmit && npx biome check" / "pytest && mypy ." / "cargo build && cargo test" / Other
|
|
28
|
+
|
|
29
|
+
**Q4 — Roadmap:** "Do you already have a roadmap or list of projects?"
|
|
30
|
+
- "Yes — I'll paste or describe them"
|
|
31
|
+
- "No — let's figure it out together"
|
|
32
|
+
|
|
33
|
+
**If Yes:** Accept free text, parse into projects (name + goal), print back, confirm via AskUserQuestion ("Does this look right?" / "Let me adjust").
|
|
34
|
+
|
|
35
|
+
**If No:** Ask "What's the first project?" (name + goal). Then: "Any more projects? List them, or skip to add later with `/flow:triage`." Options: "I have more to add" / "That's it for now"
|
|
36
|
+
|
|
37
|
+
**Q5 — Brownfield scan:** "Existing codebase to scan?" Options: "Yes — scan and catalog" / "No — greenfield"
|
|
63
38
|
|
|
64
39
|
## Step 2: Brownfield Scan (if requested)
|
|
65
40
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
3. Build a brief catalog of what exists (key components, patterns, data layer)
|
|
70
|
-
4. Include this in the CLAUDE.md Quick Context section
|
|
41
|
+
1. Glob for key directories: `src/`, `app/`, `lib/`, `components/`, `api/`, `pages/`, `utils/`, `types/`
|
|
42
|
+
2. Grep for patterns: exports, routes, DB models, config files
|
|
43
|
+
3. Build brief catalog; include in CLAUDE.md Quick Context
|
|
71
44
|
|
|
72
45
|
## Step 3: Create Project Files
|
|
73
46
|
|
|
@@ -78,89 +51,75 @@ Create these 5 files (create directories as needed):
|
|
|
78
51
|
# [Project Name] — Project State
|
|
79
52
|
|
|
80
53
|
## Current Position
|
|
81
|
-
- **
|
|
82
|
-
- **
|
|
54
|
+
- **Project:** [first project name]
|
|
55
|
+
- **Milestone:** Not started — run `/flow:spec` to build PRD
|
|
83
56
|
- **Branch:** main
|
|
84
57
|
- **Active PRD:** None — run `/flow:spec` to create
|
|
85
58
|
- **Last Session:** [today's date]
|
|
86
59
|
|
|
87
60
|
## Milestone Progress
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
| — | Run `/flow:spec` to define phases | — |
|
|
61
|
+
| Milestone | Name | Status |
|
|
62
|
+
|-----------|------|--------|
|
|
63
|
+
| — | Run `/flow:spec` to define milestones | — |
|
|
92
64
|
|
|
93
65
|
## What Was Built (This Session)
|
|
94
66
|
- Project initialized with `/flow:setup`
|
|
95
|
-
- Created: CLAUDE.md, STATE.md, ROADMAP.md, tasks/lessons.md
|
|
96
|
-
|
|
97
|
-
## Key Decisions
|
|
98
|
-
- (none yet)
|
|
99
67
|
|
|
100
68
|
## Next Actions
|
|
101
|
-
1. Run `/flow:spec` to interview and generate PRD for [first
|
|
69
|
+
1. Run `/flow:spec` to interview and generate PRD for [first project]
|
|
102
70
|
```
|
|
103
71
|
|
|
104
72
|
**`.planning/ROADMAP.md`:**
|
|
105
73
|
```
|
|
106
74
|
# [Project Name] — Roadmap
|
|
107
75
|
|
|
108
|
-
##
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
| [
|
|
113
|
-
[For each additional milestone:]
|
|
114
|
-
| [milestone name] | Planned | TBD |
|
|
76
|
+
## Projects
|
|
77
|
+
| Project | Status | Milestones |
|
|
78
|
+
|---------|--------|------------|
|
|
79
|
+
| [first project] | Pending — needs `/flow:spec` | TBD |
|
|
80
|
+
| [additional projects] | Planned | TBD |
|
|
115
81
|
|
|
116
82
|
---
|
|
117
83
|
|
|
118
|
-
## [first
|
|
119
|
-
|
|
120
|
-
**
|
|
121
|
-
|
|
122
|
-
**Phases:** Run `/flow:spec` to define implementation phases.
|
|
123
|
-
|
|
124
|
-
[For each additional milestone:]
|
|
84
|
+
## [first project]
|
|
85
|
+
**Goal:** [from user]
|
|
86
|
+
**Milestones:** Run `/flow:spec` to define.
|
|
125
87
|
|
|
126
|
-
## [
|
|
127
|
-
|
|
128
|
-
**
|
|
129
|
-
|
|
130
|
-
**Phases:** Run `/flow:spec` when this milestone is active.
|
|
88
|
+
## [additional projects]
|
|
89
|
+
**Goal:** [from user]
|
|
90
|
+
**Milestones:** Run `/flow:spec` when active.
|
|
131
91
|
```
|
|
132
92
|
|
|
133
|
-
Note:
|
|
93
|
+
Note: First project = "Pending — needs `/flow:spec`". Subsequent = "Planned". Each gets its own section.
|
|
134
94
|
|
|
135
95
|
**`CLAUDE.md`:**
|
|
136
96
|
```
|
|
137
97
|
# [Project Name] — Claude Code Instructions
|
|
138
98
|
|
|
139
99
|
## Quick Context
|
|
140
|
-
[Project description
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
[If brownfield: brief catalog of existing code]
|
|
100
|
+
[Project description]
|
|
101
|
+
**Tech Stack:** [from user]
|
|
102
|
+
[If brownfield: brief catalog]
|
|
144
103
|
|
|
145
104
|
### START (Every Session)
|
|
146
|
-
1. Read
|
|
147
|
-
2. Read `.planning/STATE.md`
|
|
148
|
-
3. Read `.planning/ROADMAP.md`
|
|
149
|
-
4. Read active PRD from `.planning/prds/`
|
|
105
|
+
1. Read CLAUDE.md
|
|
106
|
+
2. Read `.planning/STATE.md`
|
|
107
|
+
3. Read `.planning/ROADMAP.md`
|
|
108
|
+
4. Read active PRD from `.planning/prds/` (if exists)
|
|
150
109
|
|
|
151
110
|
## Execution Rules
|
|
152
|
-
- **Plan before building.**
|
|
153
|
-
- **Delegate immediately.**
|
|
154
|
-
- **Verify everything.** Run [verification commands
|
|
111
|
+
- **Plan before building.** Read the PRD in `.planning/prds/` before touching anything.
|
|
112
|
+
- **Delegate immediately.** 3+ files → spawn agent team within first 2 tool calls.
|
|
113
|
+
- **Verify everything.** Run [verification commands] after work lands.
|
|
155
114
|
|
|
156
115
|
## Git Workflow
|
|
157
116
|
- All changes via PR. Never commit directly to main.
|
|
158
117
|
- Branch naming: `fix/short-description` or `feat/short-description`
|
|
159
118
|
|
|
160
119
|
## Session-End Docs (MANDATORY)
|
|
161
|
-
1. `.planning/STATE.md` — replace
|
|
162
|
-
2. `.planning/ROADMAP.md` — update
|
|
163
|
-
3. `tasks/lessons.md` — add
|
|
120
|
+
1. `.planning/STATE.md` — replace (don't append), <80 lines
|
|
121
|
+
2. `.planning/ROADMAP.md` — update milestone progress
|
|
122
|
+
3. `tasks/lessons.md` — add/refine lessons
|
|
164
123
|
4. Commit doc updates to feature branch
|
|
165
124
|
|
|
166
125
|
## Critical Rules
|
|
@@ -174,12 +133,11 @@ Note: The first milestone gets status "Pending — needs `/flow:spec`". All subs
|
|
|
174
133
|
|
|
175
134
|
One-liner format: `- **[topic]** The rule`
|
|
176
135
|
|
|
177
|
-
<!-- EXAMPLE: - **[agent context]** Always tell agents exactly which functions/lines to read
|
|
136
|
+
<!-- EXAMPLE: - **[agent context]** Always tell agents exactly which functions/lines to read -->
|
|
178
137
|
```
|
|
179
138
|
|
|
180
|
-
**`.planning/prds/`** — Create
|
|
181
|
-
|
|
182
|
-
**`.planning/archive/`** — Create this empty directory (use `mkdir -p` via Bash).
|
|
139
|
+
**`.planning/prds/`** — Create empty directory (`mkdir -p`).
|
|
140
|
+
**`.planning/archive/`** — Create empty directory (`mkdir -p`).
|
|
183
141
|
|
|
184
142
|
## Step 4: Print Completion Message
|
|
185
143
|
|
|
@@ -187,10 +145,10 @@ One-liner format: `- **[topic]** The rule`
|
|
|
187
145
|
Project initialized:
|
|
188
146
|
- CLAUDE.md — project execution rules
|
|
189
147
|
- .planning/STATE.md — session GPS
|
|
190
|
-
- .planning/ROADMAP.md —
|
|
148
|
+
- .planning/ROADMAP.md — project tracker
|
|
191
149
|
- tasks/lessons.md — active lessons (max 10)
|
|
192
|
-
- .planning/prds/ — per-
|
|
193
|
-
- .planning/archive/ — for completed
|
|
150
|
+
- .planning/prds/ — per-project PRD specs
|
|
151
|
+
- .planning/archive/ — for completed projects
|
|
194
152
|
|
|
195
|
-
Run `/flow:spec` to plan your first
|
|
153
|
+
Run `/flow:spec` to plan your first project.
|
|
196
154
|
```
|