@xulthekl/team-flow 0.24.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 (61) 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 +71 -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 +1 -0
  15. package/docs/solutions/cross-phase/2026-07-29-no-summary.md +17 -0
  16. package/gemini-extension.json +1 -1
  17. package/hooks/session-start +1 -1
  18. package/llms.txt +1 -1
  19. package/package.json +1 -1
  20. package/plugin.json +1 -1
  21. package/scripts/lib/config-loader.mjs +3 -0
  22. package/skills/bug-investigator/SKILL.md +1 -1
  23. package/skills/build-executor/SKILL.md +19 -19
  24. package/skills/build-executor/implementer-prompt.md +1 -1
  25. package/skills/build-executor/references/execution-modes.md +6 -6
  26. package/skills/build-executor/task-reviewer-prompt.md +1 -1
  27. package/skills/ce-brainstorm/SKILL.md +49 -348
  28. package/skills/ce-brainstorm/references/brainstorm-sections.md +11 -0
  29. package/skills/ce-brainstorm/references/grounding.md +47 -0
  30. package/skills/ce-brainstorm/references/output-format.md +25 -0
  31. package/skills/ce-brainstorm/references/phase0-routing.md +96 -0
  32. package/skills/ce-brainstorm/references/prd-mapping.md +37 -0
  33. package/skills/ce-brainstorm/references/prototype-loop.md +55 -0
  34. package/skills/ce-ideate/SKILL.md +31 -348
  35. package/skills/ce-ideate/references/grounding.md +107 -0
  36. package/skills/ce-ideate/references/phase0-scope.md +134 -0
  37. package/skills/ce-ideate/references/topic-surface.md +37 -0
  38. package/skills/ce-proof/SKILL.md +8 -266
  39. package/skills/ce-proof/references/api-recipes.md +145 -0
  40. package/skills/ce-proof/references/workflows.md +124 -0
  41. package/skills/code-reviewer/SKILL.md +2 -2
  42. package/skills/code-reviewer/code-reviewer-prompt.md +1 -1
  43. package/skills/contract-builder/SKILL.md +6 -6
  44. package/skills/need-explorer/SKILL.md +2 -2
  45. package/skills/prototype/SKILL.md +16 -2
  46. package/skills/prototype/references/agents/design-system-architect.md +11 -122
  47. package/skills/prototype/references/interactive-prototype.md +110 -0
  48. package/skills/prototype/references/layouts.md +188 -2
  49. package/skills/prototype/references/orchestration-flow.md +8 -1
  50. package/skills/prototype/references/template.html +32 -0
  51. package/skills/prototype/references/wireframe.md +117 -0
  52. package/skills/release-archivist/SKILL.md +14 -12
  53. package/skills/release-archivist/references/closing-procedures.md +11 -9
  54. package/skills/spec-merger/SKILL.md +2 -2
  55. package/skills/spec-writer/SKILL.md +3 -3
  56. package/skills/workflow-orchestrator/references/s2-prd-prototype-loop.md +1 -1
  57. package/skills/workflow-orchestrator/references/s4-split-validate.md +1 -1
  58. package/skills/workflow-orchestrator/references/s5-monitoring.md +1 -1
  59. package/skills/workflow-start/SKILL.md +16 -16
  60. package/skills/workflow-start/references/routing-rules.md +17 -17
  61. package/templates/prd-brainstorm-profile.md +69 -0
@@ -1,3 +1,3 @@
1
- # team-flow v0.24.0 | 阶段: {{state}} | 工作流: {{workflow}}
1
+ # team-flow v0.25.1 | 阶段: {{state}} | 工作流: {{workflow}}
2
2
  当前阶段允许的操作由 workflow-start 路由规则定义。
3
3
  禁止跨越 DP gate 进入下一阶段。变更范围以 execution-contract.md 的 Intent Lock 为准。
@@ -9,7 +9,7 @@
9
9
  {
10
10
  "name": "team-flow",
11
11
  "description": "8-state spec workflow + compound global compounding + architecture-design (4A/DDD) + local HTML prototype + product-level orchestration + bootstrap + e2e + session handoff + workflow feedback. 23 skills + 8 agents with embedded TDD, SDD, code review, debugging, delta spec sync, and design-system-driven prototyping.",
12
- "version": "0.24.0",
12
+ "version": "0.25.1",
13
13
  "source": "./",
14
14
  "author": {
15
15
  "name": "LT",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "team-flow",
3
- "version": "0.24.0",
3
+ "version": "0.25.1",
4
4
  "description": "Unified workflow plugin: team-flow (spec-driven dev: TDD/SDD/code-review/debugging) + compound-engineering core subset (brainstorm/plan/compound/strategy/ideate/proof, global compounding) + architecture-design (4A+DDD incremental design & global compounding) + prototype (local HTML prototype, zero external deps) + e2e (Playwright E2E, AC-driven) + workflow-orchestrator (product-level workflow orchestration) + workflow-bootstrap (existing project onboarding) + session-handoff (context transfer) + workflow-feedback (issue tracking). 23 skills + 8 agents, one install.",
5
5
  "source": "./",
6
6
  "author": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "team-flow",
3
- "version": "0.24.0",
3
+ "version": "0.25.1",
4
4
  "description": "Spec-first workflow that bridges OpenSpec-style planning and Superpowers-style execution discipline.",
5
5
  "author": {
6
6
  "name": "MageByte",
@@ -5,7 +5,7 @@
5
5
  },
6
6
  "metadata": {
7
7
  "description": "Unified workflow plugin marketplace for Cursor (team-flow: team-flow + compound + architecture-design + prototype).",
8
- "version": "0.24.0"
8
+ "version": "0.25.1"
9
9
  },
10
10
  "plugins": [
11
11
  {
@@ -2,7 +2,7 @@
2
2
  "name": "team-flow",
3
3
  "displayName": "team-flow",
4
4
  "description": "Unified workflow plugin: team-flow (spec-driven dev: TDD/SDD/code-review/debugging) + compound-engineering core subset (brainstorm/plan/compound/strategy/ideate/proof, global compounding) + architecture-design (4A+DDD incremental design & global compounding) + prototype (local HTML prototype, zero external deps) + e2e (Playwright E2E, AC-driven) + workflow-orchestrator (product-level workflow orchestration) + workflow-bootstrap (existing project onboarding) + session-handoff (context transfer) + workflow-feedback (issue tracking). 23 skills + 8 agents, one install.",
5
- "version": "0.24.0",
5
+ "version": "0.25.1",
6
6
  "author": {
7
7
  "name": "LT",
8
8
  "url": "https://github.com/LT"
@@ -6,13 +6,13 @@
6
6
  },
7
7
  "metadata": {
8
8
  "description": "Unified workflow plugins and skills for AI coding agents (team-flow: team-flow + compound + architecture-design + prototype).",
9
- "version": "0.24.0"
9
+ "version": "0.25.1"
10
10
  },
11
11
  "plugins": [
12
12
  {
13
13
  "name": "team-flow",
14
14
  "description": "Unified workflow with planning artifacts, execution contracts, TDD, review gates, systematic debugging, delta spec sync, architecture-design, and local HTML prototyping.",
15
- "version": "0.24.0",
15
+ "version": "0.25.1",
16
16
  "source": ".",
17
17
  "author": {
18
18
  "name": "LT",
package/AGENTS.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  - 零运行时依赖(team-flow 底座)
10
10
  - prototype 额外 **零外部依赖、可离线**(自包含 HTML + 页面内 Tweaks 控件,无 CDN)
11
- - 插件保持通用,所有风格由项目 `design-system.md` / `prd.template` 注入,不固化任何公司/产品风格
11
+ - 插件保持通用,所有风格由项目 `design-system.md` / `prd.template`(含配套 `prd-brainstorm-profile.md`)注入,不固化任何公司/产品风格
12
12
 
13
13
  ### 身份与依赖关系
14
14
 
@@ -253,11 +253,11 @@ docs/solutions/
253
253
 
254
254
  项目 `team-flow.config.json` 可注入(**插件层扩展字段,非 team-flow 原生 schema**;原生仅 `artifacts.order` / `artifacts.skip`):
255
255
 
256
- - `prd.template`:PRD 模板路径
256
+ - `prd.template`:PRD 模板路径(默认 `templates/prd.md`,GTMC D7 业务要件 11 章结构)。ce-brainstorm Phase 0.0 首次运行时若未配置,会交互式询问用户选择默认模板或自定义路径,并自动写入配置。自定义模板应配套 brainstorm profile(`<模板名>-brainstorm-profile.md`),否则回退使用内置默认的 GTMC D7 profile
257
257
  - `prototype.designSystem`:项目 `design-system.md` 路径
258
258
  - `prototype.entry`:原型入口(默认 `prototype/index.html`)
259
259
 
260
- 读取方式:`tf runtime config --get <key>`(插件层自读,字段命名避开原生 key 冲突)。
260
+ 读取方式:`tf runtime config --get <key>`(插件层自读,字段命名避开原生 key 冲突)。`prd.template` 已纳入 DEFAULTS(`config-loader.mjs`),未配置时返回默认值而非报错。
261
261
 
262
262
  ## Architecture(team-flow 底座,TypeScript)
263
263
 
package/CHANGELOG.md CHANGED
@@ -6,6 +6,77 @@ The format loosely follows Keep a Changelog.
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.25.1] - 2026-07-29
10
+
11
+ ### Changed(SKILL.md 渐进式披露拆分,P1-9,3 项)
12
+
13
+ #### ce-proof (346→88 行)
14
+ - **skills/ce-proof/SKILL.md**:保留核心决策逻辑(Identity/Credentials/Publish Mode/Edit Strategy/Safety),curl 示例和工作流移入 references
15
+ - **skills/ce-proof/references/api-recipes.md**(新增):Create/Read/Edit/Presence/Title/Delete 的完整 curl 示例 + 错误码表 + Marks & Privacy + When the loop breaks
16
+ - **skills/ce-proof/references/workflows.md**(新增):Review/Create/Pull 三个完整工作流
17
+
18
+ #### ce-brainstorm (458→122 行)
19
+ - **skills/ce-brainstorm/SKILL.md**:保留核心原则 + 每个 Phase 摘要 + reference 引用指针
20
+ - **skills/ce-brainstorm/references/output-format.md**(新增):OUTPUT_FORMAT 5 级优先级解析逻辑
21
+ - **skills/ce-brainstorm/references/phase0-routing.md**(新增):Phase 0 的 Resume/Classify/Verdict/Assess/Scope/Spine/Iteration 详细路由
22
+ - **skills/ce-brainstorm/references/prototype-loop.md**(新增):Phase 3.5 原型内循环完整流程
23
+ - **skills/ce-brainstorm/references/grounding.md**(新增):Phase 1.1 上下文扫描 + grounding scout 提示词 + Slack 路由
24
+
25
+ #### ce-ideate (402→85 行)
26
+ - **skills/ce-ideate/SKILL.md**:保留核心原则 + Phase 摘要 + reference 引用指针
27
+ - **skills/ce-ideate/references/phase0-scope.md**(新增):Phase 0 完整路由逻辑(输出模式/主题门/模式分类/上下文门/聚焦与容量/成本透明)
28
+ - **skills/ce-ideate/references/grounding.md**(新增):Phase 1 模式感知 Grounding(仓库/非仓库调度 + Web 研究 + 用户研究工件 + 综合摘要)
29
+ - **skills/ce-ideate/references/topic-surface.md**(新增):Phase 1.5 主题表面分解(轴标准 + 证据侦察)
30
+
31
+ ## [0.25.0] - 2026-07-29
32
+
33
+ ### Added(brainstorm profile 机制,3 项)
34
+
35
+ #### Brainstorm Profile 机制
36
+ - **templates/prd-brainstorm-profile.md**(新增):GTMC D7 模板的 brainstorm profile,定义核心思考维度(7 项:业务流程/状态模型/权限模型/用户角色/数据关系/业务规则/系统功能)、扩展维度(6 项:画面设计/业务术语/报表需求/交互机制/非功能性需求/编码规则)、反例边界(7 项:禁止后端模块划分/前端页面结构/数据库表设计/API 接口定义/技术选型/部署架构/代码结构)和正向示例
37
+ - **skills/ce-brainstorm/references/prd-mapping.md**:新增"Brainstorm Profile 机制"完整说明(文件命名规则、查找优先级、三段结构、自定义 Profile 指南)
38
+ - **skills/ce-brainstorm/references/brainstorm-sections.md**:新增"Brainstorm profile coverage check"段落,确保核心维度在 PRD 中被覆盖
39
+
40
+ ### Changed(Phase 0 模板选择 + Phase 2 profile 驱动,4 项)
41
+
42
+ #### PRD 模板交互式选择
43
+ - **skills/ce-brainstorm/SKILL.md Phase 0.0**:PRD 模板解析改为 MANDATORY STEP——必须执行 bash 命令检查配置,未配置自定义模板时强制使用 AskUserQuestion 询问用户选择默认或自定义路径,并自动写入 `team-flow.config.json`
44
+ - **skills/ce-brainstorm/SKILL.md Phase 2**:新增"Load brainstorm profile"步骤,按 profile 维度约束方案探索;"Approach granularity"从"mechanism/product shape"改为"profile-driven product thinking, not architecture"
45
+ - **skills/ce-brainstorm/SKILL.md 调用模式**:明确声明 `orchestrated` 模式仅跳过 Phase 3.5,Phase 0-3 均正常执行不可跳过
46
+
47
+ #### Config 默认值
48
+ - **scripts/lib/config-loader.mjs**:DEFAULTS 增加 `prd.template: 'templates/prd.md'`,`tf runtime config --get prd.template` 未配置时返回默认值而非报错
49
+
50
+ ### Documentation(1 项)
51
+
52
+ - **AGENTS.md**:`prd.template` 配置字段说明扩充(含 brainstorm profile 关联说明);通用性描述补充 profile 注入机制
53
+
54
+ ## [0.24.1] - 2026-07-28
55
+
56
+ ### Fixed(prototype skill 体系补强,5 项)
57
+
58
+ #### P0: design-system-architect.md 重复维护
59
+ - **prototype/references/agents/design-system-architect.md**: 替换为迁移指针,指向 `design-system skill` 下的权威版本,消除两份文件内容漂移风险
60
+
61
+ #### P0: Open Design 命名歧义
62
+ - **prototype/SKILL.md**: description 中明确标注 "Open Design 桌面应用"(GUI 工具,互斥项)与 "nexu-io/open-design 开源设计方法论"(craft 规则借鉴源)同名不同义;新增「方法论参考与归因」段
63
+
64
+ #### P1: prototype-sync 自动触发
65
+ - **prototype/SKILL.md**: prototype-sync 段从 "SOP" 升级为 "release-archivist 自动触发",明确标准路径是 closing 流程自动触发
66
+ - **release-archivist/SKILL.md**: 新增 prototype-sync 执行校验段,要求检查 stdout 输出,禁止在未执行时标注为已完成
67
+ - **release-archivist/references/closing-procedures.md**: 同步执行校验段和 write-back order 约束
68
+
69
+ ### Added(原型设计能力扩展,2 项)
70
+
71
+ #### P2-1: 交互原型 + 线框图方法论
72
+ - **prototype/references/interactive-prototype.md**: 新增交互原型方法论(零依赖状态管理、表单验证、多步导航、动态列表)
73
+ - **prototype/references/wireframe.md**: 新增线框图方法论(低保真快速探索、3-5 差异化方案、并排对比)
74
+ - **prototype/references/orchestration-flow.md**: prompt 组装顺序契约新增原型类型注入策略(wireframe / interactive / static)
75
+
76
+ #### P2-2: C 端骨架扩展
77
+ - **prototype/references/layouts.md**: 新增 §9-§14 C 端骨架(hero-xl / marketing-features / social-proof / pricing-c / faq / cta-c),新增 C 端页面节奏表
78
+ - **prototype/references/template.html**: 新增 C 端扩展 CSS(hero-xl / pricing-card / faq-item / urgency 等)
79
+
9
80
  ## [0.24.0] - 2026-07-28
10
81
 
11
82
  ### Fixed(复利工程强制化补强,5 项)
package/GEMINI.md CHANGED
@@ -8,7 +8,7 @@ The workflow is self-contained and does not require OpenSpec or Superpowers at r
8
8
 
9
9
 
10
10
  <!-- team-flow-phase-guard-start -->
11
- # team-flow v0.24.0 | 阶段: {{state}} | 工作流: {{workflow}}
11
+ # team-flow v0.25.1 | 阶段: {{state}} | 工作流: {{workflow}}
12
12
  当前阶段允许的操作由 workflow-start 路由规则定义。
13
13
  禁止跨越 DP gate 进入下一阶段。变更范围以 execution-contract.md 的 Intent Lock 为准。
14
14
  <!-- team-flow-phase-guard-end -->
package/INSTALL.md CHANGED
@@ -7,7 +7,7 @@
7
7
  - [Fission-AI/OpenSpec](https://github.com/Fission-AI/OpenSpec) — 规划引擎(Schema 验证、Delta Spec、工件解析)
8
8
  - [obra/superpowers](https://github.com/obra/superpowers) — 执行纪律(TDD 铁律、SDD、系统化调试、代码审查)
9
9
 
10
- 当前发布版本:**v0.24.0**。
10
+ 当前发布版本:**v0.25.1**。
11
11
 
12
12
  ---
13
13
 
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # team-flow
2
2
 
3
- > 当前版本:`v0.24.0`
3
+ > 当前版本:`v0.25.1`
4
4
 
5
5
  > 统一插件:**team-flow**(spec 驱动开发)+ **compound-engineering 核心子集**(全局复利)+ **architecture-design**(4A+DDD 增量设计)+ **prototype**(本地 HTML 原型)+ **e2e**(AC 驱动 E2E)+ **workflow-orchestrator**(产品级编排)+ **workflow-bootstrap**(既有项目接入)。一次安装,七套能力协同。
6
6
 
package/docs/README_en.md CHANGED
@@ -126,7 +126,7 @@ npm install -g team-flow
126
126
 
127
127
  ### Version
128
128
 
129
- - Current: `v0.24.0`
129
+ - Current: `v0.25.1`
130
130
  - v0.9.1 highlights: DP-4 execution-mode recommendations, a portable runtime across 17 platforms, and a raw-package smoke with no plugin-root variable.
131
131
  - Self-contained — no OpenSpec or Superpowers runtime required
132
132
  - Upstream: [Fission-AI/OpenSpec](https://github.com/Fission-AI/OpenSpec), [obra/superpowers](https://github.com/obra/superpowers)
@@ -2,4 +2,5 @@
2
2
  <!-- 每条一行,按 severity 降序,≤150 行硬上限 -->
3
3
  | date | phase | domain | type | severity | summary | file |
4
4
  |------|-------|--------|------|----------|---------|------|
5
+ | 2026-07-29 | cross-phase | general | insight | medium | (no summary) | cross-phase/2026-07-29-no-summary.md |
5
6
  | 2026-07-28 | cross-phase | general | insight | medium | (no summary) | cross-phase/2026-07-28-no-summary.md |
@@ -0,0 +1,17 @@
1
+ ---
2
+ phase: cross-phase
3
+ domain: general
4
+ type: insight
5
+ severity: medium
6
+ date: 2026-07-29
7
+ source:
8
+ ---
9
+
10
+ ## 问题描述
11
+ (no summary)
12
+
13
+ ## 根因/模式
14
+ (待补充)
15
+
16
+ ## 预防措施/应用方式
17
+ (待补充)
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "team-flow",
3
3
  "description": "Unified workflow plugin: team-flow (spec-driven dev) + compound-engineering core subset + architecture-design (4A/DDD) + prototype (local HTML). 17 skills, one install.",
4
- "version": "0.24.0",
4
+ "version": "0.25.1",
5
5
  "contextFileName": "GEMINI.md"
6
6
  }
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # v0.24.0: conditional injection — detects artifacts, injects workflow-start pointer
2
+ # v0.25.1: conditional injection — detects artifacts, injects workflow-start pointer
3
3
  msg="<EXTREMELY_IMPORTANT>\nYou have team-flow installed. Use /team-flow:workflow-start ONLY when you detect an active team-flow change in the workspace (look for \`.team-flow.yaml\`, \`proposal.md\`, \`execution-contract.md\`, or \`specs/\` directories), OR when the user explicitly invokes it by name. For ordinary coding tasks without team-flow artifacts, do NOT invoke workflow-start — just handle the request directly.\n</EXTREMELY_IMPORTANT>"
4
4
 
5
5
  # Three platforms share the same message, only output format differs.
package/llms.txt CHANGED
@@ -3,7 +3,7 @@
3
3
  ## Overview
4
4
  spec-superflow is a self-contained workflow integration plugin for Claude Code, Cursor, OpenAI Codex CLI/App, GitHub Copilot CLI, Gemini CLI, OpenCode, WorkBuddy, and Trae. It merges spec-driven planning artifacts (proposal, specs, design, tasks) with disciplined execution guardrails (TDD, review gates, controlled handoff) into one unified workflow.
5
5
 
6
- Current version: v0.24.0.
6
+ Current version: v0.25.1.
7
7
 
8
8
  ## Key Documents
9
9
  - README.md: Chinese homepage with full usage guide and FAQ
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xulthekl/team-flow",
3
- "version": "0.24.0",
3
+ "version": "0.25.1",
4
4
  "description": "Unified plugin (23 skills + 8 agents) integrating team-flow, compound-engineering, architecture-design, prototype, design-system, workflow-orchestrator, workflow-bootstrap, e2e, session-handoff, workflow-feedback for multi-agent coding tools.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "team-flow",
3
- "version": "0.24.0",
3
+ "version": "0.25.1",
4
4
  "description": "Unified workflow plugin: team-flow (spec-driven dev: TDD/SDD/code-review/debugging) + compound-engineering core subset (brainstorm/plan/compound/strategy/ideate/proof, global compounding) + architecture-design (4A+DDD incremental design & global compounding) + prototype (local HTML prototype, zero external deps) + e2e (Playwright E2E, AC-driven) + workflow-orchestrator (product-level workflow orchestration) + workflow-bootstrap (existing project onboarding) + session-handoff (context transfer) + workflow-feedback (issue tracking). 23 skills + 8 agents, one install.",
5
5
  "author": {
6
6
  "name": "LT"
@@ -19,6 +19,9 @@ const DEFAULTS = {
19
19
  verification: {
20
20
  language: 'auto',
21
21
  },
22
+ prd: {
23
+ template: 'templates/prd.md',
24
+ },
22
25
  };
23
26
 
24
27
  export const MODEL_PROFILES = Object.freeze([
@@ -49,7 +49,7 @@ Scientific method: form a single hypothesis ("I think X is the root cause becaus
49
49
 
50
50
  ### DP-5: Debug Escalation (3+ Failures)
51
51
 
52
- 3+ failed fixes = architectural problem. Each fix revealing new problems elsewhere = wrong architecture. Record: `npx --yes --package @xulthekl/team-flow@0.24.0 tf state set <change-dir> dp_5_result <decision>`. Discuss with user before attempting more fixes.
52
+ 3+ failed fixes = architectural problem. Each fix revealing new problems elsewhere = wrong architecture. Record: `npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> dp_5_result <decision>`. Discuss with user before attempting more fixes.
53
53
 
54
54
  ## Red Flags — Return to Phase 1
55
55
 
@@ -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.24.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.24.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.24.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.24.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.24.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.24.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.24.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.24.0 tf execution recommend` and use `npx --yes --package @xulthekl/team-flow@0.24.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.24.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.24.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.24.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.24.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.24.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.24.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.24.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.24.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.24.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.24.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.24.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.24.0 tf execution plan`; do not write it with raw `state set`.
157
- DP-5 (debug escalation): `npx --yes --package @xulthekl/team-flow@0.24.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.24.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.24.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.24.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.24.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.24.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.24.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.24.0 tf runtime config --resolve-model
79
79
  ## Recovery Checkpoint
80
80
 
81
81
  ```bash
82
- npx --yes --package @xulthekl/team-flow@0.24.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.24.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