@locksmithdon/dons-flow 2.1.2 → 2.2.0

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.
Files changed (57) hide show
  1. package/README.md +19 -71
  2. package/docs/conventions.md +1 -2
  3. package/docs/memory/.upstream-last-sync.json +4 -0
  4. package/docs/memory/MEMORY.md +2 -1
  5. package/docs/memory/monitor_upstream_evolution.md +8 -6
  6. package/docs/memory/upstream-sync-2026-06-13.md +61 -0
  7. package/docs/runbooks/monitor-upstream-evolution.md +74 -45
  8. package/package.json +21 -5
  9. package/scripts/sync-upstream.sh +193 -0
  10. package/skills/dons-flow/SKILL.md +9 -11
  11. package/skills/land/SKILL.md +2 -2
  12. package/skills/setup-dons-flow/SKILL.md +24 -120
  13. package/skills/sync-upstream/SKILL.md +94 -0
  14. package/vendor/superpowers/LICENSE +21 -0
  15. package/vendor/superpowers/skills/brainstorming/SKILL.md +164 -0
  16. package/vendor/superpowers/skills/brainstorming/scripts/frame-template.html +214 -0
  17. package/vendor/superpowers/skills/brainstorming/scripts/helper.js +88 -0
  18. package/vendor/superpowers/skills/brainstorming/scripts/server.cjs +354 -0
  19. package/vendor/superpowers/skills/brainstorming/scripts/start-server.sh +148 -0
  20. package/vendor/superpowers/skills/brainstorming/scripts/stop-server.sh +56 -0
  21. package/vendor/superpowers/skills/brainstorming/spec-document-reviewer-prompt.md +49 -0
  22. package/vendor/superpowers/skills/brainstorming/visual-companion.md +287 -0
  23. package/vendor/superpowers/skills/dispatching-parallel-agents/SKILL.md +182 -0
  24. package/vendor/superpowers/skills/executing-plans/SKILL.md +70 -0
  25. package/vendor/superpowers/skills/receiving-code-review/SKILL.md +213 -0
  26. package/vendor/superpowers/skills/requesting-code-review/SKILL.md +103 -0
  27. package/vendor/superpowers/skills/requesting-code-review/code-reviewer.md +168 -0
  28. package/vendor/superpowers/skills/subagent-driven-development/SKILL.md +279 -0
  29. package/vendor/superpowers/skills/subagent-driven-development/code-quality-reviewer-prompt.md +25 -0
  30. package/vendor/superpowers/skills/subagent-driven-development/implementer-prompt.md +113 -0
  31. package/vendor/superpowers/skills/subagent-driven-development/spec-reviewer-prompt.md +61 -0
  32. package/vendor/superpowers/skills/systematic-debugging/CREATION-LOG.md +119 -0
  33. package/vendor/superpowers/skills/systematic-debugging/SKILL.md +296 -0
  34. package/vendor/superpowers/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
  35. package/vendor/superpowers/skills/systematic-debugging/condition-based-waiting.md +115 -0
  36. package/vendor/superpowers/skills/systematic-debugging/defense-in-depth.md +122 -0
  37. package/vendor/superpowers/skills/systematic-debugging/find-polluter.sh +63 -0
  38. package/vendor/superpowers/skills/systematic-debugging/root-cause-tracing.md +169 -0
  39. package/vendor/superpowers/skills/systematic-debugging/test-academic.md +14 -0
  40. package/vendor/superpowers/skills/systematic-debugging/test-pressure-1.md +58 -0
  41. package/vendor/superpowers/skills/systematic-debugging/test-pressure-2.md +68 -0
  42. package/vendor/superpowers/skills/systematic-debugging/test-pressure-3.md +69 -0
  43. package/vendor/superpowers/skills/test-driven-development/SKILL.md +371 -0
  44. package/vendor/superpowers/skills/test-driven-development/testing-anti-patterns.md +299 -0
  45. package/vendor/superpowers/skills/using-superpowers/SKILL.md +117 -0
  46. package/vendor/superpowers/skills/using-superpowers/references/codex-tools.md +59 -0
  47. package/vendor/superpowers/skills/using-superpowers/references/copilot-tools.md +42 -0
  48. package/vendor/superpowers/skills/using-superpowers/references/gemini-tools.md +51 -0
  49. package/vendor/superpowers/skills/writing-plans/SKILL.md +152 -0
  50. package/vendor/superpowers/skills/writing-plans/plan-document-reviewer-prompt.md +49 -0
  51. package/vendor/superpowers/skills/writing-skills/SKILL.md +655 -0
  52. package/vendor/superpowers/skills/writing-skills/anthropic-best-practices.md +1150 -0
  53. package/vendor/superpowers/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
  54. package/vendor/superpowers/skills/writing-skills/graphviz-conventions.dot +172 -0
  55. package/vendor/superpowers/skills/writing-skills/persuasion-principles.md +187 -0
  56. package/vendor/superpowers/skills/writing-skills/render-graphs.js +168 -0
  57. package/vendor/superpowers/skills/writing-skills/testing-skills-with-subagents.md +384 -0
@@ -26,14 +26,13 @@ This skill is the map. It does not replace the skills it references — it helps
26
26
 
27
27
  ## Required installed packages
28
28
 
29
- This skill assumes the following are available:
29
+ This skill assumes the following are installed with the package:
30
30
 
31
- - **Superpowers** — the upstream methodology. Installed as a harness plugin (Claude, Codex, Gemini, Cursor, Copilot, etc.), not via npm. See `setup-dons-flow` for per-harness commands. This is the only manual install step.
32
- - **RPIV** (`@juicesharp/rpiv-pi`) the observable delivery pipeline. Peer dependency; auto-installed with npm 7+ when you install `@locksmithdon/dons-flow`.
33
- - **Pi subagent runtime** (`@tintinweb/pi-subagents`)runtime used by RPIV. Peer dependency; auto-installed with npm 7+ when you install `@locksmithdon/dons-flow`.
34
- - **Don's Flow** (`@locksmithdon/dons-flow`) — this package, which adds closeout and discipline skills.
31
+ - **Superpowers** skills vendored into the package at `vendor/superpowers/skills/`.
32
+ - **RPIV** skills and runtime extensions installed as npm dependencies.
33
+ - **Don's Flow** skillsthis package's own skills in `skills/`.
35
34
 
36
- If RPIV or the subagent runtime is missing, install them explicitly. If Superpowers is missing, this package's ported skills still provide the closeout workflow, but you will not have access to the upstream Superpowers entry points like `brainstorming` or `test-driven-development`.
35
+ There are no separate installs. If `@locksmithdon/dons-flow` is missing, run `pi install npm:@locksmithdon/dons-flow`.
37
36
 
38
37
  ## Before you start
39
38
 
@@ -43,7 +42,7 @@ If this repo has not been onboarded yet, run:
43
42
  /skill:setup-dons-flow
44
43
  ```
45
44
 
46
- That skill checks prerequisites, detects Superpowers, installs RPIV's sibling extensions via `/rpiv-setup`, and creates the repo-owned conventions (`docs/tabled.md`, `docs/status.md`, `docs/memory/`, `docs/changes/`, `docs/retros/`, `docs/runbooks/`, `AGENTS.md`).
45
+ That skill checks that the package is installed and creates the repo-owned conventions (`docs/tabled.md`, `docs/status.md`, `docs/memory/`, `docs/changes/`, `docs/retros/`, `docs/runbooks/`, `AGENTS.md`).
47
46
 
48
47
  ## Three modes of working
49
48
 
@@ -175,7 +174,7 @@ Discover → Research → Design/Blueprint → Plan → Implement → Validate
175
174
 
176
175
  **What it produces:** `.rpiv/artifacts/reviews/<slug>_<scope>.md`
177
176
 
178
- **Integration note:** The `land` skill's step 1 (code review) can consume this artifact. Fix small findings now; table substantive ones to `docs/tabled/`.
177
+ **Integration note:** The `land` skill's step 1 (code review) can consume this artifact. Fix small findings now; table substantive ones in `docs/tabled.md`.
179
178
 
180
179
  ### 8. Commit — atomic, logical commits
181
180
 
@@ -215,7 +214,7 @@ We intentionally deferred deciding how to track Superpowers long-term. Review mo
215
214
  - `docs/memory/monitor_upstream_evolution.md` — decision context and last review date
216
215
  - `docs/runbooks/monitor-upstream-evolution.md` — the check-in process
217
216
 
218
- After 2–3 projects, decide whether to keep the harness-plugin arrangement, fork Superpowers, or drop the peer dependency.
217
+ After 2–3 projects, decide whether to keep vendoring Superpowers skills, fork Superpowers, or drop the Superpowers integration.
219
218
 
220
219
  ## Cross-cutting practices
221
220
 
@@ -243,8 +242,7 @@ Your codebase should contain these documents and folders. They are owned by the
243
242
 
244
243
  | Path | Purpose |
245
244
  |---|---|
246
- | `docs/tabled.md` | Working memory for epiphanies and deferred work |
247
- | `docs/tabled/` | Optional per-item tabled docs (resolved to empty each cycle) |
245
+ | `docs/tabled.md` | Working memory for epiphanies and deferred work (resolved to empty each cycle) |
248
246
  | `docs/status.md` | Living status: Recently Completed, What's Next, etc. |
249
247
  | `docs/memory/` | Persistent project/session memory entries |
250
248
  | `docs/memory/MEMORY.md` | Index of memory entries |
@@ -30,7 +30,7 @@ Land has 10 ordered sub-steps. **Each sub-step is a conversation between agent a
30
30
 
31
31
  ### 1. Code review
32
32
 
33
- Comprehensive, back-and-forth review of all code that landed during this cycle. Find issues; fix small ones now, table substantive ones to `docs/tabled/`. Often a substantial conversation in itself.
33
+ Comprehensive, back-and-forth review of all code that landed during this cycle. Find issues; fix small ones now, table substantive ones in `docs/tabled.md`. Often a substantial conversation in itself.
34
34
 
35
35
  ### 2. Architectural review
36
36
 
@@ -66,7 +66,7 @@ Reflect on the cycle. What went well, what was hard, patterns to capture, anti-p
66
66
 
67
67
  ### 9. Status review + tabled-items confirmation + next piece of work
68
68
 
69
- Walk through `docs/status.md` intentionally with the cycle's tabled items in hand. Decide what belongs in "Recently Completed," "What's Next," what to prune. **Resolve every tabled item** — either decide-now (document the decision and delete the tabled doc) or move-to-status (substance moves to "What's Next" and the tabled doc is deleted). `docs/tabled/` should end the cycle empty (just `.gitkeep`). Identify the next piece of work — usually the highest-priority moved-to-status item.
69
+ Walk through `docs/status.md` intentionally with the cycle's tabled items in hand. Decide what belongs in "Recently Completed," "What's Next," what to prune. **Resolve every tabled item** — either decide-now (document the decision and remove the entry) or move-to-status (substance moves to "What's Next" and the entry is removed). `docs/tabled.md` should end the cycle empty (or near-empty). Identify the next piece of work — usually the highest-priority moved-to-status item.
70
70
 
71
71
  ### 10. Integrate
72
72
 
@@ -1,37 +1,35 @@
1
1
  ---
2
2
  name: setup-dons-flow
3
- description: Use when installing or onboarding @locksmithdon/dons-flow in a repo — checks dependencies, detects Superpowers, and creates repo conventions
3
+ description: Use when installing or onboarding @locksmithdon/dons-flow in a repo — checks the package and creates repo conventions
4
4
  ---
5
5
 
6
6
  # Setup Don's Flow
7
7
 
8
- Onboard a repo to the Don's Flow v2 triad: **Superpowers** + **RPIV** + **Don's closeout discipline**. This skill checks prerequisites, detects what is already installed, creates the repo-owned conventions, and tells you what still needs to be done.
8
+ Onboard a repo to Don's Flow. This skill checks that the package is installed and creates the repo-owned conventions.
9
9
 
10
10
  ## Announce at start
11
11
 
12
- > "I'm using the `setup-dons-flow` skill to onboard this repo to Don's Flow v2."
12
+ > "I'm using the `setup-dons-flow` skill to onboard this repo to Don's Flow."
13
13
 
14
14
  ## When to use
15
15
 
16
16
  - Right after installing `@locksmithdon/dons-flow` in a repo.
17
- - When you suspect prerequisites are missing.
18
17
  - When setting up a fresh repo for this workflow.
19
- - After switching to a new agent harness.
20
18
 
21
- ## What Don's Flow needs
19
+ ## What Don's Flow installs
22
20
 
23
- | Component | What it is | How it is installed |
24
- |---|---|---|
25
- | **Superpowers** | Agentic methodology (brainstorming, TDD, subagent-driven development) | Harness plugin (Claude, Codex, Gemini, Cursor, etc.) |
26
- | **RPIV** | Observable delivery pipeline (`discover → ... → commit`) | `pi install npm:@juicesharp/rpiv-pi` |
27
- | **Pi subagent runtime** | Runtime used by RPIV | `pi install npm:@tintinweb/pi-subagents` |
28
- | **Don's Flow** | This package: closeout, scope control, learning capture | `pi install npm:@locksmithdon/dons-flow` |
21
+ `pi install npm:@locksmithdon/dons-flow` brings everything with it:
29
22
 
30
- Superpowers is not an npm package and cannot be installed via `pi install` or `npm install`. It must be installed as a harness plugin.
23
+ - **RPIV** skills (`discover`, `research`, `blueprint`, `implement`, `validate`, `code-review`, etc.)
24
+ - **RPIV runtime extensions** (`rpiv-todo`, `rpiv-workflow`, etc.)
25
+ - **Superpowers** skills (`brainstorming`, `writing-plans`, `test-driven-development`, `subagent-driven-development`, etc.)
26
+ - **Don's Flow** skills (`land`, `epiphany-tabling`, `capturing-learnings`, etc.)
27
+
28
+ There are no separate installs for RPIV or Superpowers.
31
29
 
32
30
  ## Process
33
31
 
34
- ### Step 1: Detect installed Pi packages and install RPIV siblings
32
+ ### Step 1: Verify the package is installed
35
33
 
36
34
  Run:
37
35
 
@@ -39,104 +37,15 @@ Run:
39
37
  pi list
40
38
  ```
41
39
 
42
- Look for:
43
-
44
- | Package | Required? | If missing |
45
- |---|---|---|
46
- | `npm:@juicesharp/rpiv-pi` | Yes | Peer dependency; auto-installed with npm 7+ when you install `@locksmithdon/dons-flow`. If not, run `pi install npm:@juicesharp/rpiv-pi`. |
47
- | `npm:@tintinweb/pi-subagents` | Yes | Peer dependency; auto-installed with npm 7+ when you install `@locksmithdon/dons-flow`. If not, run `pi install npm:@tintinweb/pi-subagents`. |
48
- | `npm:@locksmithdon/dons-flow` | Yes | `pi install npm:@locksmithdon/dons-flow` |
49
-
50
- If RPIV is installed but its sibling extensions are missing, run RPIV's setup command automatically:
40
+ Look for `npm:@locksmithdon/dons-flow`. If it is missing, install it:
51
41
 
52
42
  ```bash
53
- /rpiv-setup
43
+ pi install npm:@locksmithdon/dons-flow
54
44
  ```
55
45
 
56
- This installs the sibling plugins:
57
-
58
- - `@juicesharp/rpiv-ask-user-question`
59
- - `@juicesharp/rpiv-todo`
60
- - `@juicesharp/rpiv-advisor`
61
- - `@juicesharp/rpiv-i18n`
62
- - `@juicesharp/rpiv-web-tools`
63
- - `@juicesharp/rpiv-args`
64
- - `@juicesharp/rpiv-workflow`
65
-
66
- After `/rpiv-setup` completes, **restart Pi** so the new extensions are loaded. Then re-run `/skill:setup-dons-flow` to continue onboarding.
67
-
68
- If you cannot restart Pi in this session, report the remaining siblings to the user and ask them to restart before proceeding.
69
-
70
- ### Step 2: Detect Superpowers
71
-
72
- Superpowers is installed via your agent harness, not as a Pi npm package. Check the appropriate method for your harness:
73
-
74
- **Claude Code**
75
- ```bash
76
- /plugin list
77
- ```
78
- Look for `superpowers`. If missing:
79
- ```bash
80
- /plugin install superpowers@claude-plugins-official
81
- ```
82
- Or via the Superpowers marketplace:
83
- ```bash
84
- /plugin marketplace add obra/superpowers-marketplace
85
- /plugin install superpowers@superpowers-marketplace
86
- ```
87
-
88
- **Codex CLI / Codex App**
89
- ```bash
90
- /plugins
91
- ```
92
- Search for "Superpowers" and install it.
93
-
94
- **Gemini CLI**
95
- ```bash
96
- gemini extensions list
97
- ```
98
- If missing:
99
- ```bash
100
- gemini extensions install https://github.com/obra/superpowers
101
- ```
102
-
103
- **Factory Droid**
104
- ```bash
105
- droid plugin list
106
- ```
107
- If missing:
108
- ```bash
109
- droid plugin marketplace add https://github.com/obra/superpowers
110
- droid plugin install superpowers@superpowers
111
- ```
112
-
113
- **OpenCode**
114
- ```bash
115
- # Fetch and follow instructions from:
116
- # https://raw.githubusercontent.com/obra/superpowers/refs/heads/main/.opencode/INSTALL.md
117
- ```
118
-
119
- **Cursor**
120
- ```bash
121
- /add-plugin superpowers
122
- ```
123
- Or search "superpowers" in the plugin marketplace.
124
-
125
- **GitHub Copilot CLI**
126
- ```bash
127
- copilot plugin list
128
- ```
129
- If missing:
130
- ```bash
131
- copilot plugin marketplace add obra/superpowers-marketplace
132
- copilot plugin install superpowers@superpowers-marketplace
133
- ```
134
-
135
- If you are unsure which harness is active, ask the user. Do not guess.
136
-
137
- If Superpowers is not installed, explain that the closeout workflow in this package still works, but the upstream Superpowers entry points (`brainstorming`, `test-driven-development`, `subagent-driven-development`) will not be available.
46
+ If RPIV emits a warning about missing sibling extensions, wait for the install to finish and then restart Pi. The package declares all required RPIV extensions as dependencies, so they install automatically.
138
47
 
139
- ### Step 3: Check repo conventions
48
+ ### Step 2: Check repo conventions
140
49
 
141
50
  Check whether these project-owned files and folders exist:
142
51
 
@@ -149,7 +58,6 @@ Expected:
149
58
  | Path | Purpose |
150
59
  |---|---|
151
60
  | `docs/tabled.md` | Working memory for deferred ideas |
152
- | `docs/tabled/` | Optional per-item tabled docs |
153
61
  | `docs/status.md` | Living status |
154
62
  | `docs/memory/` | Persistent memory + `MEMORY.md` index |
155
63
  | `docs/changes/` | As-built documentation |
@@ -157,12 +65,12 @@ Expected:
157
65
  | `docs/runbooks/` | Multi-skill processes |
158
66
  | `AGENTS.md` | Repo-level agent guidance |
159
67
 
160
- ### Step 4: Create missing conventions
68
+ ### Step 3: Create missing conventions
161
69
 
162
70
  If the user approves, create missing conventions:
163
71
 
164
72
  ```bash
165
- mkdir -p docs/{tabled,memory,changes,retros,runbooks}
73
+ mkdir -p docs/{memory,changes,retros,runbooks}
166
74
  touch docs/tabled.md docs/status.md docs/memory/MEMORY.md AGENTS.md
167
75
  ```
168
76
 
@@ -196,30 +104,28 @@ Cross-session context for this project.
196
104
  _None yet._
197
105
  ```
198
106
 
199
- Seed `AGENTS.md` with a minimal entry pointing at this workflow:
107
+ Seed `AGENTS.md` with a minimal entry:
200
108
 
201
109
  ```markdown
202
110
  # AGENTS.md
203
111
 
204
112
  This project uses the `@locksmithdon/dons-flow` workflow:
205
- - Superpowers for design, planning, TDD, and subagent-driven development.
206
113
  - RPIV pipeline for discovery, research, design/plan, implement, validate, review, commit.
114
+ - Superpowers skills for brainstorming, planning, TDD, and subagent-driven development.
207
115
  - `land` skill for 10-step cycle closeout.
208
116
 
209
117
  See `docs/runbooks/` for detailed processes and `docs/memory/` for project context.
210
118
  ```
211
119
 
212
- ### Step 5: Report status and next steps
120
+ ### Step 4: Report status and next steps
213
121
 
214
122
  Present a concise summary:
215
123
 
216
124
  ```
217
125
  Setup status for <repo>:
218
126
 
219
- RPIV installed
220
- ✗ @tintinweb/pi-subagents missing — run: pi install npm:@tintinweb/pi-subagents
127
+ @locksmithdon/dons-flow installed
221
128
  ✓ Repo conventions created
222
- ✓ Superpowers detected (Claude Code plugin)
223
129
 
224
130
  Next step: /skill:dons-flow to see the workflow map.
225
131
  ```
@@ -227,11 +133,9 @@ Next step: /skill:dons-flow to see the workflow map.
227
133
  ## Anti-patterns
228
134
 
229
135
  - **Creating conventions without asking.** The repo belongs to the team; don't mutate its doc structure unilaterally.
230
- - **Guessing the harness.** Always detect or ask which agent harness is in use before giving Superpowers install instructions.
231
- - **Treating Superpowers as optional decoration.** It is one of the three pillars of this workflow. Detect it accurately and install it if possible.
232
- - **Installing packages without confirmation.** Present the install commands; let the human run them.
136
+ - **Trying to install Superpowers or RPIV separately.** They ship with this package.
233
137
 
234
138
  ## Integration
235
139
 
236
140
  - Called automatically on first install if an extension hook is added later.
237
- - Should be re-run after major RPIV or Superpowers updates to refresh conventions.
141
+ - Should be re-run after major Don's Flow updates to refresh conventions.
@@ -0,0 +1,94 @@
1
+ ---
2
+ name: sync-upstream
3
+ description: Run the upstream sync script to clone/pull Superpowers and RPIV, diff against last-synced hashes, and produce a decision report
4
+ ---
5
+
6
+ # Sync Upstream
7
+
8
+ Keep Don's Flow current with its two upstream partners: **Superpowers** and **RPIV**. This skill runs a script that:
9
+
10
+ 1. Clones or pulls `obra/superpowers` into `vendor/superpowers-source/`.
11
+ 2. Copies selected Superpowers skills into `vendor/superpowers/skills/` (the vendored copy that ships with the package).
12
+ 3. Clones or pulls `juicesharp/rpiv-mono` to review RPIV changes.
13
+ 4. Compares the current HEAD of each repo against the last-synced hash.
14
+ 5. Emits a dated report in `docs/memory/upstream-sync-YYYY-MM-DD.md`.
15
+ 6. Updates `docs/memory/.upstream-last-sync.json` so the next run only shows new changes.
16
+
17
+ ## Announce at start
18
+
19
+ > "I'm using the `sync-upstream` skill to pull the latest Superpowers and RPIV changes and decide what to incorporate into Don's Flow."
20
+
21
+ ## When to use
22
+
23
+ - Monthly, per `docs/runbooks/monitor-upstream-evolution.md`.
24
+ - After a project closeout where upstream behavior felt different.
25
+ - Before a new release of `@locksmithdon/dons-flow`.
26
+
27
+ ## Process
28
+
29
+ ### Step 1: Run the sync script
30
+
31
+ ```bash
32
+ ./scripts/sync-upstream.sh
33
+ ```
34
+
35
+ The script requires:
36
+ - `git`
37
+ - `jq`
38
+ - network access to GitHub
39
+
40
+ If `jq` is missing, install it (`brew install jq` on macOS, `apt-get install jq` on Debian/Ubuntu).
41
+
42
+ ### Step 2: Read the report
43
+
44
+ Open the generated report:
45
+
46
+ ```bash
47
+ ls docs/memory/upstream-sync-*.md | tail -1
48
+ ```
49
+
50
+ The report contains:
51
+ - Last-synced and current commit hashes for both repos.
52
+ - Commit log since last sync.
53
+ - Diff stat since last sync.
54
+ - Empty **Decisions** sections for Superpowers and RPIV.
55
+
56
+ ### Step 3: Decide what to incorporate
57
+
58
+ For each upstream change, choose:
59
+
60
+ - **Incorporate** — pull the change into Don's Flow now.
61
+ - **Defer** — relevant but not urgent; note it for next cycle.
62
+ - **Skip** — not relevant to Don's Flow.
63
+
64
+ Edit the report in place with your decisions and impact notes.
65
+
66
+ ### Step 4: Apply incorporated changes
67
+
68
+ Typical changes to make:
69
+
70
+ - **Superpowers skills changed** — the sync script already copies the selected skills into `vendor/superpowers/skills/`. Review the diff and commit the updated vendored skills.
71
+ - **Superpowers adds a new skill** — decide whether to add it to the vendored list in `scripts/sync-upstream.sh`.
72
+ - **RPIV version changed** — bump the RPIV dependency versions in `package.json`.
73
+ - **Workflow instructions changed** — update `README.md`, `skills/setup-dons-flow/SKILL.md`, and `skills/dons-flow/SKILL.md`.
74
+
75
+ ### Step 5: Release
76
+
77
+ After applying changes:
78
+
79
+ 1. Update `docs/memory/monitor_upstream_evolution.md` with the decision summary.
80
+ 2. Bump `package.json` version.
81
+ 3. Commit and push.
82
+ 4. Publish to npm.
83
+
84
+ ## Anti-patterns
85
+
86
+ - **Syncing without reviewing.** The script only surfaces changes; a human must decide what to do with them.
87
+ - **Updating hashes without applying changes.** If you bump `.last-sync.json` but do not act on the diff, you lose track of what you skipped.
88
+ - **Incorporating blindly.** Upstream changes may conflict with Don's Flow conventions. Review before copying.
89
+
90
+ ## See also
91
+
92
+ - `docs/runbooks/monitor-upstream-evolution.md` — the monthly runbook
93
+ - `docs/memory/monitor_upstream_evolution.md` — long-term decision context
94
+ - `scripts/sync-upstream.sh` — the underlying script
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Jesse Vincent
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,164 @@
1
+ ---
2
+ name: brainstorming
3
+ description: "You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation."
4
+ ---
5
+
6
+ # Brainstorming Ideas Into Designs
7
+
8
+ Help turn ideas into fully formed designs and specs through natural collaborative dialogue.
9
+
10
+ Start by understanding the current project context, then ask questions one at a time to refine the idea. Once you understand what you're building, present the design and get user approval.
11
+
12
+ <HARD-GATE>
13
+ Do NOT invoke any implementation skill, write any code, scaffold any project, or take any implementation action until you have presented a design and the user has approved it. This applies to EVERY project regardless of perceived simplicity.
14
+ </HARD-GATE>
15
+
16
+ ## Anti-Pattern: "This Is Too Simple To Need A Design"
17
+
18
+ Every project goes through this process. A todo list, a single-function utility, a config change — all of them. "Simple" projects are where unexamined assumptions cause the most wasted work. The design can be short (a few sentences for truly simple projects), but you MUST present it and get approval.
19
+
20
+ ## Checklist
21
+
22
+ You MUST create a task for each of these items and complete them in order:
23
+
24
+ 1. **Explore project context** — check files, docs, recent commits
25
+ 2. **Offer visual companion** (if topic will involve visual questions) — this is its own message, not combined with a clarifying question. See the Visual Companion section below.
26
+ 3. **Ask clarifying questions** — one at a time, understand purpose/constraints/success criteria
27
+ 4. **Propose 2-3 approaches** — with trade-offs and your recommendation
28
+ 5. **Present design** — in sections scaled to their complexity, get user approval after each section
29
+ 6. **Write design doc** — save to `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md` and commit
30
+ 7. **Spec self-review** — quick inline check for placeholders, contradictions, ambiguity, scope (see below)
31
+ 8. **User reviews written spec** — ask user to review the spec file before proceeding
32
+ 9. **Transition to implementation** — invoke writing-plans skill to create implementation plan
33
+
34
+ ## Process Flow
35
+
36
+ ```dot
37
+ digraph brainstorming {
38
+ "Explore project context" [shape=box];
39
+ "Visual questions ahead?" [shape=diamond];
40
+ "Offer Visual Companion\n(own message, no other content)" [shape=box];
41
+ "Ask clarifying questions" [shape=box];
42
+ "Propose 2-3 approaches" [shape=box];
43
+ "Present design sections" [shape=box];
44
+ "User approves design?" [shape=diamond];
45
+ "Write design doc" [shape=box];
46
+ "Spec self-review\n(fix inline)" [shape=box];
47
+ "User reviews spec?" [shape=diamond];
48
+ "Invoke writing-plans skill" [shape=doublecircle];
49
+
50
+ "Explore project context" -> "Visual questions ahead?";
51
+ "Visual questions ahead?" -> "Offer Visual Companion\n(own message, no other content)" [label="yes"];
52
+ "Visual questions ahead?" -> "Ask clarifying questions" [label="no"];
53
+ "Offer Visual Companion\n(own message, no other content)" -> "Ask clarifying questions";
54
+ "Ask clarifying questions" -> "Propose 2-3 approaches";
55
+ "Propose 2-3 approaches" -> "Present design sections";
56
+ "Present design sections" -> "User approves design?";
57
+ "User approves design?" -> "Present design sections" [label="no, revise"];
58
+ "User approves design?" -> "Write design doc" [label="yes"];
59
+ "Write design doc" -> "Spec self-review\n(fix inline)";
60
+ "Spec self-review\n(fix inline)" -> "User reviews spec?";
61
+ "User reviews spec?" -> "Write design doc" [label="changes requested"];
62
+ "User reviews spec?" -> "Invoke writing-plans skill" [label="approved"];
63
+ }
64
+ ```
65
+
66
+ **The terminal state is invoking writing-plans.** Do NOT invoke frontend-design, mcp-builder, or any other implementation skill. The ONLY skill you invoke after brainstorming is writing-plans.
67
+
68
+ ## The Process
69
+
70
+ **Understanding the idea:**
71
+
72
+ - Check out the current project state first (files, docs, recent commits)
73
+ - Before asking detailed questions, assess scope: if the request describes multiple independent subsystems (e.g., "build a platform with chat, file storage, billing, and analytics"), flag this immediately. Don't spend questions refining details of a project that needs to be decomposed first.
74
+ - If the project is too large for a single spec, help the user decompose into sub-projects: what are the independent pieces, how do they relate, what order should they be built? Then brainstorm the first sub-project through the normal design flow. Each sub-project gets its own spec → plan → implementation cycle.
75
+ - For appropriately-scoped projects, ask questions one at a time to refine the idea
76
+ - Prefer multiple choice questions when possible, but open-ended is fine too
77
+ - Only one question per message - if a topic needs more exploration, break it into multiple questions
78
+ - Focus on understanding: purpose, constraints, success criteria
79
+
80
+ **Exploring approaches:**
81
+
82
+ - Propose 2-3 different approaches with trade-offs
83
+ - Present options conversationally with your recommendation and reasoning
84
+ - Lead with your recommended option and explain why
85
+
86
+ **Presenting the design:**
87
+
88
+ - Once you believe you understand what you're building, present the design
89
+ - Scale each section to its complexity: a few sentences if straightforward, up to 200-300 words if nuanced
90
+ - Ask after each section whether it looks right so far
91
+ - Cover: architecture, components, data flow, error handling, testing
92
+ - Be ready to go back and clarify if something doesn't make sense
93
+
94
+ **Design for isolation and clarity:**
95
+
96
+ - Break the system into smaller units that each have one clear purpose, communicate through well-defined interfaces, and can be understood and tested independently
97
+ - For each unit, you should be able to answer: what does it do, how do you use it, and what does it depend on?
98
+ - Can someone understand what a unit does without reading its internals? Can you change the internals without breaking consumers? If not, the boundaries need work.
99
+ - Smaller, well-bounded units are also easier for you to work with - you reason better about code you can hold in context at once, and your edits are more reliable when files are focused. When a file grows large, that's often a signal that it's doing too much.
100
+
101
+ **Working in existing codebases:**
102
+
103
+ - Explore the current structure before proposing changes. Follow existing patterns.
104
+ - Where existing code has problems that affect the work (e.g., a file that's grown too large, unclear boundaries, tangled responsibilities), include targeted improvements as part of the design - the way a good developer improves code they're working in.
105
+ - Don't propose unrelated refactoring. Stay focused on what serves the current goal.
106
+
107
+ ## After the Design
108
+
109
+ **Documentation:**
110
+
111
+ - Write the validated design (spec) to `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md`
112
+ - (User preferences for spec location override this default)
113
+ - Use elements-of-style:writing-clearly-and-concisely skill if available
114
+ - Commit the design document to git
115
+
116
+ **Spec Self-Review:**
117
+ After writing the spec document, look at it with fresh eyes:
118
+
119
+ 1. **Placeholder scan:** Any "TBD", "TODO", incomplete sections, or vague requirements? Fix them.
120
+ 2. **Internal consistency:** Do any sections contradict each other? Does the architecture match the feature descriptions?
121
+ 3. **Scope check:** Is this focused enough for a single implementation plan, or does it need decomposition?
122
+ 4. **Ambiguity check:** Could any requirement be interpreted two different ways? If so, pick one and make it explicit.
123
+
124
+ Fix any issues inline. No need to re-review — just fix and move on.
125
+
126
+ **User Review Gate:**
127
+ After the spec review loop passes, ask the user to review the written spec before proceeding:
128
+
129
+ > "Spec written and committed to `<path>`. Please review it and let me know if you want to make any changes before we start writing out the implementation plan."
130
+
131
+ Wait for the user's response. If they request changes, make them and re-run the spec review loop. Only proceed once the user approves.
132
+
133
+ **Implementation:**
134
+
135
+ - Invoke the writing-plans skill to create a detailed implementation plan
136
+ - Do NOT invoke any other skill. writing-plans is the next step.
137
+
138
+ ## Key Principles
139
+
140
+ - **One question at a time** - Don't overwhelm with multiple questions
141
+ - **Multiple choice preferred** - Easier to answer than open-ended when possible
142
+ - **YAGNI ruthlessly** - Remove unnecessary features from all designs
143
+ - **Explore alternatives** - Always propose 2-3 approaches before settling
144
+ - **Incremental validation** - Present design, get approval before moving on
145
+ - **Be flexible** - Go back and clarify when something doesn't make sense
146
+
147
+ ## Visual Companion
148
+
149
+ A browser-based companion for showing mockups, diagrams, and visual options during brainstorming. Available as a tool — not a mode. Accepting the companion means it's available for questions that benefit from visual treatment; it does NOT mean every question goes through the browser.
150
+
151
+ **Offering the companion:** When you anticipate that upcoming questions will involve visual content (mockups, layouts, diagrams), offer it once for consent:
152
+ > "Some of what we're working on might be easier to explain if I can show it to you in a web browser. I can put together mockups, diagrams, comparisons, and other visuals as we go. This feature is still new and can be token-intensive. Want to try it? (Requires opening a local URL)"
153
+
154
+ **This offer MUST be its own message.** Do not combine it with clarifying questions, context summaries, or any other content. The message should contain ONLY the offer above and nothing else. Wait for the user's response before continuing. If they decline, proceed with text-only brainstorming.
155
+
156
+ **Per-question decision:** Even after the user accepts, decide FOR EACH QUESTION whether to use the browser or the terminal. The test: **would the user understand this better by seeing it than reading it?**
157
+
158
+ - **Use the browser** for content that IS visual — mockups, wireframes, layout comparisons, architecture diagrams, side-by-side visual designs
159
+ - **Use the terminal** for content that is text — requirements questions, conceptual choices, tradeoff lists, A/B/C/D text options, scope decisions
160
+
161
+ A question about a UI topic is not automatically a visual question. "What does personality mean in this context?" is a conceptual question — use the terminal. "Which wizard layout works better?" is a visual question — use the browser.
162
+
163
+ If they agree to the companion, read the detailed guide before proceeding:
164
+ `skills/brainstorming/visual-companion.md`