@xulthekl/team-flow 0.23.0 → 0.25.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.
Files changed (79) hide show
  1. package/.claude/always/phase-guard.md +1 -1
  2. package/.claude-plugin/marketplace.json +1 -1
  3. package/.claude-plugin/plugin.json +1 -1
  4. package/.codex-plugin/plugin.json +1 -1
  5. package/.cursor-plugin/marketplace.json +1 -1
  6. package/.cursor-plugin/plugin.json +1 -1
  7. package/.github/plugin/marketplace.json +2 -2
  8. package/AGENTS.md +3 -3
  9. package/CHANGELOG.md +121 -0
  10. package/GEMINI.md +1 -1
  11. package/INSTALL.md +1 -1
  12. package/README.md +1 -1
  13. package/docs/README_en.md +1 -1
  14. package/docs/solutions/INDEX.md +6 -0
  15. package/docs/solutions/cross-phase/2026-07-28-no-summary.md +17 -0
  16. package/docs/solutions/cross-phase/2026-07-29-no-summary.md +17 -0
  17. package/gemini-extension.json +1 -1
  18. package/hooks/pre-tool-use-guard +9 -9
  19. package/hooks/session-start +2 -2
  20. package/llms.txt +1 -1
  21. package/package.json +1 -1
  22. package/plugin.json +1 -1
  23. package/scripts/guard/checks/compound-captured.mjs +70 -0
  24. package/scripts/guard/guard.mjs +3 -1
  25. package/scripts/lib/cmd-state.mjs +2 -0
  26. package/scripts/lib/config-loader.mjs +3 -0
  27. package/scripts/lib/solutions-promote.mjs +1 -1
  28. package/scripts/lib/state-loader.mjs +5 -0
  29. package/skills/bug-investigator/SKILL.md +1 -1
  30. package/skills/build-executor/SKILL.md +19 -19
  31. package/skills/build-executor/implementer-prompt.md +1 -1
  32. package/skills/build-executor/references/execution-modes.md +6 -6
  33. package/skills/build-executor/task-reviewer-prompt.md +1 -1
  34. package/skills/ce-brainstorm/SKILL.md +49 -348
  35. package/skills/ce-brainstorm/references/brainstorm-sections.md +11 -0
  36. package/skills/ce-brainstorm/references/grounding.md +47 -0
  37. package/skills/ce-brainstorm/references/output-format.md +25 -0
  38. package/skills/ce-brainstorm/references/phase0-routing.md +96 -0
  39. package/skills/ce-brainstorm/references/prd-mapping.md +37 -0
  40. package/skills/ce-brainstorm/references/prototype-loop.md +55 -0
  41. package/skills/ce-ideate/SKILL.md +31 -348
  42. package/skills/ce-ideate/references/grounding.md +107 -0
  43. package/skills/ce-ideate/references/phase0-scope.md +134 -0
  44. package/skills/ce-ideate/references/topic-surface.md +37 -0
  45. package/skills/ce-proof/SKILL.md +8 -266
  46. package/skills/ce-proof/references/api-recipes.md +145 -0
  47. package/skills/ce-proof/references/workflows.md +124 -0
  48. package/skills/code-reviewer/SKILL.md +2 -2
  49. package/skills/code-reviewer/code-reviewer-prompt.md +1 -1
  50. package/skills/contract-builder/SKILL.md +6 -6
  51. package/skills/need-explorer/SKILL.md +2 -2
  52. package/skills/prototype/SKILL.md +16 -2
  53. package/skills/prototype/references/agents/design-system-architect.md +11 -122
  54. package/skills/prototype/references/interactive-prototype.md +110 -0
  55. package/skills/prototype/references/layouts.md +188 -2
  56. package/skills/prototype/references/orchestration-flow.md +8 -1
  57. package/skills/prototype/references/template.html +32 -0
  58. package/skills/prototype/references/wireframe.md +117 -0
  59. package/skills/release-archivist/SKILL.md +14 -12
  60. package/skills/release-archivist/references/closing-procedures.md +11 -9
  61. package/skills/spec-merger/SKILL.md +2 -2
  62. package/skills/spec-writer/SKILL.md +3 -3
  63. package/skills/workflow-bootstrap/SKILL.md +13 -2
  64. package/skills/workflow-bootstrap/references/b1-reconnaissance.md +13 -7
  65. package/skills/workflow-bootstrap/scripts/recon-probe.sh +122 -1
  66. package/skills/workflow-orchestrator/references/s2-prd-prototype-loop.md +1 -1
  67. package/skills/workflow-orchestrator/references/s4-split-validate.md +1 -1
  68. package/skills/workflow-orchestrator/references/s5-monitoring.md +1 -1
  69. package/skills/workflow-start/SKILL.md +16 -16
  70. package/skills/workflow-start/references/routing-rules.md +17 -17
  71. package/templates/prd-brainstorm-profile.md +69 -0
  72. package/tests/lib/guard-compound-captured.test.mjs +92 -0
  73. package/tests/lib/guard-specs-merged.test.mjs +2 -0
  74. package/tests/lib/guard-tests-passing.test.mjs +2 -0
  75. package/tests/lib/guard.test.mjs +2 -0
  76. package/tests/lib/solutions-capture.test.mjs +108 -0
  77. package/tests/lib/solutions-index-gen.test.mjs +147 -0
  78. package/tests/lib/solutions-inject.test.mjs +115 -0
  79. package/tests/lib/solutions-promote.test.mjs +200 -0
@@ -15,18 +15,18 @@ When `architecture/sql/` exists, also read:
15
15
  - `architecture/sql/ddl/*.sql` — executable DDL scripts; reference directly for DB schema change tasks instead of hand-writing DDL
16
16
  - `architecture/sql/migration/*.sql` — data migration scripts; execute as-is for data transformation tasks
17
17
 
18
- Check workflow mode first: `npx --yes --package @xulthekl/team-flow@0.23.0 tf state get <change-dir> workflow`. If `tweak` → direct edit mode. If `hotfix` or `full` → standard contract-first discipline.
18
+ Check workflow mode first: `npx --yes --package @xulthekl/team-flow@0.25.1 tf state get <change-dir> workflow`. If `tweak` → direct edit mode. If `hotfix` or `full` → standard contract-first discipline.
19
19
 
20
20
  Branch/worktree preflight before ANY implementation edit (mandatory — do not skip):
21
21
  1. Run the isolation check:
22
22
  ```bash
23
- npx --yes --package @xulthekl/team-flow@0.23.0 tf isolate <change-dir>
23
+ npx --yes --package @xulthekl/team-flow@0.25.1 tf isolate <change-dir>
24
24
  ```
25
25
  This script enforces git isolation: if you are on `main`/`master` it creates a
26
26
  git worktree (preferred) or a new branch, and exits non-zero if it cannot and you
27
27
  have not approved `--force`.
28
- 2. If `npx --yes --package @xulthekl/team-flow@0.23.0 tf isolate` exits non-zero: STOP. Do not edit `main`/`master` in place.
29
- Ask the user for explicit approval (and re-run with `npx --yes --package @xulthekl/team-flow@0.23.0 tf isolate <change-dir> --force`
28
+ 2. If `npx --yes --package @xulthekl/team-flow@0.25.1 tf isolate` exits non-zero: STOP. Do not edit `main`/`master` in place.
29
+ Ask the user for explicit approval (and re-run with `npx --yes --package @xulthekl/team-flow@0.25.1 tf isolate <change-dir> --force`
30
30
  only after they approve).
31
31
  3. If it succeeds, report the chosen branch/worktree and make all implementation
32
32
  edits there.
@@ -52,15 +52,15 @@ Return to `specifying` or `bridging` if: new behavior appears, interfaces change
52
52
  For `full`/`hotfix`, generate proposed waves from the approved contract, then use the recommendation as a decision aid rather than silently defaulting a mode:
53
53
 
54
54
  ```bash
55
- npx --yes --package @xulthekl/team-flow@0.23.0 tf execution recommend <change-dir> \
55
+ npx --yes --package @xulthekl/team-flow@0.25.1 tf execution recommend <change-dir> \
56
56
  --wave <wave-id>:<parallel|serial>:<task,...>[:<depends-on,...>] --json
57
57
  # Show every available mode, the observed facts, and the recommendation to the user.
58
58
  # The command writes a receipt tied to the artifacts, contract, and waves. After the user chooses, record that explicit confirmation:
59
- npx --yes --package @xulthekl/team-flow@0.23.0 tf execution plan <change-dir> \
59
+ npx --yes --package @xulthekl/team-flow@0.25.1 tf execution plan <change-dir> \
60
60
  --mode <selected-mode> --confirm --reason "user-selected execution mode" \
61
61
  --wave <wave-id>:<parallel|serial>:<task,...>[:<depends-on,...>]
62
62
  # Add --acknowledge-recommendation when the selection differs from the recommendation.
63
- npx --yes --package @xulthekl/team-flow@0.23.0 tf execution show <change-dir> --json
63
+ npx --yes --package @xulthekl/team-flow@0.25.1 tf execution show <change-dir> --json
64
64
  ```
65
65
 
66
66
  The optional fourth `--wave` segment names prerequisite wave IDs. `execution show --json` reports `current`, plus each wave's `depends_on`, `receipt`, `blockers`, `retryable`, and `eligible` status. A wave with `retryable: true` has a current `fail` receipt and is eligible only for its focused repair and re-review; its dependents remain blocked until its replacement `pass` receipt. Report the saved plan revision, selected mode, ordered waves, dependencies, and whether every `parallel` wave can actually be dispatched concurrently on the current platform. If concurrency is unavailable, state the capability and reason plainly; retain the planned `parallel` strategy and do not silently execute it as a serial or Batch Inline plan.
@@ -73,7 +73,7 @@ The recommendation uses task count, configured `execution.inlineThreshold`, and
73
73
  | **Inline** | Recommended for a single sequential task; always available for a user-confirmed choice |
74
74
  | **Batch Inline** | Recommended for a bounded sequential batch; it remains serial and is never presented as parallel |
75
75
 
76
- Do not transition to `executing` until `execution show` reports `current: true` and the phase guard passes. A revised plan must repeat `npx --yes --package @xulthekl/team-flow@0.23.0 tf execution recommend` and use `npx --yes --package @xulthekl/team-flow@0.23.0 tf execution revise --confirm`; it creates a new revision and invalidates receipts from the prior revision.
76
+ Do not transition to `executing` until `execution show` reports `current: true` and the phase guard passes. A revised plan must repeat `npx --yes --package @xulthekl/team-flow@0.25.1 tf execution recommend` and use `npx --yes --package @xulthekl/team-flow@0.25.1 tf execution revise --confirm`; it creates a new revision and invalidates receipts from the prior revision.
77
77
 
78
78
  ## Batch Inline Execution
79
79
 
@@ -88,21 +88,21 @@ Boundaries: if any task touches >1 module, involves schema/API/config changes, o
88
88
  For full/hotfix by default. Dispatch according to the persisted plan, review each planned wave, and run a final broad review after all waves.
89
89
 
90
90
  ### Planned-Wave Loop
91
- 1. Read the current plan with `npx --yes --package @xulthekl/team-flow@0.23.0 tf execution show <change-dir> --json`; only waves shown with `current: true` and `eligible: true` may start. A `retryable: true` wave may only be repaired and re-reviewed; do not dispatch its dependents until its replacement receipt is `pass`. The CLI encodes dependencies in `--wave <id>:<strategy>:<tasks>[:<depends-on,...>]` and rejects a review receipt for a wave whose prerequisites lack current `pass` receipts.
91
+ 1. Read the current plan with `npx --yes --package @xulthekl/team-flow@0.25.1 tf execution show <change-dir> --json`; only waves shown with `current: true` and `eligible: true` may start. A `retryable: true` wave may only be repaired and re-reviewed; do not dispatch its dependents until its replacement receipt is `pass`. The CLI encodes dependencies in `--wave <id>:<strategy>:<tasks>[:<depends-on,...>]` and rejects a review receipt for a wave whose prerequisites lack current `pass` receipts.
92
92
  2. A `parallel` wave may dispatch independent tasks simultaneously only when the platform supports concurrent dispatch. If it does not, disclose the unavailable capability and execute the same wave one task at a time without changing its stored strategy.
93
93
  3. A `serial` wave dispatches one task at a time in listed order.
94
94
  4. After every wave, write a non-empty persisted regular-file review report (separate from the implementer's report), then record exactly one receipt that names that review report:
95
95
  ```bash
96
- npx --yes --package @xulthekl/team-flow@0.23.0 tf execution review <change-dir> \
96
+ npx --yes --package @xulthekl/team-flow@0.25.1 tf execution review <change-dir> \
97
97
  --wave <wave-id> --base <sha> --head <sha> --report <review-report-path> --verdict <pass|fail>
98
98
  ```
99
99
  Do not begin a dependent wave until its predecessor receipt is `pass`.
100
100
  5. Critical/Important findings require a `fail` receipt, a focused repair, re-review, then a replacement `pass` receipt. Never advance or close with a missing or failed receipt.
101
101
 
102
102
  ### Per-Task Loop
103
- 1. **Dispatch implementer**: Load the template with `npx --yes --package @xulthekl/team-flow@0.23.0 tf runtime asset read skills/build-executor/implementer-prompt.md`. Extract task brief with `scripts/task-brief PLAN_FILE N`. Include: where task fits, brief path, interfaces from prior tasks, report file path.
103
+ 1. **Dispatch implementer**: Load the template with `npx --yes --package @xulthekl/team-flow@0.25.1 tf runtime asset read skills/build-executor/implementer-prompt.md`. Extract task brief with `scripts/task-brief PLAN_FILE N`. Include: where task fits, brief path, interfaces from prior tasks, report file path.
104
104
  2. **Handle response**: DONE → generate review package + dispatch reviewer. DONE_WITH_CONCERNS → assess. NEEDS_CONTEXT → provide context. BLOCKED → re-dispatch with better model or escalate.
105
- 3. **Review**: Load `npx --yes --package @xulthekl/team-flow@0.23.0 tf runtime asset read skills/build-executor/task-reviewer-prompt.md`. Reviewer returns spec compliance + code quality verdicts with the wave ID, git range, report path, and `pass`/`fail` receipt command.
105
+ 3. **Review**: Load `npx --yes --package @xulthekl/team-flow@0.25.1 tf runtime asset read skills/build-executor/task-reviewer-prompt.md`. Reviewer returns spec compliance + code quality verdicts with the wave ID, git range, report path, and `pass`/`fail` receipt command.
106
106
  4. **Fix**: If Critical or Important issues, write the `fail` receipt, dispatch fix subagent, re-review, and write the replacement `pass` receipt.
107
107
  5. **Mark complete**: Append to `.superpowers/sdd/progress.md`: `Task N: complete (commits <base7>..<head7>, review clean)`
108
108
 
@@ -110,7 +110,7 @@ For full/hotfix by default. Dispatch according to the persisted plan, review eac
110
110
  Use the configured profile that matches the task role. Resolve it before dispatch:
111
111
 
112
112
  ```bash
113
- npx --yes --package @xulthekl/team-flow@0.23.0 tf runtime config --resolve-model <profile>
113
+ npx --yes --package @xulthekl/team-flow@0.25.1 tf runtime config --resolve-model <profile>
114
114
  ```
115
115
 
116
116
  | Profile | Role |
@@ -123,11 +123,11 @@ npx --yes --package @xulthekl/team-flow@0.23.0 tf runtime config --resolve-model
123
123
  For platforms whose dispatch supports a `model` field, explicitly pass the resolved `model` value. If the result is `configured: false`, automatic selection is unavailable: do not invent a provider model and do not bypass the existing requirement to specify `model` explicitly. Resolution only reads configuration; it does not switch models.
124
124
 
125
125
  ### Progress Ledger
126
- Track in `.superpowers/sdd/progress.md`. Check for existing ledger — completed tasks are done. After each batch: `npx --yes --package @xulthekl/team-flow@0.23.0 tf state set <change-dir> batches_completed <N>`.
126
+ Track in `.superpowers/sdd/progress.md`. Check for existing ledger — completed tasks are done. After each batch: `npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> batches_completed <N>`.
127
127
 
128
128
  ## Inline Execution Mode
129
129
 
130
- Only after a user-confirmed `inline` selection is recorded by `npx --yes --package @xulthekl/team-flow@0.23.0 tf execution plan --confirm`; a non-recommended selection also records `--acknowledge-recommendation`. Executes in the current session and still writes one review receipt per planned wave.
130
+ Only after a user-confirmed `inline` selection is recorded by `npx --yes --package @xulthekl/team-flow@0.25.1 tf execution plan --confirm`; a non-recommended selection also records `--acknowledge-recommendation`. Executes in the current session and still writes one review receipt per planned wave.
131
131
 
132
132
  Per-task: extract brief → write failing test → confirm failure → implement → confirm green → checkpoint review (done-when criteria, SHALL/MUST verification) → commit → save a task-level recovery checkpoint when another task remains → append to progress ledger.
133
133
 
@@ -135,7 +135,7 @@ After a task is committed and reviewed, when another task remains, save the
135
135
  recovery context with real evidence:
136
136
 
137
137
  ```bash
138
- npx --yes --package @xulthekl/team-flow@0.23.0 tf checkpoint save <change-dir> \
138
+ npx --yes --package @xulthekl/team-flow@0.25.1 tf checkpoint save <change-dir> \
139
139
  --task <completed-task-id> --next "<next task>" --completed "<completed work>" \
140
140
  --verification "<verification report path>" --review "<review report path>" \
141
141
  --risk "<open risk or None>" --commit-start <base-sha> --commit-end <head-sha>
@@ -143,7 +143,7 @@ npx --yes --package @xulthekl/team-flow@0.23.0 tf checkpoint save <change-dir> \
143
143
 
144
144
  This augments `.superpowers/sdd/progress.md`; it does not replace the progress
145
145
  ledger or add a new core workflow state. Do not claim a checkpoint is current
146
- when `npx --yes --package @xulthekl/team-flow@0.23.0 tf checkpoint list` reports it as stale.
146
+ when `npx --yes --package @xulthekl/team-flow@0.25.1 tf checkpoint list` reports it as stale.
147
147
 
148
148
  If task hits BLOCKED (3+ fix failures or changes outside declared scope), escalate to SDD.
149
149
 
@@ -153,8 +153,8 @@ Skip TDD. Apply changes directly. Verify file integrity (exists, non-empty, vali
153
153
 
154
154
  ## DP Records
155
155
 
156
- DP-4 is written by `npx --yes --package @xulthekl/team-flow@0.23.0 tf execution plan`; do not write it with raw `state set`.
157
- DP-5 (debug escalation): `npx --yes --package @xulthekl/team-flow@0.23.0 tf state set <change-dir> dp_5_result "<resolution>"` + timestamp.
156
+ DP-4 is written by `npx --yes --package @xulthekl/team-flow@0.25.1 tf execution plan`; do not write it with raw `state set`.
157
+ DP-5 (debug escalation): `npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> dp_5_result "<resolution>"` + timestamp.
158
158
 
159
159
  ## Completion Standard
160
160
 
@@ -22,7 +22,7 @@ Subagent (general-purpose):
22
22
  ## Planned Wave
23
23
 
24
24
  You are assigned to planned wave [WAVE_ID] with strategy [WAVE_STRATEGY].
25
- Read `npx --yes --package @xulthekl/team-flow@0.23.0 tf execution show <change-dir> --json` before editing. Do not start
25
+ Read `npx --yes --package @xulthekl/team-flow@0.25.1 tf execution show <change-dir> --json` before editing. Do not start
26
26
  unless all declared dependencies have `pass` review receipts. A `parallel`
27
27
  label permits concurrent dispatch only when the controller confirms the
28
28
  platform supports it; never change the saved wave strategy yourself.
@@ -7,14 +7,14 @@
7
7
  For `full`/`hotfix`, generate proposed waves from the approved contract, then use the recommendation as a decision aid:
8
8
 
9
9
  ```bash
10
- npx --yes --package @xulthekl/team-flow@0.23.0 tf execution recommend <change-dir> \
10
+ npx --yes --package @xulthekl/team-flow@0.25.1 tf execution recommend <change-dir> \
11
11
  --wave <wave-id>:<parallel|serial>:<task,...>[:<depends-on,...>] --json
12
12
  # Show every available mode, the observed facts, and the recommendation to the user.
13
- npx --yes --package @xulthekl/team-flow@0.23.0 tf execution plan <change-dir> \
13
+ npx --yes --package @xulthekl/team-flow@0.25.1 tf execution plan <change-dir> \
14
14
  --mode <selected-mode> --confirm --reason "user-selected execution mode" \
15
15
  --wave <wave-id>:<parallel|serial>:<task,...>[:<depends-on,...>]
16
16
  # Add --acknowledge-recommendation when the selection differs from the recommendation.
17
- npx --yes --package @xulthekl/team-flow@0.23.0 tf execution show <change-dir> --json
17
+ npx --yes --package @xulthekl/team-flow@0.25.1 tf execution show <change-dir> --json
18
18
  ```
19
19
 
20
20
  The optional fourth `--wave` segment names prerequisite wave IDs. `execution show --json` reports `current`, plus each wave's `depends_on`, `receipt`, `blockers`, `retryable`, and `eligible` status.
@@ -37,7 +37,7 @@ Dispatch according to the persisted plan, review each planned wave, and run a fi
37
37
  3. A `serial` wave dispatches one task at a time in listed order.
38
38
  4. After every wave, write a review report, then record one receipt:
39
39
  ```bash
40
- npx --yes --package @xulthekl/team-flow@0.23.0 tf execution review <change-dir> \
40
+ npx --yes --package @xulthekl/team-flow@0.25.1 tf execution review <change-dir> \
41
41
  --wave <wave-id> --base <sha> --head <sha> --report <review-report-path> --verdict <pass|fail>
42
42
  ```
43
43
  5. Critical/Important findings require a `fail` receipt, focused repair, re-review, then replacement `pass` receipt.
@@ -66,7 +66,7 @@ Per-task: extract brief → write failing test → confirm failure → implement
66
66
  ## Model Selection
67
67
 
68
68
  ```bash
69
- npx --yes --package @xulthekl/team-flow@0.23.0 tf runtime config --resolve-model <profile>
69
+ npx --yes --package @xulthekl/team-flow@0.25.1 tf runtime config --resolve-model <profile>
70
70
  ```
71
71
 
72
72
  | Profile | Role |
@@ -79,7 +79,7 @@ npx --yes --package @xulthekl/team-flow@0.23.0 tf runtime config --resolve-model
79
79
  ## Recovery Checkpoint
80
80
 
81
81
  ```bash
82
- npx --yes --package @xulthekl/team-flow@0.23.0 tf checkpoint save <change-dir> \
82
+ npx --yes --package @xulthekl/team-flow@0.25.1 tf checkpoint save <change-dir> \
83
83
  --task <completed-task-id> --next "<next task>" --completed "<completed work>" \
84
84
  --verification "<verification report path>" --review "<review report path>" \
85
85
  --risk "<open risk or None>" --commit-start <base-sha> --commit-end <head-sha>
@@ -146,7 +146,7 @@ Subagent (general-purpose):
146
146
  command for the controller:
147
147
 
148
148
  ```bash
149
- npx --yes --package @xulthekl/team-flow@0.23.0 tf execution review <change-dir> --wave [WAVE_ID] --base [BASE_SHA] --head [HEAD_SHA] --report [REVIEW_REPORT_FILE] --verdict <pass|fail>
149
+ npx --yes --package @xulthekl/team-flow@0.25.1 tf execution review <change-dir> --wave [WAVE_ID] --base [BASE_SHA] --head [HEAD_SHA] --report [REVIEW_REPORT_FILE] --verdict <pass|fail>
150
150
  ```
151
151
 
152
152
  Use `fail` for any Critical/Important finding. A repair must be re-reviewed