flow-cc 0.5.6 → 0.5.8
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 +7 -0
- package/VERSION +1 -1
- package/package.json +1 -1
- package/skills/flow-done.md +2 -0
- package/skills/flow-go.md +36 -18
- package/skills/flow-spec.md +2 -0
- package/skills/flow-status.md +2 -0
- package/skills/flow-task.md +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,13 @@ 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.5.8] - 2026-02-14
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- `/flow:go` Step 7 now enforces mandatory `/flow:done` suggestion in every phase completion output
|
|
12
|
+
- Added STOP RULE to prevent autonomous post-phase work (PR creation, comment resolution, cleanup)
|
|
13
|
+
- Separated "next flow commands" from project-specific actions so `/flow:done` never gets dropped
|
|
14
|
+
|
|
8
15
|
## [0.5.0] - 2026-02-13
|
|
9
16
|
|
|
10
17
|
### Added
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.5.
|
|
1
|
+
0.5.8
|
package/package.json
CHANGED
package/skills/flow-done.md
CHANGED
|
@@ -10,6 +10,8 @@ You are executing the `/flow:done` skill. This finalizes the current session by
|
|
|
10
10
|
|
|
11
11
|
**This is the most important skill for sustainability.** Without proper session-end docs, the next session starts blind.
|
|
12
12
|
|
|
13
|
+
**Skill boundary:** You are inside the `/flow:*` workflow. NEVER invoke, suggest, or reference skills from other workflow systems (`/lisa:*`, `/gsd:*`, `/superpowers:*`, etc.). Only suggest `/flow:*` commands as next steps. Do NOT use the Skill tool to call any non-flow skill.
|
|
14
|
+
|
|
13
15
|
## Steps
|
|
14
16
|
|
|
15
17
|
### 1. Gather Context
|
package/skills/flow-go.md
CHANGED
|
@@ -12,26 +12,27 @@ You are executing the `/flow:go` skill. This reads the PRD, identifies the next
|
|
|
12
12
|
|
|
13
13
|
**Plan mode warning:** Do NOT use this skill with plan mode enabled. `/flow:go` is execution — plan mode's read-only constraint prevents it from creating files, running agents, and committing work. The PRD is your plan; run `/flow:go` in normal mode.
|
|
14
14
|
|
|
15
|
+
**Skill boundary:** You are inside the `/flow:*` workflow. NEVER invoke, suggest, or reference skills from other workflow systems (`/lisa:*`, `/gsd:*`, `/superpowers:*`, etc.). Only suggest `/flow:*` commands as next steps. Do NOT use the Skill tool to call any non-flow skill. If the user needs a different workflow, they will invoke it themselves.
|
|
16
|
+
|
|
15
17
|
## Step 1 — Orient
|
|
16
18
|
|
|
17
19
|
Read these files (in parallel):
|
|
18
20
|
- `.planning/STATE.md` — current position
|
|
19
21
|
- `.planning/ROADMAP.md` — phase progress
|
|
20
|
-
- The active PRD (see PRD Resolution below)
|
|
21
22
|
- `tasks/lessons.md` — active lessons (max 10 one-liners)
|
|
22
23
|
- `CLAUDE.md` — execution rules and verification commands
|
|
23
24
|
|
|
24
|
-
### PRD
|
|
25
|
+
### PRD Selection
|
|
26
|
+
|
|
27
|
+
The user must always select which PRD to execute. No silent auto-resolution.
|
|
28
|
+
|
|
29
|
+
1. **If the user passed an argument** (e.g., `/flow:go v3-payments`) — match it against files in `.planning/prds/` by slug or by the `**Milestone:**` header field. If an exact match is found, use it directly. If no match, show available PRDs and ask.
|
|
25
30
|
|
|
26
|
-
|
|
31
|
+
2. **If no argument** — list all PRD files in `.planning/prds/`. For each PRD, read its `**Status:**` and `**Milestone:**` header fields. Use AskUserQuestion to let the user pick which PRD to execute. Pre-select the first PRD with status "Ready for execution" as the first option. Always show the picker, even if only one PRD exists — the user may want to confirm or run `/flow:spec` instead. Also check for legacy `PRD.md` at root (backward compat) and include it in the list if found.
|
|
27
32
|
|
|
28
|
-
|
|
29
|
-
2. **STATE.md Active PRD:** Read the "Active PRD" field from STATE.md's Current Position section. If it points to a valid file, use it.
|
|
30
|
-
3. **Slug derivation:** Derive a slug from STATE.md's current milestone name — version-prefix + lowercase name, spaces/special chars → hyphens, collapse consecutive hyphens (e.g., "v2: Dashboard Analytics" → `v2-dashboard-analytics`). Check `.planning/prds/{slug}.md`.
|
|
31
|
-
4. **Legacy fallback:** If `.planning/prds/` is empty or missing but `PRD.md` exists at the project root, use it. Print: "Using legacy PRD.md at project root. Future specs will use `.planning/prds/`."
|
|
32
|
-
5. **Not found:** "No PRD found for [current milestone name]. Available PRDs: [list files in `.planning/prds/`]. Run `/flow:spec` first."
|
|
33
|
+
3. **No PRDs found** — "No PRDs found in `.planning/prds/`. Run `/flow:spec` first." Stop here.
|
|
33
34
|
|
|
34
|
-
**
|
|
35
|
+
**After selection:** Read the chosen PRD. If its `**Milestone:**` doesn't match STATE.md's current milestone, warn: "PRD milestone ([PRD milestone]) doesn't match current milestone ([STATE milestone]). Continuing, but verify you're executing the right spec."
|
|
35
36
|
|
|
36
37
|
**Identify the next phase:** Find the first phase in ROADMAP.md with status "Pending" or the first unstarted phase in the PRD.
|
|
37
38
|
|
|
@@ -39,7 +40,7 @@ Resolve the PRD file to use, in this order:
|
|
|
39
40
|
|
|
40
41
|
Run these checks before executing. If any fail, stop and tell the user what to do:
|
|
41
42
|
|
|
42
|
-
1. **PRD
|
|
43
|
+
1. **PRD selected?** If PRD Selection (above) reached step 3 (no PRDs found): stop with the "No PRDs found" message.
|
|
43
44
|
2. **Phase detailed enough?** The phase section in the PRD must have:
|
|
44
45
|
- Wave structure with agent assignments
|
|
45
46
|
- Explicit file lists per agent
|
|
@@ -162,18 +163,35 @@ Create an atomic commit for this phase:
|
|
|
162
163
|
|
|
163
164
|
**ROADMAP.md:** Mark this phase as "Complete ([today's date])"
|
|
164
165
|
|
|
165
|
-
## Step 7 — Route Next Action
|
|
166
|
+
## Step 7 — Route Next Action (MANDATORY — FINAL STEP)
|
|
167
|
+
|
|
168
|
+
**STOP RULE:** This is the LAST thing you do. After printing the output below, STOP IMMEDIATELY. Do NOT:
|
|
169
|
+
- Review or resolve code review comments
|
|
170
|
+
- Create or update pull requests
|
|
171
|
+
- Run additional cleanup or refactoring
|
|
172
|
+
- Do any work beyond printing this summary
|
|
173
|
+
|
|
174
|
+
Any post-phase work belongs in a SEPARATE `/flow:go` invocation or `/flow:task`.
|
|
175
|
+
|
|
176
|
+
Print this EXACT structure (fill in values):
|
|
166
177
|
|
|
167
|
-
Print phase summary:
|
|
168
178
|
```
|
|
169
|
-
Phase [N]: [Name] — Complete
|
|
179
|
+
Phase [N]: [Name] — Complete ✓
|
|
170
180
|
- [X] files created, [Y] modified
|
|
171
181
|
- Commit: [SHA]
|
|
172
|
-
- Verification: passed
|
|
182
|
+
- Verification: [passed/failed]
|
|
183
|
+
|
|
184
|
+
Next flow command:
|
|
185
|
+
→ /flow:go — execute Phase [N+1]: [Next Phase Name]
|
|
186
|
+
→ /flow:done — end session, update docs, generate handoff prompt
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
If this was the last phase, replace the flow commands block with:
|
|
190
|
+
|
|
191
|
+
```
|
|
192
|
+
All phases complete — milestone done!
|
|
173
193
|
|
|
174
|
-
|
|
175
|
-
- /flow:go for Phase [N+1]: [Next Phase Name]
|
|
176
|
-
- /flow:done to end session
|
|
194
|
+
→ /flow:done — finalize session (REQUIRED before ending)
|
|
177
195
|
```
|
|
178
196
|
|
|
179
|
-
|
|
197
|
+
**CRITICAL:** The `→ /flow:done` line MUST appear in EVERY phase completion output, whether or not more phases remain. This is non-negotiable. `/flow:done` is how session-end documentation happens.
|
package/skills/flow-spec.md
CHANGED
|
@@ -12,6 +12,8 @@ You are executing the `/flow:spec` skill. This is the KEYSTONE skill of the flow
|
|
|
12
12
|
|
|
13
13
|
**Plan mode warning:** Do NOT use this skill with plan mode enabled. Plan mode's read-only constraint prevents the PRD from being written during the interview. `/flow:spec` IS the planning phase — plan mode on top of it is redundant and breaks the workflow.
|
|
14
14
|
|
|
15
|
+
**Skill boundary:** You are inside the `/flow:*` workflow. NEVER invoke, suggest, or reference skills from other workflow systems (`/lisa:*`, `/gsd:*`, `/superpowers:*`, etc.). Only suggest `/flow:*` commands as next steps. Do NOT use the Skill tool to call any non-flow skill. If the user needs a different workflow, they will invoke it themselves.
|
|
16
|
+
|
|
15
17
|
## Phase 1 — Context Gathering
|
|
16
18
|
|
|
17
19
|
1. Read `.planning/STATE.md` and `.planning/ROADMAP.md` — understand current milestone and what's done
|
package/skills/flow-status.md
CHANGED
|
@@ -8,6 +8,8 @@ user_invocable: true
|
|
|
8
8
|
|
|
9
9
|
You are executing the `/flow:status` skill. This is a READ-ONLY operation. Do NOT modify any files.
|
|
10
10
|
|
|
11
|
+
**Skill boundary:** You are inside the `/flow:*` workflow. NEVER invoke, suggest, or reference skills from other workflow systems (`/lisa:*`, `/gsd:*`, `/superpowers:*`, etc.). Only suggest `/flow:*` commands as next steps. Do NOT use the Skill tool to call any non-flow skill.
|
|
12
|
+
|
|
11
13
|
## Step 1 — Read Context Files
|
|
12
14
|
|
|
13
15
|
Read ALL of the following in parallel:
|
package/skills/flow-task.md
CHANGED
|
@@ -8,6 +8,8 @@ user_invocable: true
|
|
|
8
8
|
|
|
9
9
|
You are executing the `/flow:task` skill. This is for small, focused work — bug fixes, cleanup, one-off features — that doesn't warrant a full PRD. Understand the task, execute it, verify it works, commit it, and document it.
|
|
10
10
|
|
|
11
|
+
**Skill boundary:** You are inside the `/flow:*` workflow. NEVER invoke, suggest, or reference skills from other workflow systems (`/lisa:*`, `/gsd:*`, `/superpowers:*`, etc.). Only suggest `/flow:*` commands as next steps. Do NOT use the Skill tool to call any non-flow skill.
|
|
12
|
+
|
|
11
13
|
RULES:
|
|
12
14
|
- NO AGENT TEAMS. NO PRD. Single execution context.
|
|
13
15
|
- Exception: ONE Task agent for an isolated subtask to prevent context bloat.
|