@locksmithdon/dons-flow 2.0.0 → 2.1.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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 locksmithdon
3
+ Copyright (c) 2026 Don Smith
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,69 +1,147 @@
1
1
  # @locksmithdon/dons-flow
2
2
 
3
- **Don's Flow v2** a developer-specific Pi Agent workflow package that combines:
3
+ **Don's Flow v2** is a way of composing three distinct approaches to agentic software development into one developer-owned workflow:
4
4
 
5
- - **[RPIV](https://www.npmjs.com/package/@juicesharp/rpiv-pi)** — the observable, artifact-chained delivery pipeline (`discover research design plan implement validate review → commit`).
6
- - **[Superpowers](https://github.com/obra/superpowers)** — scope control, verification-before-claims, and TDD/subagent execution patterns.
7
- - **A structured cycle closeout (`land`)** — the 10-step ritual that turns a verified branch into a clean, navigable, documented codebase ready for the next cycle.
5
+ 1. **[Superpowers](https://github.com/obra/superpowers)** — the methodology you already trust. Socratic design (`brainstorming`), bite-sized plans (`writing-plans`), red/green TDD (`test-driven-development`), and subagent-driven execution (`subagent-driven-development`). It is fast, opinionated, and proven.
6
+ 2. **[RPIV](https://www.npmjs.com/package/@juicesharp/rpiv-pi)** — Juice Sharp's observable, artifact-chained delivery pipeline: `discover → research → design → plan → implement → validate → review → commit`. It adds deliberate checkpoints, self-reflection, and a durable paper trail.
7
+ 3. **Don's closeout discipline** — the `land` ritual, `epiphany-tabling`, as-built documentation, retros, and memory reconciliation. It closes the cycle so the next one starts clean.
8
8
 
9
- This package is opinionated. It assumes a particular doc layout and a particular philosophy about what belongs in the codebase vs. what belongs in the developer's tooling.
9
+ None of these replaces the others. Superpowers excels at the inner loop of design and execution. RPIV excels at observable, reviewable delivery. Don's discipline excels at cycle boundaries and learning capture. Together they form a workflow that is fast *and* reflective *and* humane.
10
10
 
11
- > **Why v2?** The first iteration of Don's Flow was a Superpowers-based workflow with a custom landing ritual. This version integrates RPIV's observable delivery pipeline while keeping the closeout, scope-control, and learning-capture practices that made v1 work.
11
+ > **Why v2?** The first iteration of Don's Flow was Superpowers plus a custom landing ritual. v2 keeps that landing ritual and adds RPIV's pipeline as a first-class partner rather than a replacement.
12
12
 
13
- ## Install
13
+ ## What each system contributes
14
+
15
+ | System | Core gift | Typical entry points |
16
+ |---|---|---|
17
+ | **Superpowers** | Auto-triggering, opinionated software development methodology | `brainstorming`, `writing-plans`, `test-driven-development`, `subagent-driven-development`, `verification-before-completion` |
18
+ | **RPIV** | Observable, artifact-chained delivery pipeline with built-in reflection | `discover`, `research`, `blueprint`, `implement`, `validate`, `code-review` |
19
+ | **Don's Flow** | Cycle boundaries, scope control, and learning capture | `land`, `epiphany-tabling`, `capturing-learnings`, `as-built-documentation`, `writing-retros` |
20
+
21
+ ## Installation
22
+
23
+ Install in each repo where you want the workflow, or install once in your global Pi configuration if you want it everywhere.
24
+
25
+ ### 1. Install Superpowers
26
+
27
+ Superpowers is a harness plugin, not an npm package. Install it for the agent you are using:
28
+
29
+ **Claude Code**
30
+ ```bash
31
+ /plugin install superpowers@claude-plugins-official
32
+ ```
33
+ Or register the Superpowers marketplace first:
34
+ ```bash
35
+ /plugin marketplace add obra/superpowers-marketplace
36
+ /plugin install superpowers@superpowers-marketplace
37
+ ```
38
+
39
+ **Codex CLI / Codex App**
40
+ ```bash
41
+ /plugins
42
+ # search "Superpowers" and select Install Plugin
43
+ ```
44
+
45
+ **Gemini CLI**
46
+ ```bash
47
+ gemini extensions install https://github.com/obra/superpowers
48
+ ```
49
+
50
+ **Factory Droid**
51
+ ```bash
52
+ droid plugin marketplace add https://github.com/obra/superpowers
53
+ droid plugin install superpowers@superpowers
54
+ ```
55
+
56
+ **OpenCode**
57
+ ```bash
58
+ # Fetch and follow instructions from:
59
+ # https://raw.githubusercontent.com/obra/superpowers/refs/heads/main/.opencode/INSTALL.md
60
+ ```
61
+
62
+ **Cursor**
63
+ ```bash
64
+ /add-plugin superpowers
65
+ # or search "superpowers" in the plugin marketplace
66
+ ```
67
+
68
+ **GitHub Copilot CLI**
69
+ ```bash
70
+ copilot plugin marketplace add obra/superpowers-marketplace
71
+ copilot plugin install superpowers@superpowers-marketplace
72
+ ```
73
+
74
+ Full instructions are at [obra/superpowers](https://github.com/obra/superpowers).
75
+
76
+ ### 2. Install RPIV and this package
77
+
78
+ RPIV and the Pi subagent runtime are declared as peer dependencies of this package. With npm 7+, they are installed automatically when you install `@locksmithdon/dons-flow`:
14
79
 
15
80
  ```bash
16
81
  pi install npm:@locksmithdon/dons-flow
17
82
  ```
18
83
 
19
- This package peer-depends on RPIV, the Pi subagent runtime, and Superpowers:
84
+ If your Pi setup does not auto-install peer dependencies, install them explicitly:
20
85
 
21
86
  ```bash
22
87
  pi install npm:@juicesharp/rpiv-pi
23
88
  pi install npm:@tintinweb/pi-subagents
89
+ pi install npm:@locksmithdon/dons-flow
24
90
  ```
25
91
 
26
- Superpowers is not published to npm under a name we can resolve cleanly, so it is declared as an **optional git peer dependency** (`github:obra/superpowers`). You have three ways to satisfy it:
92
+ If RPIV's `/rpiv-setup` command is available, run it once and restart Pi to install RPIV's sibling plugins.
27
93
 
28
- 1. **Install via your agent harness's plugin system** (most common):
29
- - Claude Code: `/plugin install superpowers@superpowers-marketplace`
30
- - Codex CLI: `/plugins` → search "Superpowers"
31
- - Gemini CLI: `gemini extensions install https://github.com/obra/superpowers`
32
- - See [obra/superpowers](https://github.com/obra/superpowers) for other harnesses.
94
+ ### 3. Onboard the repo
95
+
96
+ ```bash
97
+ /skill:setup-dons-flow
98
+ ```
33
99
 
34
- 2. **Install from GitHub directly** (if your Pi/npm setup supports git URLs):
35
- ```bash
36
- pi install github:obra/superpowers
37
- # or
38
- npm install github:obra/superpowers
39
- ```
100
+ This checks prerequisites, detects Superpowers, and creates the repo-owned conventions listed below.
40
101
 
41
- 3. **Fork and publish under your own scope** (cleanest long-term):
42
- Fork `obra/superpowers`, publish it as `@locksmithdon/superpowers`, then update this package's `peerDependencies` to point at your scoped package. This is the closest analog to how we track RPIV.
102
+ ## Three ways to work
43
103
 
44
- If RPIV's `/rpiv-setup` command is available, it can install the RPIV sibling plugins in one go.
104
+ Don's Flow is not a single mandatory pipeline. It is a score you can conduct in different ways depending on the work.
45
105
 
46
- ## Relationship to Superpowers
106
+ ### Mode A Superpowers-led
47
107
 
48
- This package does not replace Superpowers. It treats Superpowers as the upstream methodology for:
108
+ Best when the problem is well-shaped and you want autonomous, TDD-driven execution.
49
109
 
50
- - `brainstorming` — Socratic design refinement before code.
51
- - `writing-plans` bite-sized, code-complete implementation plans.
52
- - `subagent-driven-development` / `executing-plans` — task execution with review.
53
- - `test-driven-development` — red/green/refactor discipline.
54
- - `verification-before-completion` — evidence-before-claims.
110
+ ```
111
+ brainstorming writing-plans subagent-driven-development → verification-before-completion land
112
+ ```
55
113
 
56
- Where RPIV provides an equivalent or stronger mechanism, this package routes through RPIV (e.g., `discover`/`research`/`blueprint` for design and planning, `implement`/`validate` for execution). Where Superpowers has no RPIV equivalent, this package ports or keeps the Superpowers skill (e.g., `land`, `epiphany-tabling`, `capturing-learnings`).
114
+ Use RPIV only if you hit a research or validation gap that Superpowers does not cover on its own.
57
115
 
58
- ## What this package adds to RPIV
116
+ ### Mode B RPIV-led
59
117
 
60
- RPIV gives you a strong delivery pipeline. This package adds the seams around it:
118
+ Best when the problem needs discovery, research, or a durable decision trail.
119
+
120
+ ```
121
+ discover → research → blueprint → implement → validate → code-review → commit → land
122
+ ```
123
+
124
+ Use Superpowers inside `implement` for TDD and subagent execution if you want its inner-loop discipline.
125
+
126
+ ### Mode C — The mixed default
127
+
128
+ Best for substantial work where you want both reflection and autonomy.
129
+
130
+ ```
131
+ discover → research → blueprint → implement (with Superpowers TDD + subagents) → validate → code-review → commit → land
132
+ ```
133
+
134
+ Between every major artifact, run `capturing-learnings`. During execution, keep `epiphany-tabling` active. If you stop mid-work, use `create-handoff` / `resume-handoff`.
135
+
136
+ ## What this package adds
137
+
138
+ This package provides the seams between the three systems:
61
139
 
62
140
  | Skill | Purpose |
63
141
  |---|---|
64
- | `dons-flow` | The map. Tells you which skill to invoke when, and how the workflow fits together. |
142
+ | `dons-flow` | The map. Helps you choose Mode A, B, or C for a given piece of work. |
65
143
  | `setup-dons-flow` | Onboarding: checks prerequisites, detects Superpowers, creates repo conventions. |
66
- | `land` | The 10-step cycle closeout: code review → arch review → security review → as-built docs → doc/knowledge-graph review → AGENTS.md updates → memory reconcile → retro → status review → integrate. |
144
+ | `land` | The 10-step cycle closeout: code review → architectural review → security review → as-built docs → doc/knowledge-graph review → AGENTS.md updates → memory reconcile → retro → status review → integrate. |
67
145
  | `epiphany-tabling` | Capture mid-flight realizations in `docs/tabled.md` without derailing current work. |
68
146
  | `as-built-documentation` | Replace spec/plan scaffolding with a permanent `docs/changes/` record of what shipped. |
69
147
  | `capturing-learnings` | End-of-artifact checkpoints + the "once is a moment; twice is a pattern" promotion rule. |
@@ -72,24 +150,9 @@ RPIV gives you a strong delivery pipeline. This package adds the seams around it
72
150
  | `finishing-a-development-branch` | Merge / PR / cleanup decisions at cycle end. |
73
151
  | `using-git-worktrees` | Isolated workspaces for parallel workstreams. |
74
152
 
75
- ## The integrated workflow
76
-
77
- ```
78
- /skill:discover "..."
79
- /skill:research .rpiv/artifacts/discover/<latest>.md
80
- /skill:blueprint .rpiv/artifacts/research/<latest>.md # or design → plan
81
- /skill:implement .rpiv/artifacts/plans/<latest>.md
82
- /skill:validate .rpiv/artifacts/plans/<latest>.md
83
- /skill:code-review
84
- /skill:commit
85
- /skill:land
86
- ```
87
-
88
- Between every major artifact, run `capturing-learnings`. During execution, keep `epiphany-tabling` active. If you stop mid-work, use `create-handoff` / `resume-handoff`.
89
-
90
153
  ## Repo conventions
91
154
 
92
- This workflow expects the following project-owned files and folders in the codebase:
155
+ These documents live in the codebase because they are shared context for the whole team. The skills that produce and maintain them live in this package.
93
156
 
94
157
  | Path | Purpose |
95
158
  |---|---|
@@ -101,8 +164,6 @@ This workflow expects the following project-owned files and folders in the codeb
101
164
  | `docs/runbooks/` | Multi-skill processes |
102
165
  | `AGENTS.md` | Repo-level agent guidance |
103
166
 
104
- These documents live in the codebase because they are shared context for the whole team. The skills that produce and maintain them live in this package.
105
-
106
167
  ## Philosophy: what lives where
107
168
 
108
169
  **In the codebase (shared):**
@@ -120,7 +181,7 @@ This separation lets the same workflow travel with you across repos while keepin
120
181
 
121
182
  ## Monitoring upstream evolution
122
183
 
123
- The dependency relationship with Superpowers is intentionally deferred. We review monthly whether to keep the git peer dependency, fork Superpowers, or drop it.
184
+ The dependency relationship with Superpowers is intentionally deferred. Superpowers is installed via your harness, so we do not need to resolve it as an npm dependency. We review monthly whether to keep this arrangement, fork Superpowers, or drop the peer dependency entirely.
124
185
 
125
186
  - Memory: `docs/memory/monitor_upstream_evolution.md`
126
187
  - Runbook: `docs/runbooks/monitor-upstream-evolution.md`
@@ -129,11 +190,15 @@ Set a monthly calendar reminder for the 13th, or run the runbook after every 2
129
190
 
130
191
  ## Typical first use
131
192
 
132
- 1. Install this package and its peer dependencies in a repo.
133
- 2. Run `/skill:setup-dons-flow` to check prerequisites and scaffold repo conventions.
134
- 3. Start a feature with `/skill:discover "[feature description]"`.
135
- 4. When implementation is validated and reviewed, run `/skill:land` to close the cycle.
136
- 5. After 2–3 projects, run `docs/runbooks/monitor-upstream-evolution.md` and decide whether to fork Superpowers.
193
+ 1. Install Superpowers for your harness.
194
+ 2. Install `npm:@juicesharp/rpiv-pi`, `npm:@tintinweb/pi-subagents`, and `npm:@locksmithdon/dons-flow`.
195
+ 3. Run `/skill:setup-dons-flow` to scaffold repo conventions.
196
+ 4. Choose a mode:
197
+ - Superpowers-led: start with `brainstorming`.
198
+ - RPIV-led: start with `/skill:discover "[feature description]"`.
199
+ - Mixed: start with `discover`, then use Superpowers inside `implement`.
200
+ 5. Close the cycle with `/skill:land`.
201
+ 6. After 2–3 projects, run the upstream monitoring runbook.
137
202
 
138
203
  ## License
139
204
 
@@ -9,14 +9,14 @@ next-review: 2026-07-13
9
9
 
10
10
  How should `@locksmithdon/dons-flow` track its upstream projects?
11
11
 
12
- - **RPIV** (`@juicesharp/rpiv-pi`) is published to npm and already declared as a normal peer dependency.
13
- - **Superpowers** (`obra/superpowers`) is a GitHub-only skills framework, not published to npm under a resolvable name. The `superpowers` name on npm is taken by an unrelated package.
12
+ - **RPIV** (`@juicesharp/rpiv-pi`) is published to npm and declared as a normal peer dependency.
13
+ - **Superpowers** (`obra/superpowers`) is a harness plugin, not an npm package. It is installed via Claude, Codex, Gemini, Cursor, Copilot, or other agent harnesses, not via `pi install` or `npm install`.
14
14
 
15
- We are not forking or publishing Superpowers yet. Instead, we declared it as an optional git peer dependency (`github:obra/superpowers`) and will monitor both projects for 2–3 months before deciding whether to:
15
+ We are not forking or publishing Superpowers yet. Instead, we document it as a harness-plugin dependency and will monitor both projects for 2–3 months before deciding whether to:
16
16
 
17
- 1. Keep the optional git peer dependency.
17
+ 1. Keep the harness-plugin arrangement.
18
18
  2. Fork Superpowers and publish it under `@locksmithdon/superpowers` as a normal npm peer dependency.
19
- 3. Remove the Superpowers peer dependency entirely and rely on this package's ported closeout skills + RPIV's pipeline.
19
+ 3. Drop Superpowers integration entirely and rely on this package's ported closeout skills + RPIV's pipeline.
20
20
  4. Some hybrid we haven't thought of yet.
21
21
 
22
22
  ## Why we deferred
@@ -28,20 +28,20 @@ The integration is new. We want real usage data — at least 2–3 projects run
28
28
  | Project | URL | What to check |
29
29
  |---|---|---|
30
30
  | RPIV | https://github.com/juicesharp/rpiv-mono | New skills that overlap with our closeout workflow; changes to `implement`, `validate`, `code-review`; new onboarding commands. |
31
- | Superpowers | https://github.com/obra/superpowers | New closeout/landing skills; npm publishing; changes to `brainstorming`, `writing-plans`, `verification-before-completion`; license changes. |
31
+ | Superpowers | https://github.com/obra/superpowers | New closeout/landing skills; npm publishing; changes to `brainstorming`, `writing-plans`, `verification-before-completion`; license changes; new harness install paths. |
32
32
 
33
33
  ## Decision criteria
34
34
 
35
35
  Fork and publish Superpowers if:
36
36
  - We find ourselves needing its upstream entry points (`brainstorming`, `test-driven-development`, `subagent-driven-development`) in projects where RPIV equivalents don't fit.
37
37
  - Superpowers still isn't on npm after 3 months of monitoring.
38
- - The maintenance burden of a fork feels smaller than the friction of the git dependency.
38
+ - The maintenance burden of a fork feels smaller than the friction of the harness-plugin install path.
39
39
 
40
- Keep the git peer dependency if:
41
- - The optional install path works reliably across harnesses.
42
- - We rarely need Superpowers-specific entry points because RPIV covers the pipeline.
40
+ Keep the harness-plugin arrangement if:
41
+ - The plugin install path works reliably across harnesses.
42
+ - We value staying on the upstream release channel.
43
43
 
44
- Remove it if:
44
+ Drop Superpowers integration if:
45
45
  - RPIV adds equivalent closeout/landing skills.
46
46
  - We stop using Superpowers entry points entirely.
47
47
 
@@ -1,12 +1,12 @@
1
1
  # Runbook: Monitor Upstream Evolution
2
2
 
3
- Check RPIV and Superpowers monthly to decide how `@locksmithdon/dons-flow` should track them.
3
+ Check RPIV and Superpowers monthly to decide how `@locksmithdon/dons-flow` should track them. Superpowers is a harness plugin; RPIV is an npm package.
4
4
 
5
5
  ## Schedule
6
6
 
7
7
  - **Cadence:** Monthly, or after every 2–3 projects completed with this workflow.
8
8
  - **Duration:** 15–30 minutes.
9
- - **Owner:** @locksmithdon.
9
+ - **Owner:** Don Smith.
10
10
 
11
11
  ## Trigger
12
12
 
@@ -31,7 +31,7 @@ Record findings in `docs/memory/monitor_upstream_evolution.md` under a dated hea
31
31
  Visit https://github.com/obra/superpowers and look at:
32
32
 
33
33
  - **Releases / RELEASE-NOTES.md** — new versions.
34
- - **Skills** — has Superpowers added a `land`, `closeout`, or `as-built` skill? Has it published to npm?
34
+ - **Skills** — has Superpowers added a `land`, `closeout`, or `as-built` skill? Has it published to npm or added new harness install paths?
35
35
  - **Brainstorming / writing-plans / subagent-driven-development** — have these changed in ways that make them more or less attractive than RPIV equivalents?
36
36
  - **License** — still MIT and forkable?
37
37
 
@@ -42,7 +42,7 @@ Record findings in `docs/memory/monitor_upstream_evolution.md` under the same da
42
42
  Review recent projects that used this workflow:
43
43
 
44
44
  - Did we use Superpowers-specific entry points (`brainstorming`, `writing-plans`, `subagent-driven-development`) or RPIV entry points (`discover`, `blueprint`, `implement`)?
45
- - Did the optional git peer dependency cause install friction?
45
+ - Did the harness-plugin install path for Superpowers cause friction?
46
46
  - Did RPIV's pipeline cover everything we needed?
47
47
  - Did our `land` skill feel like the right cycle boundary?
48
48
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@locksmithdon/dons-flow",
3
- "version": "2.0.0",
3
+ "version": "2.1.1",
4
4
  "description": "Don's Flow v2 — a developer-specific Pi Agent workflow built on RPIV's observable pipeline, Superpowers' discipline, and a structured landing closeout.",
5
5
  "keywords": [
6
6
  "pi-package",
@@ -14,7 +14,7 @@
14
14
  "closeout"
15
15
  ],
16
16
  "license": "MIT",
17
- "author": "locksmithdon",
17
+ "author": "Don Smith",
18
18
  "type": "module",
19
19
  "repository": {
20
20
  "type": "git",
@@ -41,13 +41,7 @@
41
41
  "peerDependencies": {
42
42
  "@earendil-works/pi-coding-agent": "*",
43
43
  "@tintinweb/pi-subagents": "*",
44
- "@juicesharp/rpiv-pi": "*",
45
- "superpowers": "github:obra/superpowers"
46
- },
47
- "peerDependenciesMeta": {
48
- "superpowers": {
49
- "optional": true
50
- }
44
+ "@juicesharp/rpiv-pi": "*"
51
45
  },
52
46
  "scripts": {
53
47
  "lint": "echo 'No lint configured yet'",
@@ -1,39 +1,39 @@
1
1
  ---
2
2
  name: dons-flow
3
- description: Use when starting or navigating a major piece of work to apply the integrated RPIV + Superpowers-style workflow discovery, research, design/plan, implement, validate, review, commit, and land
3
+ description: Use when starting or navigating a major piece of work to apply the integrated Superpowers + RPIV + Don's closeout workflow
4
4
  ---
5
5
 
6
6
  # Don's Flow
7
7
 
8
- **Version 2** of the integrated workflow for developer `@locksmithdon`: **RPIV's observable, artifact-chained delivery pipeline** plus **Superpowers' scope control, verification discipline, and cycle closeout**, with the `land` ritual that neither provides on its own.
8
+ **Version 2** of the developer workflow for Don Smith. It composes three independent systems into one working practice:
9
9
 
10
- v1 was Superpowers-based with a custom landing ritual. v2 adds RPIV's pipeline while keeping the closeout, scope-control, and learning-capture practices.
10
+ 1. **Superpowers** Jesse Vincent's agentic methodology: Socratic design, bite-sized plans, red/green TDD, and subagent-driven execution. It is the system that got Don here.
11
+ 2. **RPIV** — Juice Sharp's observable, artifact-chained delivery pipeline. It adds deliberate checkpoints, self-reflection, and a durable paper trail.
12
+ 3. **Don's closeout discipline** — the `land` ritual, `epiphany-tabling`, as-built documentation, retros, and memory reconciliation. It closes the cycle so the next one starts clean.
11
13
 
12
- This skill is the map. It does not replace the skills it references — it tells you which skill to invoke when, and which conventions must stay true across all of them.
13
-
14
- Superpowers is the upstream methodology at [obra/superpowers](https://github.com/obra/superpowers). It is not published to npm under a resolvable name, so this package declares it as an optional git peer dependency (`github:obra/superpowers`). Install it via your agent harness's plugin system, via the git URL, or by forking and publishing it under your own scope.
14
+ This skill is the map. It does not replace the skills it references — it helps you choose which path to take for a given piece of work, and reminds you which conventions must stay true across all of them.
15
15
 
16
16
  ## Announce at start
17
17
 
18
- > "I'm using the `dons-flow` skill to run the integrated RPIV + Superpowers workflow."
18
+ > "I'm using the `dons-flow` skill to run the Superpowers + RPIV + closeout triad."
19
19
 
20
20
  ## When to use this skill
21
21
 
22
- - At the **start** of a new piece of work, to pick the right entry point.
22
+ - At the **start** of a new piece of work, to choose Superpowers-led, RPIV-led, or mixed mode.
23
23
  - When you are **mid-work** and unsure whether to keep going, hand off, revise, or close out.
24
24
  - At the **end** of a validated implementation, to begin the `land` closeout ritual.
25
25
  - When onboarding a fresh repo to this workflow.
26
26
 
27
27
  ## Required installed packages
28
28
 
29
- This skill assumes the following Pi packages are installed:
29
+ This skill assumes the following are available:
30
30
 
31
- - `@juicesharp/rpiv-pi` the RPIV pipeline skills
32
- - `@tintinweb/pi-subagents` — subagent runtime used by RPIV
33
- - `@locksmithdon/dons-flow` — this package, which adds closeout and discipline skills
34
- - `superpowers`the upstream Superpowers methodology (optional, via harness plugin or `github:obra/superpowers`)
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.
35
35
 
36
- If RPIV or the subagent runtime is missing, stop and install them before proceeding. 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`.
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`.
37
37
 
38
38
  ## Before you start
39
39
 
@@ -45,13 +45,47 @@ If this repo has not been onboarded yet, run:
45
45
 
46
46
  That skill checks prerequisites, detects Superpowers, and creates the repo-owned conventions (`docs/tabled.md`, `docs/status.md`, `docs/memory/`, `docs/changes/`, `docs/retros/`, `docs/runbooks/`, `AGENTS.md`).
47
47
 
48
- ## Integrated workflow
48
+ ## Three modes of working
49
+
50
+ Don's Flow is not a single mandatory pipeline. Choose the mode that fits the work.
51
+
52
+ ### Mode A — Superpowers-led
53
+
54
+ Best when the problem is well-shaped and you want autonomous, TDD-driven execution.
49
55
 
50
56
  ```
51
- DiscoverResearchDesign/BlueprintPlanImplement → Validate → Review → Commit → Land
57
+ brainstormingwriting-planssubagent-driven-developmentverification-before-completionland
58
+ ```
59
+
60
+ Use RPIV only if you hit a research or validation gap that Superpowers does not cover on its own.
61
+
62
+ ### Mode B — RPIV-led
63
+
64
+ Best when the problem needs discovery, research, or a durable decision trail.
65
+
66
+ ```
67
+ discover → research → blueprint → implement → validate → code-review → commit → land
52
68
  ```
53
69
 
54
- Each arrow is a skill invocation. Each skill produces or updates an artifact. Nothing is unilateral: every boundary is a conversation or a checkpoint.
70
+ Use Superpowers inside `implement` for TDD and subagent execution if you want its inner-loop discipline.
71
+
72
+ ### Mode C — Mixed default
73
+
74
+ Best for substantial work where you want both reflection and autonomy.
75
+
76
+ ```
77
+ discover → research → blueprint → implement (with Superpowers TDD + subagents) → validate → code-review → commit → land
78
+ ```
79
+
80
+ Between every major artifact, run `capturing-learnings`. During execution, keep `epiphany-tabling` active. If you stop mid-work, use `create-handoff` / `resume-handoff`.
81
+
82
+ ## The RPIV path in detail
83
+
84
+ When you choose Mode B or C, the pipeline below is the default. Each arrow is a skill invocation. Each skill produces or updates an artifact.
85
+
86
+ ```
87
+ Discover → Research → Design/Blueprint → Plan → Implement → Validate → Review → Commit → Land
88
+ ```
55
89
 
56
90
  ### 1. Discover — capture intent
57
91
 
@@ -121,6 +155,7 @@ Each arrow is a skill invocation. Each skill produces or updates an artifact. No
121
155
  - Apply `verification-before-completion` discipline: no success claim without fresh verification evidence.
122
156
  - If a session ends mid-implementation, run `/skill:create-handoff`.
123
157
  - If code reality diverges from the plan, surface it via implement's mismatch flow or run `/skill:revise <plan-path>` first.
158
+ - In mixed mode, invoke Superpowers `test-driven-development` and `subagent-driven-development` inside this phase for the inner loop.
124
159
 
125
160
  ### 6. Validate — verify against the plan
126
161
 
@@ -171,7 +206,7 @@ Each arrow is a skill invocation. Each skill produces or updates an artifact. No
171
206
  9. Status review + resolve `docs/tabled.md`
172
207
  10. Integrate (`finishing-a-development-branch`)
173
208
 
174
- **Integration note:** `land` is the cycle boundary RPIV does not provide. It is the most important addition this package makes.
209
+ **Integration note:** `land` is the cycle boundary neither Superpowers nor RPIV provides. It is the most important addition this package makes.
175
210
 
176
211
  ## Monitoring the relationship
177
212
 
@@ -180,7 +215,7 @@ We intentionally deferred deciding how to track Superpowers long-term. Review mo
180
215
  - `docs/memory/monitor_upstream_evolution.md` — decision context and last review date
181
216
  - `docs/runbooks/monitor-upstream-evolution.md` — the check-in process
182
217
 
183
- After 2–3 projects, decide whether to keep the git peer dependency, fork Superpowers, or drop it.
218
+ After 2–3 projects, decide whether to keep the harness-plugin arrangement, fork Superpowers, or drop the peer dependency.
184
219
 
185
220
  ## Cross-cutting practices
186
221
 
@@ -228,6 +263,7 @@ Your codebase should contain these documents and folders. They are owned by the
228
263
 
229
264
  - **Skipping `land`.** `validate` is not the finish line. Close the cycle.
230
265
  - **Carrying `docs/tabled.md` across cycles.** Resolve every entry during `land` step 9.
266
+ - **Treating one system as the only system.** Superpowers, RPIV, and Don's closeout each have a zone of excellence. Choose deliberately.
231
267
  - **Editing source files during discover/research/design/plan.** Those skills produce artifacts; `implement` edits code.
232
268
  - **Recomposing RPIV slice boundaries.** `design`/`blueprint` owns decomposition; `plan` inherits slices 1:1.
233
269
  - **Letting verification become a rubber stamp.** Evidence first, claims second.
@@ -237,12 +273,17 @@ Your codebase should contain these documents and folders. They are owned by the
237
273
  | I want to... | Invoke |
238
274
  |---|---|
239
275
  | Onboard a repo | `/skill:setup-dons-flow` |
240
- | Capture intent | `/skill:discover "..."` |
276
+ | Choose a workflow mode | `/skill:dons-flow` |
277
+ | Ideate / refine a design | `brainstorming` |
278
+ | Capture intent (RPIV) | `/skill:discover "..."` |
241
279
  | Understand the codebase | `/skill:research <artifact-or-topic>` |
242
280
  | Compare options | `/skill:explore "..."` |
243
281
  | Design + plan separately | `/skill:design <research>` → `/skill:plan <design>` |
244
282
  | Design + plan together | `/skill:blueprint <research>` |
245
- | Execute the plan | `/skill:implement <plan> [Phase N]` |
283
+ | Write a Superpowers plan | `writing-plans` |
284
+ | Execute the plan (RPIV) | `/skill:implement <plan> [Phase N]` |
285
+ | Execute with subagents (Superpowers) | `subagent-driven-development` |
286
+ | Run TDD | `test-driven-development` |
246
287
  | Verify implementation | `/skill:validate <plan>` |
247
288
  | Review changes | `/skill:code-review [scope]` |
248
289
  | Commit changes | `/skill:commit` |
@@ -254,6 +295,7 @@ Your codebase should contain these documents and folders. They are owned by the
254
295
 
255
296
  ## See also
256
297
 
298
+ - Superpowers: [obra/superpowers](https://github.com/obra/superpowers)
257
299
  - RPIV README: `@juicesharp/rpiv-pi`
258
300
  - `setup-dons-flow` — onboarding skill
259
301
  - `land` — the 10-step closeout
@@ -5,17 +5,29 @@ description: Use when installing or onboarding @locksmithdon/dons-flow in a repo
5
5
 
6
6
  # Setup Don's Flow
7
7
 
8
- Onboard a repo to the integrated RPIV + Superpowers + `land` workflow. 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 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.
9
9
 
10
10
  ## Announce at start
11
11
 
12
- > "I'm using the `setup-dons-flow` skill to onboard this repo to the integrated workflow."
12
+ > "I'm using the `setup-dons-flow` skill to onboard this repo to Don's Flow v2."
13
13
 
14
14
  ## When to use
15
15
 
16
16
  - Right after installing `@locksmithdon/dons-flow` in a repo.
17
17
  - When you suspect prerequisites are missing.
18
18
  - When setting up a fresh repo for this workflow.
19
+ - After switching to a new agent harness.
20
+
21
+ ## What Don's Flow needs
22
+
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` |
29
+
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.
19
31
 
20
32
  ## Process
21
33
 
@@ -31,28 +43,80 @@ Look for:
31
43
 
32
44
  | Package | Required? | If missing |
33
45
  |---|---|---|
34
- | `npm:@juicesharp/rpiv-pi` | Yes | `pi install npm:@juicesharp/rpiv-pi` |
35
- | `npm:@tintinweb/pi-subagents` | Yes | `pi install npm:@tintinweb/pi-subagents` |
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`. |
36
48
  | `npm:@locksmithdon/dons-flow` | Yes | `pi install npm:@locksmithdon/dons-flow` |
37
49
 
38
50
  If RPIV is installed, also run `/rpiv-setup` once and restart Pi to install RPIV's sibling plugins.
39
51
 
40
52
  ### Step 2: Detect Superpowers
41
53
 
42
- Superpowers is installed via your agent harness, not as a Pi npm package. Check one of:
54
+ Superpowers is installed via your agent harness, not as a Pi npm package. Check the appropriate method for your harness:
43
55
 
44
- - **Claude Code:** `/plugin list` should show `superpowers`
45
- - **Codex CLI:** `/plugins` should list Superpowers
46
- - **Gemini CLI:** `gemini extensions list` should show it
47
- - **Skills directory:** `ls ~/.pi/agent/skills/` may contain Superpowers skills if they were copied manually
56
+ **Claude Code**
57
+ ```bash
58
+ /plugin list
59
+ ```
60
+ Look for `superpowers`. If missing:
61
+ ```bash
62
+ /plugin install superpowers@claude-plugins-official
63
+ ```
64
+ Or via the Superpowers marketplace:
65
+ ```bash
66
+ /plugin marketplace add obra/superpowers-marketplace
67
+ /plugin install superpowers@superpowers-marketplace
68
+ ```
69
+
70
+ **Codex CLI / Codex App**
71
+ ```bash
72
+ /plugins
73
+ ```
74
+ Search for "Superpowers" and install it.
48
75
 
49
- If Superpowers is not installed, ask the user which path they prefer:
76
+ **Gemini CLI**
77
+ ```bash
78
+ gemini extensions list
79
+ ```
80
+ If missing:
81
+ ```bash
82
+ gemini extensions install https://github.com/obra/superpowers
83
+ ```
84
+
85
+ **Factory Droid**
86
+ ```bash
87
+ droid plugin list
88
+ ```
89
+ If missing:
90
+ ```bash
91
+ droid plugin marketplace add https://github.com/obra/superpowers
92
+ droid plugin install superpowers@superpowers
93
+ ```
94
+
95
+ **OpenCode**
96
+ ```bash
97
+ # Fetch and follow instructions from:
98
+ # https://raw.githubusercontent.com/obra/superpowers/refs/heads/main/.opencode/INSTALL.md
99
+ ```
100
+
101
+ **Cursor**
102
+ ```bash
103
+ /add-plugin superpowers
104
+ ```
105
+ Or search "superpowers" in the plugin marketplace.
106
+
107
+ **GitHub Copilot CLI**
108
+ ```bash
109
+ copilot plugin list
110
+ ```
111
+ If missing:
112
+ ```bash
113
+ copilot plugin marketplace add obra/superpowers-marketplace
114
+ copilot plugin install superpowers@superpowers-marketplace
115
+ ```
50
116
 
51
- 1. **Harness plugin** (recommended for most users)
52
- 2. **Git URL** — `pi install github:obra/superpowers` if their Pi supports git URLs
53
- 3. **Skip for now** — the closeout workflow still works without Superpowers entry points
117
+ If you are unsure which harness is active, ask the user. Do not guess.
54
118
 
55
- Record the choice in `docs/memory/MEMORY.md` if this is a long-lived project.
119
+ 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.
56
120
 
57
121
  ### Step 3: Check repo conventions
58
122
 
@@ -120,8 +184,8 @@ Seed `AGENTS.md` with a minimal entry pointing at this workflow:
120
184
  # AGENTS.md
121
185
 
122
186
  This project uses the `@locksmithdon/dons-flow` workflow:
187
+ - Superpowers for design, planning, TDD, and subagent-driven development.
123
188
  - RPIV pipeline for discovery, research, design/plan, implement, validate, review, commit.
124
- - Superpowers-style scope control and verification discipline.
125
189
  - `land` skill for 10-step cycle closeout.
126
190
 
127
191
  See `docs/runbooks/` for detailed processes and `docs/memory/` for project context.
@@ -137,7 +201,7 @@ Setup status for <repo>:
137
201
  ✓ RPIV installed
138
202
  ✗ @tintinweb/pi-subagents missing — run: pi install npm:@tintinweb/pi-subagents
139
203
  ✓ Repo conventions created
140
- ? Superpowers — not detected; install via harness plugin if desired
204
+ Superpowers detected (Claude Code plugin)
141
205
 
142
206
  Next step: /skill:dons-flow to see the workflow map.
143
207
  ```
@@ -145,7 +209,8 @@ Next step: /skill:dons-flow to see the workflow map.
145
209
  ## Anti-patterns
146
210
 
147
211
  - **Creating conventions without asking.** The repo belongs to the team; don't mutate its doc structure unilaterally.
148
- - **Assuming Superpowers is installed.** It is optional and harness-specific. Always detect or ask.
212
+ - **Guessing the harness.** Always detect or ask which agent harness is in use before giving Superpowers install instructions.
213
+ - **Treating Superpowers as optional decoration.** It is one of the three pillars of this workflow. Detect it accurately and install it if possible.
149
214
  - **Installing packages without confirmation.** Present the install commands; let the human run them.
150
215
 
151
216
  ## Integration