flow-cc 0.6.1 → 0.7.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 CHANGED
@@ -5,6 +5,32 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.7.1] - 2026-02-14
9
+
10
+ ### Fixed
11
+ - Installer now cleans stale skill files from previous versions (e.g., `milestone.md`, `init.md` left behind after removal)
12
+
13
+ ## [0.7.0] - 2026-02-14
14
+
15
+ ### Changed
16
+ - **BREAKING:** Removed `/flow:milestone` — its behavior is now part of `/flow:triage`
17
+ - `/flow:triage` gains "Milestone" category — brain dump items that are milestone-sized get added to ROADMAP.md with status "Planned", with optional Linear project creation
18
+ - Dropped version number convention from new milestones — milestones use descriptive names only (e.g., "Student Leasing & Rate Modeling" instead of "v18.0")
19
+ - `/flow:setup` ROADMAP template drops "Version" column, STATE template drops `(v1)` prefix
20
+ - `/flow:spec` PRD slug derivation no longer expects version prefixes
21
+ - `/flow:done` archive paths use milestone slug instead of version number, "all milestones complete" routes to `/flow:triage`
22
+ - `/flow:status` routes to `/flow:triage` (not `/flow:milestone`) when no next milestone exists
23
+ - `/flow:intro` updated lifecycle: `triage → spec → go → done`
24
+ - Simplified mental model: 4 core commands (triage, spec, go, done) + 4 utility (setup, task, status, update)
25
+
26
+ ### Removed
27
+ - `flow-milestone.md` skill file — deleted entirely
28
+
29
+ ## [0.6.1] - 2026-02-14
30
+
31
+ ### Fixed
32
+ - VERSION file now syncs with package.json on publish (was showing 0.5.8 in install banner)
33
+
8
34
  ## [0.6.0] - 2026-02-14
9
35
 
10
36
  ### New
package/README.md CHANGED
@@ -1,202 +1,229 @@
1
- <p align="center">
2
- <h1 align="center">Flow</h1>
3
- <p align="center">A structured workflow system for Claude Code.<br/>Spec interviews. Agent-team execution. Session handoffs. Compounding knowledge.</p>
4
- </p>
5
-
6
- <p align="center">
7
- <a href="https://www.npmjs.com/package/flow-cc"><img src="https://img.shields.io/npm/v/flow-cc.svg" alt="npm version"></a>
8
- <a href="https://github.com/troyhoffman-oss/flow-plugin/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/flow-cc.svg" alt="license"></a>
9
- <a href="https://www.npmjs.com/package/flow-cc"><img src="https://img.shields.io/npm/dm/flow-cc.svg" alt="downloads"></a>
10
- </p>
11
-
12
- ---
13
-
14
- ## Install
15
-
16
- ```bash
17
- npx flow-cc
18
- ```
19
-
20
- One command. Installs skills, hooks, templates, and configures your statusLine. Works on Mac, Linux, and Windows.
21
-
22
- ---
23
-
24
- ## Why Flow?
25
-
26
- Claude Code is powerful but unstructured. Without a system, you lose context between sessions, repeat mistakes, and waste tokens re-explaining what you've already decided.
27
-
28
- Flow gives Claude Code a **memory system and execution framework**:
29
-
30
- - **Spec interviews** extract decisions upfront so agents execute instead of guessing
31
- - **Per-milestone PRDs** in `.planning/prds/` become execution contracts — spec future milestones in parallel
32
- - **Wave-based agent teams** execute phases autonomously with built-in verification
33
- - **Session handoffs** preserve full context across fresh sessions — no more "where was I?"
34
- - **Lessons compound** — mistakes get captured, refined, and promoted into permanent rules
35
-
36
- ---
37
-
38
- ## How It Works
39
-
40
- **One-time setup**, then a repeating build cycle:
41
-
42
- ```
43
- /flow:setup → /flow:spec → /flow:go → /flow:done
44
- (once, (once per (once per (end of session,
45
- captures milestone) phase) auto-transitions
46
- full roadmap) between milestones)
47
- ```
48
-
49
- 1. **`/flow:setup`** — Scaffolds your project with planning docs and execution rules
50
- 2. **`/flow:spec`** — Interviews you, then writes an executable PRD with phases, acceptance criteria, and agent-team structure
51
- 3. **`/flow:go`** — Spawns parallel agent teams to build the next phase, verifies, commits
52
- 4. **`/flow:done`** Updates docs, captures lessons, generates a handoff prompt so the next session starts instantly
53
-
54
- Run `/flow:go` repeatedly until all phases are done, then `/flow:done` to wrap up. Next session, paste the handoff prompt and keep going.
55
-
56
- ---
57
-
58
- ## Multi-PRD: Parallel Milestone Planning
59
-
60
- <table>
61
- <tr>
62
- <td width="50%">
63
-
64
- **Before (single PRD)**
65
- ```
66
- project/
67
- └── PRD.md ← one at a time
68
- ```
69
- Finish or archive the current milestone before speccing the next. Serial bottleneck on large roadmaps.
70
-
71
- </td>
72
- <td width="50%">
73
-
74
- **Now (per-milestone PRDs)**
75
- ```
76
- .planning/prds/
77
- ├── v1-user-auth.md active
78
- ├── v2-dashboard.md ← pre-specced
79
- └── v3-payments.md ← pre-specced
80
- ```
81
- Spec any milestone at any time. Execute the current one while planning ahead.
82
-
83
- </td>
84
- </tr>
85
- </table>
86
-
87
- **How it works:**
88
-
89
- - `/flow:spec` writes PRDs to `.planning/prds/{version-slug}.md` one file per milestone
90
- - `/flow:spec v3: Payments` targets a specific future milestone without changing your current position
91
- - STATE.md tracks the **Active PRD** field so `/flow:go` always knows which spec to execute
92
- - Smart resolution: user argument > STATE.md > slug derivation > legacy fallback
93
- - Existing `PRD.md` at root? Still works — legacy files are consumed transparently and migrated on archive
94
-
95
- ---
96
-
97
- ## Commands
98
-
99
- ### The Build Cycle
100
-
101
- | Command | When | What it does |
102
- |---|---|---|
103
- | `/flow:setup` | Once per project | Creates `.planning/`, CLAUDE.md, templates, full roadmap |
104
- | `/flow:spec` | Once per milestone | Interview that produces an executable PRD in `.planning/prds/` |
105
- | `/flow:go` | Once per phase | Executes the next phase with wave-based agent teams |
106
- | `/flow:done` | End of session | Updates docs, captures lessons, generates handoff prompt |
107
-
108
- ### Standalone
109
-
110
- | Command | When | What it does |
111
- |---|---|---|
112
- | `/flow:task` | Anytime | Bug fixes, cleanup, small features — no PRD needed |
113
- | `/flow:milestone` | Anytime | Add new milestones to the roadmap |
114
-
115
- ### Utility
116
-
117
- | Command | When | What it does |
118
- |---|---|---|
119
- | `/flow:intro` | First time | Walkthrough of the entire system |
120
- | `/flow:status` | Anytime | Where am I? What's next? Shows PRD inventory |
121
- | `/flow:update` | Anytime | Update Flow to the latest version |
122
-
123
- ---
124
-
125
- ## Project Structure
126
-
127
- Every Flow project gets this structure via `/flow:setup`:
128
-
129
- ```
130
- your-project/
131
- ├── CLAUDE.md # Execution rules + learned rules
132
- ├── .planning/
133
- ├── STATE.md # Session GPS — current status, active PRD, next actions
134
- │ ├── ROADMAP.md # Milestone phases and progress tracking
135
- │ ├── prds/ # Per-milestone PRD specs
136
- ├── v1-user-auth.md # One file per milestone
137
- │ │ └── v2-dashboard.md # Pre-spec future milestones anytime
138
- │ └── archive/ # Completed milestones and archived PRDs
139
- └── tasks/
140
- └── lessons.md # Active lessons (max 10) → promoted to CLAUDE.md
141
- ```
142
-
143
- ---
144
-
145
- ## What Gets Installed
146
-
147
- ```
148
- ~/.claude/
149
- ├── commands/flow/
150
- ├── flow-setup.md # 9 skill files
151
- │ ├── flow-milestone.md
152
- │ ├── flow-spec.md
153
- │ ├── flow-go.md
154
- │ ├── flow-task.md
155
- │ ├── flow-done.md
156
- │ ├── flow-status.md
157
- │ ├── flow-intro.md
158
- │ ├── flow-update.md
159
- │ ├── VERSION
160
- └── templates/ # Project scaffolding templates
161
- ├── CLAUDE.md.template
162
- │ ├── STATE.md.template
163
- │ ├── ROADMAP.md.template
164
- └── lessons.md.template
165
- ├── hooks/
166
- ├── flow-check-update.js # Notifies when updates are available
167
- │ └── flow-statusline.js # Shows project context in statusLine
168
- └── settings.json # statusLine configured automatically
169
- ```
170
-
171
- ---
172
-
173
- ## The Lessons System
174
-
175
- Flow's knowledge compounding is what makes it get better over time:
176
-
177
- 1. **Capture** Mistake happens, one-liner written to `tasks/lessons.md` (max 10 active)
178
- 2. **Promote** — When full, most battle-tested lesson moves to `CLAUDE.md ## Learned Rules` (max 15 permanent)
179
-
180
- Hard caps prevent context bloat. Total worst-case: ~30 lines of lessons context per session.
181
-
182
- ---
183
-
184
- ## Compatible With GSD
185
-
186
- Flow uses the same `.planning/` directory structure as [GSD](https://github.com/gsd-framework/gsd). You can use `/gsd:debug`, `/gsd:map-codebase`, and other GSD commands alongside Flow without conflict.
187
-
188
- ---
189
-
190
- ## Requirements
191
-
192
- [Claude Code](https://docs.anthropic.com/en/docs/claude-code) CLI with skills support.
193
-
194
- ## Links
195
-
196
- - [Changelog](CHANGELOG.md) — what changed in each version
197
- - [Contributing](CONTRIBUTING.md) — how to report bugs, suggest features, submit PRs
198
- - [Design](DESIGN.md) — architecture decisions and system design
199
-
200
- ## License
201
-
202
- MIT
1
+ <p align="center">
2
+ <h1 align="center">Flow</h1>
3
+ <p align="center">A structured workflow system for Claude Code.<br/>Spec interviews. Agent-team execution. Session handoffs. Compounding knowledge.</p>
4
+ </p>
5
+
6
+ <p align="center">
7
+ <a href="https://www.npmjs.com/package/flow-cc"><img src="https://img.shields.io/npm/v/flow-cc.svg" alt="npm version"></a>
8
+ <a href="https://github.com/troyhoffman-oss/flow-plugin/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/flow-cc.svg" alt="license"></a>
9
+ <a href="https://www.npmjs.com/package/flow-cc"><img src="https://img.shields.io/npm/dm/flow-cc.svg" alt="downloads"></a>
10
+ </p>
11
+
12
+ ---
13
+
14
+ ## Install
15
+
16
+ ```bash
17
+ npx flow-cc
18
+ ```
19
+
20
+ One command. Installs skills, hooks, templates, and configures your statusLine. Works on Mac, Linux, and Windows.
21
+
22
+ ---
23
+
24
+ ## Why Flow?
25
+
26
+ Claude Code is powerful but unstructured. Without a system, you lose context between sessions, repeat mistakes, and waste tokens re-explaining what you've already decided.
27
+
28
+ Flow gives Claude Code a **memory system and execution framework**:
29
+
30
+ - **Spec interviews** extract decisions upfront so agents execute instead of guessing
31
+ - **Per-milestone PRDs** in `.planning/prds/` become execution contracts — spec future milestones in parallel
32
+ - **Wave-based agent teams** execute phases autonomously with built-in verification
33
+ - **Session handoffs** preserve full context across fresh sessions — no more "where was I?"
34
+ - **Lessons compound** — mistakes get captured, refined, and promoted into permanent rules
35
+
36
+ ---
37
+
38
+ ## How It Works
39
+
40
+ **One-time setup**, then a repeating build cycle:
41
+
42
+ ```
43
+ /flow:setup → /flow:triage → /flow:spec → /flow:go → /flow:done
44
+ (once) (intake) (plan) (build) (wrap)
45
+ ```
46
+
47
+ 1. **`/flow:setup`** — Scaffolds your project with planning docs and execution rules
48
+ 2. **`/flow:spec`** — Interviews you, then writes an executable PRD with phases, acceptance criteria, and agent-team structure
49
+ 3. **`/flow:go`** — Spawns parallel agent teams to build the next phase, verifies, commits
50
+ 4. **`/flow:done`** — Updates docs, captures lessons, generates a handoff prompt so the next session starts instantly
51
+
52
+ Run `/flow:go` repeatedly until all phases are done, then `/flow:done` to wrap up. Next session, paste the handoff prompt and keep going.
53
+
54
+ ---
55
+
56
+ ## Multi-PRD: Parallel Milestone Planning
57
+
58
+ <table>
59
+ <tr>
60
+ <td width="50%">
61
+
62
+ **Before (single PRD)**
63
+ ```
64
+ project/
65
+ └── PRD.md ← one at a time
66
+ ```
67
+ Finish or archive the current milestone before speccing the next. Serial bottleneck on large roadmaps.
68
+
69
+ </td>
70
+ <td width="50%">
71
+
72
+ **Now (per-milestone PRDs)**
73
+ ```
74
+ .planning/prds/
75
+ ├── user-auth.md ← active
76
+ ├── dashboard.md ← pre-specced
77
+ └── payments.md pre-specced
78
+ ```
79
+ Spec any milestone at any time. Execute the current one while planning ahead.
80
+
81
+ </td>
82
+ </tr>
83
+ </table>
84
+
85
+ **How it works:**
86
+
87
+ - `/flow:spec` writes PRDs to `.planning/prds/{slug}.md` — one file per milestone
88
+ - `/flow:spec Payments` targets a specific future milestone without changing your current position
89
+ - STATE.md tracks the **Active PRD** field so `/flow:go` always knows which spec to execute
90
+ - Smart resolution: user argument > STATE.md > slug derivation > legacy fallback
91
+ - Existing `PRD.md` at root? Still works legacy files are consumed transparently and migrated on archive
92
+
93
+ ---
94
+
95
+ ## Commands
96
+
97
+ ### The Build Cycle
98
+
99
+ | Command | When | What it does |
100
+ |---|---|---|
101
+ | `/flow:setup` | Once per project | Creates `.planning/`, CLAUDE.md, templates, full roadmap |
102
+ | `/flow:spec` | Once per milestone | Interview that produces an executable PRD in `.planning/prds/` |
103
+ | `/flow:go` | Once per phase | Executes the next phase with wave-based agent teams |
104
+ | `/flow:done` | End of session | Updates docs, captures lessons, generates handoff prompt |
105
+
106
+ ### Standalone
107
+
108
+ | Command | When | What it does |
109
+ |---|---|---|
110
+ | `/flow:task` | Anytime | Bug fixes, cleanup, small features — no PRD needed |
111
+ | `/flow:triage` | Anytime | Brain dump → categorized Linear issues, milestones, ROADMAP entries, lessons |
112
+
113
+ ### Utility
114
+
115
+ | Command | When | What it does |
116
+ |---|---|---|
117
+ | `/flow:intro` | First time | Walkthrough of the entire system |
118
+ | `/flow:status` | Anytime | Where am I? What's next? Shows PRD inventory |
119
+ | `/flow:update` | Anytime | Update Flow to the latest version |
120
+
121
+ ---
122
+
123
+ ## Project Structure
124
+
125
+ Every Flow project gets this structure via `/flow:setup`:
126
+
127
+ ```
128
+ your-project/
129
+ ├── CLAUDE.md # Execution rules + learned rules
130
+ ├── .claude/
131
+ │ └── memory/
132
+ │ └── session.md # Per-developer session state (gitignored)
133
+ ├── .planning/
134
+ │ ├── STATE.md # Project-level GPS shared across developers
135
+ │ ├── ROADMAP.md # Milestone phases and progress tracking
136
+ │ ├── prds/ # Per-milestone PRD specs
137
+ │ │ ├── user-auth.md # One file per milestone
138
+ └── dashboard.md # Pre-spec future milestones anytime
139
+ └── archive/ # Completed milestones and archived PRDs
140
+ └── tasks/
141
+ └── lessons.md # Active lessons (max 10) → promoted to CLAUDE.md
142
+ ```
143
+
144
+ ---
145
+
146
+ ## What Gets Installed
147
+
148
+ ```
149
+ ~/.claude/
150
+ ├── commands/flow/
151
+ │ ├── flow-setup.md # 9 skill files
152
+ │ ├── flow-spec.md
153
+ │ ├── flow-go.md
154
+ │ ├── flow-task.md
155
+ │ ├── flow-done.md
156
+ │ ├── flow-status.md
157
+ │ ├── flow-intro.md
158
+ │ ├── flow-triage.md
159
+ │ ├── flow-update.md
160
+ ├── VERSION
161
+ └── templates/ # Project scaffolding templates
162
+ │ ├── CLAUDE.md.template
163
+ │ ├── STATE.md.template
164
+ ├── ROADMAP.md.template
165
+ ├── lessons.md.template
166
+ └── session.md.template
167
+ ├── hooks/
168
+ │ ├── flow-check-update.js # Notifies when updates are available
169
+ │ └── flow-statusline.js # Shows project context in statusLine
170
+ └── settings.json # statusLine configured automatically
171
+ ```
172
+
173
+ ---
174
+
175
+ ## The Lessons System
176
+
177
+ Flow's knowledge compounding is what makes it get better over time:
178
+
179
+ 1. **Capture** — Mistake happens, one-liner written to `tasks/lessons.md` (max 10 active)
180
+ 2. **Promote** When full, most battle-tested lesson moves to `CLAUDE.md ## Learned Rules` (max 15 permanent)
181
+
182
+ Hard caps prevent context bloat. Total worst-case: ~30 lines of lessons context per session.
183
+
184
+ ---
185
+
186
+ ## Multi-Developer Support
187
+
188
+ Flow supports multiple developers on the same repo without conflicts:
189
+
190
+ - **`session.md`** — Per-developer session state, stored in `.claude/memory/session.md` (gitignored). Each developer has their own session GPS that never conflicts.
191
+ - **`STATE.md`** — Shared project-level state in `.planning/STATE.md`. Updated at milestone boundaries only (not every session), so conflicts are rare.
192
+ - **Developer identity** — `/flow:spec` and `/flow:go` track who is working on what. PRDs can be assigned to specific developers (advisory, not blocking).
193
+ - **Template provided** — `session.md.template` scaffolds the per-developer file on first use.
194
+
195
+ ---
196
+
197
+ ## Linear Integration
198
+
199
+ Flow optionally integrates with Linear via MCP for issue tracking:
200
+
201
+ - **`/flow:spec`** can create Linear issues automatically from PRD phases
202
+ - **`/flow:done`** can post progress comments to Linear issues
203
+ - **`/flow:triage`** sorts unstructured brain dumps into categorized Linear issues, ROADMAP entries, and lessons
204
+ - **Branch convention** `feat/msig-{issue#}-desc` auto-links PRs to Linear issues
205
+ - **Auto-close** — `Closes MSIG-XX` in PR body triggers Linear status transition on merge
206
+
207
+ Requires the [Linear MCP server](https://www.npmjs.com/package/@anthropic/linear-mcp-server) to be configured.
208
+
209
+ ---
210
+
211
+ ## Compatible With GSD
212
+
213
+ Flow uses the same `.planning/` directory structure as [GSD](https://github.com/gsd-framework/gsd). You can use `/gsd:debug`, `/gsd:map-codebase`, and other GSD commands alongside Flow without conflict.
214
+
215
+ ---
216
+
217
+ ## Requirements
218
+
219
+ [Claude Code](https://docs.anthropic.com/en/docs/claude-code) CLI with skills support.
220
+
221
+ ## Links
222
+
223
+ - [Changelog](CHANGELOG.md) — what changed in each version
224
+ - [Contributing](CONTRIBUTING.md) — how to report bugs, suggest features, submit PRs
225
+ - [Design](DESIGN.md) — architecture decisions and system design
226
+
227
+ ## License
228
+
229
+ MIT
package/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.1
1
+ 0.7.1