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.
@@ -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` already exists:
14
- - **If it exists** → Print: "This project is already set up. Run `/flow:triage` to add milestones, or `/flow:spec` to spec the current one." and **STOP. Do not overwrite.**
15
- - **If it does NOT exist** → Continue with setup below.
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. Ask these questions (you may combine into 2-3 AskUserQuestion calls):
22
-
23
- **Question 1 — Project basics:**
24
- - "What is this project?" (one sentence description)
25
-
26
- **Question 2 — Tech stack:**
27
- - "What's the tech stack?" with options like:
28
- - "Next.js + TypeScript + PostgreSQL"
29
- - "Python + FastAPI + PostgreSQL"
30
- - "React + Node.js + MongoDB"
31
- - (Otheruser types custom)
32
-
33
- **Question 3 Verification commands:**
34
- - "What commands verify the build?" with options like:
35
- - "npx tsc --noEmit && npx biome check"
36
- - "pytest && mypy ."
37
- - "cargo build && cargo test"
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
+ - "Nolet'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
- If the user said yes to scanning:
67
- 1. Use Glob to find key directories: `src/`, `app/`, `lib/`, `components/`, `api/`, `pages/`, `utils/`, `types/`
68
- 2. Use Grep to find patterns: exports, route definitions, database models, config files
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
- - **Milestone:** [first milestone name]
82
- - **Phase:** Not started — run `/flow:spec` to build PRD
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
- | Phase | Name | Status |
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 milestone]
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
- ## Milestones
109
-
110
- | Milestone | Status | Phases |
111
- |-----------|--------|--------|
112
- | [first milestone] | Pending — needs `/flow:spec` | TBD |
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 milestone]
119
-
120
- **Goal:** [milestone goal from user]
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
- ## [milestone name]
127
-
128
- **Goal:** [milestone goal]
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: The first milestone gets status "Pending — needs `/flow:spec`". All subsequent milestones get status "Planned". Each milestone gets its own section with its goal.
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 from user]
141
-
142
- **Tech Stack:** [tech stack from user]
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 this file (CLAUDE.md)
147
- 2. Read `.planning/STATE.md` for current status
148
- 3. Read `.planning/ROADMAP.md` for milestone progress
149
- 4. Read active PRD from `.planning/prds/` for current milestone (if one exists)
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.** For non-trivial work, read the milestone's PRD in `.planning/prds/` before touching anything.
153
- - **Delegate immediately.** If a task touches 3+ files, spawn an agent team within your first 2 tool calls.
154
- - **Verify everything.** Run [verification commands from user] after agent work lands. Nothing is done until proven.
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 session notes (don't append), keep <80 lines
162
- 2. `.planning/ROADMAP.md` — update phase progress
163
- 3. `tasks/lessons.md` — add new lessons, refine existing ones
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 — never "read file.ts", say "read file.ts lines 50-120" -->
136
+ <!-- EXAMPLE: - **[agent context]** Always tell agents exactly which functions/lines to read -->
178
137
  ```
179
138
 
180
- **`.planning/prds/`** — Create this empty directory (use `mkdir -p` via Bash). PRDs are stored here per-milestone.
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 — milestone tracker
148
+ - .planning/ROADMAP.md — project tracker
191
149
  - tasks/lessons.md — active lessons (max 10)
192
- - .planning/prds/ — per-milestone PRD specs
193
- - .planning/archive/ — for completed milestones
150
+ - .planning/prds/ — per-project PRD specs
151
+ - .planning/archive/ — for completed projects
194
152
 
195
- Run `/flow:spec` to plan your first milestone.
153
+ Run `/flow:spec` to plan your first project.
196
154
  ```