@xulthekl/team-flow 0.24.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/always/phase-guard.md +1 -1
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/.cursor-plugin/marketplace.json +1 -1
- package/.cursor-plugin/plugin.json +1 -1
- package/.github/plugin/marketplace.json +2 -2
- package/AGENTS.md +3 -3
- package/CHANGELOG.md +86 -0
- package/GEMINI.md +1 -1
- package/INSTALL.md +1 -1
- package/README.md +1 -1
- package/docs/README_en.md +1 -1
- package/docs/solutions/INDEX.md +1 -0
- package/docs/solutions/cross-phase/2026-07-29-no-summary.md +17 -0
- package/gemini-extension.json +1 -1
- package/hooks/session-start +2 -2
- package/llms.txt +1 -1
- package/package.json +1 -1
- package/plugin.json +1 -1
- package/scripts/lib/config-loader.mjs +10 -3
- package/skills/bug-investigator/SKILL.md +1 -1
- package/skills/build-executor/SKILL.md +19 -19
- package/skills/build-executor/implementer-prompt.md +1 -1
- package/skills/build-executor/references/execution-modes.md +6 -6
- package/skills/build-executor/task-reviewer-prompt.md +1 -1
- package/skills/ce-brainstorm/SKILL.md +63 -347
- package/skills/ce-brainstorm/references/brainstorm-sections.md +11 -0
- package/skills/ce-brainstorm/references/grounding.md +47 -0
- package/skills/ce-brainstorm/references/output-format.md +25 -0
- package/skills/ce-brainstorm/references/phase0-routing.md +96 -0
- package/skills/ce-brainstorm/references/prd-mapping.md +37 -0
- package/skills/ce-brainstorm/references/prototype-loop.md +55 -0
- package/skills/ce-ideate/SKILL.md +31 -348
- package/skills/ce-ideate/references/grounding.md +107 -0
- package/skills/ce-ideate/references/phase0-scope.md +134 -0
- package/skills/ce-ideate/references/topic-surface.md +37 -0
- package/skills/ce-proof/SKILL.md +8 -266
- package/skills/ce-proof/references/api-recipes.md +145 -0
- package/skills/ce-proof/references/workflows.md +124 -0
- package/skills/code-reviewer/SKILL.md +2 -2
- package/skills/code-reviewer/code-reviewer-prompt.md +1 -1
- package/skills/contract-builder/SKILL.md +6 -6
- package/skills/need-explorer/SKILL.md +2 -2
- package/skills/prototype/SKILL.md +16 -2
- package/skills/prototype/references/agents/design-system-architect.md +11 -122
- package/skills/prototype/references/interactive-prototype.md +110 -0
- package/skills/prototype/references/layouts.md +188 -2
- package/skills/prototype/references/orchestration-flow.md +8 -1
- package/skills/prototype/references/template.html +32 -0
- package/skills/prototype/references/wireframe.md +117 -0
- package/skills/release-archivist/SKILL.md +14 -12
- package/skills/release-archivist/references/closing-procedures.md +11 -9
- package/skills/spec-merger/SKILL.md +2 -2
- package/skills/spec-writer/SKILL.md +3 -3
- package/skills/workflow-orchestrator/references/s2-prd-prototype-loop.md +1 -1
- package/skills/workflow-orchestrator/references/s4-split-validate.md +1 -1
- package/skills/workflow-orchestrator/references/s5-monitoring.md +1 -1
- package/skills/workflow-start/SKILL.md +16 -16
- package/skills/workflow-start/references/routing-rules.md +17 -17
- package/templates/prd-brainstorm-profile.md +69 -0
|
@@ -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.
|
|
12
|
+
"version": "0.26.0",
|
|
13
13
|
"source": "./",
|
|
14
14
|
"author": {
|
|
15
15
|
"name": "LT",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "team-flow",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
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": {
|
|
@@ -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.
|
|
5
|
+
"version": "0.26.0",
|
|
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.
|
|
9
|
+
"version": "0.26.0"
|
|
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.
|
|
15
|
+
"version": "0.26.0",
|
|
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,92 @@ The format loosely follows Keep a Changelog.
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.26.0] - 2026-07-29
|
|
10
|
+
|
|
11
|
+
### Added(配置管理与 Skill 降级逻辑补强,4 项)
|
|
12
|
+
|
|
13
|
+
#### Config-loader 查找顺序优化
|
|
14
|
+
- **scripts/lib/config-loader.mjs**:`findConfigFile` 函数增加 `.team-flow/team-flow.config.json` 查找路径(优先于项目根目录)。新查找顺序:① `.team-flow/` → ② 根目录(兼容旧路径)→ ③ git 根 → ④ home
|
|
15
|
+
|
|
16
|
+
#### ce-brainstorm Phase 0.0 降级逻辑补强
|
|
17
|
+
- **skills/ce-brainstorm/SKILL.md Phase 0.0**:增加 tf CLI 可用性检查(`which tf`),不可用时走显式降级逻辑:询问用户(默认模板 or 自定义路径)→ 在 `.team-flow/templates/` 创建模板 → 维护配置到 `.team-flow/team-flow.config.json`
|
|
18
|
+
- **skills/ce-brainstorm/SKILL.md Phase 0.0**:增加 guardrail——明确禁止写入 skill 源码目录,项目级制品只在项目工作区创建/修改
|
|
19
|
+
|
|
20
|
+
### Documentation(1 项)
|
|
21
|
+
|
|
22
|
+
- **docs/architecture-api-db-design-enhancement-v0.10.md**:新增第 32 章「配置管理与 Skill 降级逻辑补强」
|
|
23
|
+
|
|
24
|
+
## [0.25.1] - 2026-07-29
|
|
25
|
+
|
|
26
|
+
### Changed(SKILL.md 渐进式披露拆分,P1-9,3 项)
|
|
27
|
+
|
|
28
|
+
#### ce-proof (346→88 行)
|
|
29
|
+
- **skills/ce-proof/SKILL.md**:保留核心决策逻辑(Identity/Credentials/Publish Mode/Edit Strategy/Safety),curl 示例和工作流移入 references
|
|
30
|
+
- **skills/ce-proof/references/api-recipes.md**(新增):Create/Read/Edit/Presence/Title/Delete 的完整 curl 示例 + 错误码表 + Marks & Privacy + When the loop breaks
|
|
31
|
+
- **skills/ce-proof/references/workflows.md**(新增):Review/Create/Pull 三个完整工作流
|
|
32
|
+
|
|
33
|
+
#### ce-brainstorm (458→122 行)
|
|
34
|
+
- **skills/ce-brainstorm/SKILL.md**:保留核心原则 + 每个 Phase 摘要 + reference 引用指针
|
|
35
|
+
- **skills/ce-brainstorm/references/output-format.md**(新增):OUTPUT_FORMAT 5 级优先级解析逻辑
|
|
36
|
+
- **skills/ce-brainstorm/references/phase0-routing.md**(新增):Phase 0 的 Resume/Classify/Verdict/Assess/Scope/Spine/Iteration 详细路由
|
|
37
|
+
- **skills/ce-brainstorm/references/prototype-loop.md**(新增):Phase 3.5 原型内循环完整流程
|
|
38
|
+
- **skills/ce-brainstorm/references/grounding.md**(新增):Phase 1.1 上下文扫描 + grounding scout 提示词 + Slack 路由
|
|
39
|
+
|
|
40
|
+
#### ce-ideate (402→85 行)
|
|
41
|
+
- **skills/ce-ideate/SKILL.md**:保留核心原则 + Phase 摘要 + reference 引用指针
|
|
42
|
+
- **skills/ce-ideate/references/phase0-scope.md**(新增):Phase 0 完整路由逻辑(输出模式/主题门/模式分类/上下文门/聚焦与容量/成本透明)
|
|
43
|
+
- **skills/ce-ideate/references/grounding.md**(新增):Phase 1 模式感知 Grounding(仓库/非仓库调度 + Web 研究 + 用户研究工件 + 综合摘要)
|
|
44
|
+
- **skills/ce-ideate/references/topic-surface.md**(新增):Phase 1.5 主题表面分解(轴标准 + 证据侦察)
|
|
45
|
+
|
|
46
|
+
## [0.25.0] - 2026-07-29
|
|
47
|
+
|
|
48
|
+
### Added(brainstorm profile 机制,3 项)
|
|
49
|
+
|
|
50
|
+
#### Brainstorm Profile 机制
|
|
51
|
+
- **templates/prd-brainstorm-profile.md**(新增):GTMC D7 模板的 brainstorm profile,定义核心思考维度(7 项:业务流程/状态模型/权限模型/用户角色/数据关系/业务规则/系统功能)、扩展维度(6 项:画面设计/业务术语/报表需求/交互机制/非功能性需求/编码规则)、反例边界(7 项:禁止后端模块划分/前端页面结构/数据库表设计/API 接口定义/技术选型/部署架构/代码结构)和正向示例
|
|
52
|
+
- **skills/ce-brainstorm/references/prd-mapping.md**:新增"Brainstorm Profile 机制"完整说明(文件命名规则、查找优先级、三段结构、自定义 Profile 指南)
|
|
53
|
+
- **skills/ce-brainstorm/references/brainstorm-sections.md**:新增"Brainstorm profile coverage check"段落,确保核心维度在 PRD 中被覆盖
|
|
54
|
+
|
|
55
|
+
### Changed(Phase 0 模板选择 + Phase 2 profile 驱动,4 项)
|
|
56
|
+
|
|
57
|
+
#### PRD 模板交互式选择
|
|
58
|
+
- **skills/ce-brainstorm/SKILL.md Phase 0.0**:PRD 模板解析改为 MANDATORY STEP——必须执行 bash 命令检查配置,未配置自定义模板时强制使用 AskUserQuestion 询问用户选择默认或自定义路径,并自动写入 `team-flow.config.json`
|
|
59
|
+
- **skills/ce-brainstorm/SKILL.md Phase 2**:新增"Load brainstorm profile"步骤,按 profile 维度约束方案探索;"Approach granularity"从"mechanism/product shape"改为"profile-driven product thinking, not architecture"
|
|
60
|
+
- **skills/ce-brainstorm/SKILL.md 调用模式**:明确声明 `orchestrated` 模式仅跳过 Phase 3.5,Phase 0-3 均正常执行不可跳过
|
|
61
|
+
|
|
62
|
+
#### Config 默认值
|
|
63
|
+
- **scripts/lib/config-loader.mjs**:DEFAULTS 增加 `prd.template: 'templates/prd.md'`,`tf runtime config --get prd.template` 未配置时返回默认值而非报错
|
|
64
|
+
|
|
65
|
+
### Documentation(1 项)
|
|
66
|
+
|
|
67
|
+
- **AGENTS.md**:`prd.template` 配置字段说明扩充(含 brainstorm profile 关联说明);通用性描述补充 profile 注入机制
|
|
68
|
+
|
|
69
|
+
## [0.24.1] - 2026-07-28
|
|
70
|
+
|
|
71
|
+
### Fixed(prototype skill 体系补强,5 项)
|
|
72
|
+
|
|
73
|
+
#### P0: design-system-architect.md 重复维护
|
|
74
|
+
- **prototype/references/agents/design-system-architect.md**: 替换为迁移指针,指向 `design-system skill` 下的权威版本,消除两份文件内容漂移风险
|
|
75
|
+
|
|
76
|
+
#### P0: Open Design 命名歧义
|
|
77
|
+
- **prototype/SKILL.md**: description 中明确标注 "Open Design 桌面应用"(GUI 工具,互斥项)与 "nexu-io/open-design 开源设计方法论"(craft 规则借鉴源)同名不同义;新增「方法论参考与归因」段
|
|
78
|
+
|
|
79
|
+
#### P1: prototype-sync 自动触发
|
|
80
|
+
- **prototype/SKILL.md**: prototype-sync 段从 "SOP" 升级为 "release-archivist 自动触发",明确标准路径是 closing 流程自动触发
|
|
81
|
+
- **release-archivist/SKILL.md**: 新增 prototype-sync 执行校验段,要求检查 stdout 输出,禁止在未执行时标注为已完成
|
|
82
|
+
- **release-archivist/references/closing-procedures.md**: 同步执行校验段和 write-back order 约束
|
|
83
|
+
|
|
84
|
+
### Added(原型设计能力扩展,2 项)
|
|
85
|
+
|
|
86
|
+
#### P2-1: 交互原型 + 线框图方法论
|
|
87
|
+
- **prototype/references/interactive-prototype.md**: 新增交互原型方法论(零依赖状态管理、表单验证、多步导航、动态列表)
|
|
88
|
+
- **prototype/references/wireframe.md**: 新增线框图方法论(低保真快速探索、3-5 差异化方案、并排对比)
|
|
89
|
+
- **prototype/references/orchestration-flow.md**: prompt 组装顺序契约新增原型类型注入策略(wireframe / interactive / static)
|
|
90
|
+
|
|
91
|
+
#### P2-2: C 端骨架扩展
|
|
92
|
+
- **prototype/references/layouts.md**: 新增 §9-§14 C 端骨架(hero-xl / marketing-features / social-proof / pricing-c / faq / cta-c),新增 C 端页面节奏表
|
|
93
|
+
- **prototype/references/template.html**: 新增 C 端扩展 CSS(hero-xl / pricing-card / faq-item / urgency 等)
|
|
94
|
+
|
|
9
95
|
## [0.24.0] - 2026-07-28
|
|
10
96
|
|
|
11
97
|
### 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.
|
|
11
|
+
# team-flow v0.26.0 | 阶段: {{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
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# team-flow
|
|
2
2
|
|
|
3
|
-
> 当前版本:`v0.
|
|
3
|
+
> 当前版本:`v0.26.0`
|
|
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.
|
|
129
|
+
- Current: `v0.26.0`
|
|
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)
|
package/docs/solutions/INDEX.md
CHANGED
|
@@ -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 |
|
package/gemini-extension.json
CHANGED
|
@@ -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.
|
|
4
|
+
"version": "0.26.0",
|
|
5
5
|
"contextFileName": "GEMINI.md"
|
|
6
6
|
}
|
package/hooks/session-start
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# v0.
|
|
3
|
-
msg="<EXTREMELY_IMPORTANT>\nYou have team-flow installed.
|
|
2
|
+
# v0.26.0: conditional injection — detects artifacts, injects workflow-start pointer
|
|
3
|
+
msg="<EXTREMELY_IMPORTANT>\nYou have team-flow installed. Invoke /team-flow:workflow-start or /team-flow:workflow-orchestrator ONLY when active team-flow artifacts exist (\`.team-flow.yaml\`, \`proposal.md\`, \`execution-contract.md\`, \`specs/\`) or the user explicitly requests it. For ordinary coding tasks, do NOT invoke them.\n</EXTREMELY_IMPORTANT>\n<EXTREMELY_IMPORTANT>\n## Workspace Directory Rule\n\"Base directory for this skill\" = skill source location (read SKILL.md/references/ ONLY). User project = \`pwd\`. ALL project artifacts (changes/, prd/, docs/, .team-flow/, etc.) MUST operate under \`pwd\`, NEVER the skill base directory. Run \`pwd\` first in every skill execution.\n</EXTREMELY_IMPORTANT>"
|
|
4
4
|
|
|
5
5
|
# Three platforms share the same message, only output format differs.
|
|
6
6
|
if [ -n "${CURSOR_PLUGIN_ROOT:-}" ]; then
|
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.
|
|
6
|
+
Current version: v0.26.0.
|
|
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.
|
|
3
|
+
"version": "0.26.0",
|
|
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.
|
|
3
|
+
"version": "0.26.0",
|
|
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([
|
|
@@ -65,11 +68,15 @@ function deepMerge(target, source) {
|
|
|
65
68
|
}
|
|
66
69
|
|
|
67
70
|
function findConfigFile(startDir) {
|
|
68
|
-
// 1. Check
|
|
71
|
+
// 1. Check .team-flow/ directory (preferred location)
|
|
72
|
+
const teamFlowDir = join(startDir, '.team-flow', 'team-flow.config.json');
|
|
73
|
+
if (existsSync(teamFlowDir)) return teamFlowDir;
|
|
74
|
+
|
|
75
|
+
// 2. Check startDir (legacy location, for backward compatibility)
|
|
69
76
|
const direct = join(startDir, 'team-flow.config.json');
|
|
70
77
|
if (existsSync(direct)) return direct;
|
|
71
78
|
|
|
72
|
-
//
|
|
79
|
+
// 3. Check git root
|
|
73
80
|
try {
|
|
74
81
|
const gitRoot = execFileSync('git', ['rev-parse', '--show-toplevel'], {
|
|
75
82
|
cwd: startDir,
|
|
@@ -82,7 +89,7 @@ function findConfigFile(startDir) {
|
|
|
82
89
|
// Not a git repo — skip
|
|
83
90
|
}
|
|
84
91
|
|
|
85
|
-
//
|
|
92
|
+
// 4. Check home directory
|
|
86
93
|
const homePath = join(process.env.HOME || '', 'team-flow.config.json');
|
|
87
94
|
if (existsSync(homePath)) return homePath;
|
|
88
95
|
|
|
@@ -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.
|
|
52
|
+
3+ failed fixes = architectural problem. Each fix revealing new problems elsewhere = wrong architecture. Record: `npx --yes --package @xulthekl/team-flow@0.26.0 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.
|
|
18
|
+
Check workflow mode first: `npx --yes --package @xulthekl/team-flow@0.26.0 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
|
+
npx --yes --package @xulthekl/team-flow@0.26.0 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.
|
|
29
|
-
Ask the user for explicit approval (and re-run with `npx --yes --package @xulthekl/team-flow@0.
|
|
28
|
+
2. If `npx --yes --package @xulthekl/team-flow@0.26.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.26.0 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.
|
|
55
|
+
npx --yes --package @xulthekl/team-flow@0.26.0 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.
|
|
59
|
+
npx --yes --package @xulthekl/team-flow@0.26.0 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.
|
|
63
|
+
npx --yes --package @xulthekl/team-flow@0.26.0 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.
|
|
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.26.0 tf execution recommend` and use `npx --yes --package @xulthekl/team-flow@0.26.0 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.
|
|
91
|
+
1. Read the current plan with `npx --yes --package @xulthekl/team-flow@0.26.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.
|
|
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.
|
|
96
|
+
npx --yes --package @xulthekl/team-flow@0.26.0 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.
|
|
103
|
+
1. **Dispatch implementer**: Load the template with `npx --yes --package @xulthekl/team-flow@0.26.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.
|
|
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.
|
|
105
|
+
3. **Review**: Load `npx --yes --package @xulthekl/team-flow@0.26.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.
|
|
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.
|
|
113
|
+
npx --yes --package @xulthekl/team-flow@0.26.0 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.
|
|
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.26.0 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.
|
|
130
|
+
Only after a user-confirmed `inline` selection is recorded by `npx --yes --package @xulthekl/team-flow@0.26.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.
|
|
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.
|
|
138
|
+
npx --yes --package @xulthekl/team-flow@0.26.0 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.
|
|
146
|
+
when `npx --yes --package @xulthekl/team-flow@0.26.0 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.
|
|
157
|
-
DP-5 (debug escalation): `npx --yes --package @xulthekl/team-flow@0.
|
|
156
|
+
DP-4 is written by `npx --yes --package @xulthekl/team-flow@0.26.0 tf execution plan`; do not write it with raw `state set`.
|
|
157
|
+
DP-5 (debug escalation): `npx --yes --package @xulthekl/team-flow@0.26.0 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.
|
|
25
|
+
Read `npx --yes --package @xulthekl/team-flow@0.26.0 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.
|
|
10
|
+
npx --yes --package @xulthekl/team-flow@0.26.0 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.
|
|
13
|
+
npx --yes --package @xulthekl/team-flow@0.26.0 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.
|
|
17
|
+
npx --yes --package @xulthekl/team-flow@0.26.0 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.
|
|
40
|
+
npx --yes --package @xulthekl/team-flow@0.26.0 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.
|
|
69
|
+
npx --yes --package @xulthekl/team-flow@0.26.0 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.
|
|
82
|
+
npx --yes --package @xulthekl/team-flow@0.26.0 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.
|
|
149
|
+
npx --yes --package @xulthekl/team-flow@0.26.0 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
|