@xulthekl/team-flow 0.22.4 → 0.24.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 -2
- package/CHANGELOG.md +103 -0
- package/GEMINI.md +1 -1
- package/HANDOFF.md +123 -98
- package/INSTALL.md +1 -1
- package/README.md +1 -1
- package/docs/README_en.md +1 -1
- package/docs/solutions/INDEX.md +5 -0
- package/docs/solutions/cross-phase/2026-07-28-no-summary.md +17 -0
- package/gemini-extension.json +1 -1
- package/hooks/pre-tool-use-guard +9 -9
- package/hooks/session-start +2 -2
- package/llms.txt +1 -1
- package/package.json +1 -1
- package/plugin.json +1 -1
- package/scripts/guard/checks/arch-design.mjs +79 -0
- package/scripts/guard/checks/compound-captured.mjs +70 -0
- package/scripts/guard/guard.mjs +6 -2
- package/scripts/lib/arch-merge.mjs +459 -0
- package/scripts/lib/cmd-state.mjs +5 -0
- package/scripts/lib/hash.mjs +18 -0
- package/scripts/lib/solutions-promote.mjs +1 -1
- package/scripts/lib/state-loader.mjs +16 -0
- package/scripts/team-flow.mjs +3 -0
- package/skills/architecture-design/SKILL.md +42 -3
- package/skills/architecture-design/templates/api.md +71 -0
- package/skills/architecture-design/templates/architecture.md +82 -0
- package/skills/architecture-design/templates/change-brief.md +29 -0
- package/skills/architecture-design/templates/database.md +69 -0
- package/skills/architecture-design/templates/index.md +33 -0
- package/skills/architecture-design/templates/physical-model.md +93 -0
- package/skills/bug-investigator/SKILL.md +1 -1
- package/skills/build-executor/SKILL.md +23 -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 +6 -0
- package/skills/code-reviewer/SKILL.md +6 -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/release-archivist/SKILL.md +25 -12
- package/skills/release-archivist/references/closing-procedures.md +8 -8
- package/skills/spec-merger/SKILL.md +2 -2
- package/skills/spec-writer/SKILL.md +11 -9
- package/skills/workflow-bootstrap/SKILL.md +39 -5
- package/skills/workflow-bootstrap/references/b1-reconnaissance.md +22 -1
- package/skills/workflow-bootstrap/scripts/recon-probe.sh +122 -1
- 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 +44 -16
- package/skills/workflow-start/references/routing-rules.md +17 -17
- package/templates/api.md +177 -0
- package/templates/architecture.md +122 -0
- package/templates/change-brief.md +24 -0
- package/templates/database.md +114 -0
- package/tests/lib/guard-compound-captured.test.mjs +92 -0
- package/tests/lib/guard-specs-merged.test.mjs +2 -0
- package/tests/lib/guard-tests-passing.test.mjs +2 -0
- package/tests/lib/guard.test.mjs +2 -0
- package/tests/lib/solutions-capture.test.mjs +108 -0
- package/tests/lib/solutions-index-gen.test.mjs +147 -0
- package/tests/lib/solutions-inject.test.mjs +115 -0
- package/tests/lib/solutions-promote.test.mjs +200 -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.24.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.24.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.24.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.24.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.24.0",
|
|
16
16
|
"source": ".",
|
|
17
17
|
"author": {
|
|
18
18
|
"name": "LT",
|
package/AGENTS.md
CHANGED
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
### 身份与依赖关系
|
|
14
14
|
|
|
15
15
|
- **team-flow**(本插件):Claude Code / Cursor 等宿主的插件实体(`plugin.json` name = `team-flow`),包含 23 个 skills + 8 个 agents + hooks + templates
|
|
16
|
-
-
|
|
17
|
-
- 关系:team-flow 插件 **包含** team-flow npm 包作为底座(同一仓库、同一版本)。skills 中的 `npx --yes --package @xulthekl/team-flow@x.y.z tf ...` 调用的是已发布的 npm 底座包,版本号必须与当前 `package.json` version 一致
|
|
16
|
+
- **@xulthekl/team-flow**(npm 底座包):team-flow 的 CLI 工具层(`package.json` name = `@xulthekl/team-flow`,bin = `tf` / `team-flow`),提供状态机、校验、复利 CLI 等运行时能力
|
|
17
|
+
- 关系:team-flow 插件 **包含** @xulthekl/team-flow npm 包作为底座(同一仓库、同一版本)。skills 中的 `npx --yes --package @xulthekl/team-flow@x.y.z tf ...` 调用的是已发布的 npm 底座包,版本号必须与当前 `package.json` version 一致
|
|
18
|
+
- 历史身份(已废弃):`spec-superflow`(npm 包名,0.11.0 后停止发布)/ `ssf`(CLI 前缀)/ `.spec-superflow.yaml`(状态文件)—— 详见设计增强方案 v0.9 §27
|
|
18
19
|
|
|
19
20
|
## Commands
|
|
20
21
|
|
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,81 @@ The format loosely follows Keep a Changelog.
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.24.0] - 2026-07-28
|
|
10
|
+
|
|
11
|
+
### Fixed(复利工程强制化补强,5 项)
|
|
12
|
+
|
|
13
|
+
#### P0: Hook 旧名修复
|
|
14
|
+
- **hooks/pre-tool-use-guard**: 修复 `.spec-superflow.yaml` → `.team-flow.yaml` 的硬编码旧名(5 处),恢复状态机编辑守卫
|
|
15
|
+
- **hooks/session-start**: 修复 `spec-superflow` → `team-flow` 的硬编码旧名(3 处),恢复会话启动提示
|
|
16
|
+
|
|
17
|
+
#### P1: 复利维度 guard
|
|
18
|
+
- **guard/checks/compound-captured.mjs**: 新增复利捕获检查维度(learnings.md 存在性或显式 compound_skipped)
|
|
19
|
+
- **guard/guard.mjs**: 将 `compound-captured` 维度挂到 `executing:closing` 转换(full 和 hotfix workflow)
|
|
20
|
+
- **state-loader.mjs**: BUILTIN_DEFAULTS 新增 `compound_skipped` 字段
|
|
21
|
+
- **cmd-state.mjs**: SETTABLE_FIELDS 新增 `compound_skipped` 字段,支持 `tf state set` 写入
|
|
22
|
+
|
|
23
|
+
#### P1: Bootstrap DDL 提取
|
|
24
|
+
- **workflow-bootstrap/scripts/recon-probe.sh**: 新增 DDL 提取能力(策略优先级:SQL 文件 > Java Entity 注解 > 占位兜底)
|
|
25
|
+
- 策略 1: 扫描 `db/migration/` 等目录的 `.sql` 文件,提取 CREATE TABLE 语句
|
|
26
|
+
- 策略 2: 扫描 `@Entity`/`@Table` 注解的 Java 类,提取表名和字段定义
|
|
27
|
+
- 策略 3: 无 DDL 源时生成占位文件,提示手动补充
|
|
28
|
+
- 新增 `--ddl-out` 参数,支持独立输出 DDL 文件
|
|
29
|
+
- JSON 输出新增 `ddl_extraction` 字段(source/table_count/tables/ddl_statements)
|
|
30
|
+
|
|
31
|
+
#### P1: Bootstrap 模板引用
|
|
32
|
+
- **workflow-bootstrap/SKILL.md**: B2 阶段新增 Step 0(模板初始化),从 `architecture-design/templates/` 复制 5 个模板到 `docs/architecture/`
|
|
33
|
+
- **workflow-bootstrap/references/b1-reconnaissance.md**: 更新 B1.1a 章节,标注 DDL 提取已实现(v0.24.0),补充 CLI 用法和 JSON 输出字段说明
|
|
34
|
+
|
|
35
|
+
#### P2: solutions 脚本测试
|
|
36
|
+
- **tests/lib/solutions-capture.test.mjs**: 新增 6 个测试用例(文件创建、INDEX 追加、中文 slugify、默认 phase、无效 phase 拒绝)
|
|
37
|
+
- **tests/lib/solutions-inject.test.mjs**: 新增 8 个测试用例(空索引、phase 过滤、cross-phase 包含、domain 匹配、severity 排序、top-5 截断)
|
|
38
|
+
- **tests/lib/solutions-promote.test.mjs**: 新增 8 个测试用例(无 learnings、高/中/低 severity 晋升、insight 类型跳过、重复检测、多条晋升、INDEX 追加)
|
|
39
|
+
- **tests/lib/solutions-index-gen.test.mjs**: 新增 7 个测试用例(全量重建、severity 排序、date 排序、7 phase 扫描、非 .md 跳过、150 条截断、空目录处理)
|
|
40
|
+
- **scripts/lib/solutions-promote.mjs**: CLI 守卫增加 `NODE_ENV !== 'test'` 条件,避免 import 时触发 process.exit
|
|
41
|
+
|
|
42
|
+
#### 测试修复
|
|
43
|
+
- **tests/lib/guard.test.mjs**: `recordPassingClosingPrerequisites()` 新增 learnings.md 创建,满足 compound-captured 维度
|
|
44
|
+
- **tests/lib/guard-specs-merged.test.mjs**: `makeChangeDir()` 新增 learnings.md 创建
|
|
45
|
+
- **tests/lib/guard-tests-passing.test.mjs**: `makeChangeDir()` 新增 learnings.md 创建
|
|
46
|
+
|
|
47
|
+
### Verified
|
|
48
|
+
|
|
49
|
+
- check-version-consistency: ✅ PASS(全部 0.24.0,自动修复 6 处版本号)
|
|
50
|
+
- npm test: ✅ 457/457 通过(428 既有 + 29 新增)
|
|
51
|
+
|
|
52
|
+
### Statistics
|
|
53
|
+
|
|
54
|
+
- 新增代码: ~350 行(guard 检查器 + DDL 提取 + 测试用例)
|
|
55
|
+
- 修改文件: 52 个
|
|
56
|
+
- 测试覆盖: solutions 四个脚本从 0% → 100%(29 个测试用例)
|
|
57
|
+
- 复利强制化: executing:closing 转换新增 compound-captured 维度(learnings.md 或显式 skip)
|
|
58
|
+
|
|
59
|
+
## [0.22.5] - 2026-07-28
|
|
60
|
+
|
|
61
|
+
### Fixed(制品链评审与修复,设计 v0.9 §28)
|
|
62
|
+
|
|
63
|
+
- **state-loader.mjs**:BUILTIN_DEFAULTS 新增 `arch_design_decision` / `arch_design_reason` / `arch_design_timestamp` / `arch_design_artifacts` 四个字段,writeState() 序列化逻辑同步更新
|
|
64
|
+
- **cmd-state.mjs**:SETTABLE_FIELDS 新增上述四个 arch_design_* 字段,支持 `tf state set` 写入
|
|
65
|
+
- **architecture-design/SKILL.md**:移除错误的"状态写入"章节(职责边界应为"判断+产出",非"判断+写入")
|
|
66
|
+
- **workflow-start/SKILL.md**:新增 "State Writes" 章节,明确声明 arch_design_* 的 reasonableness check + 状态写入权责
|
|
67
|
+
- **ce-brainstorm/SKILL.md**:新增 "Optional Inputs" 章节,声明消费 `docs/ideation/*.md`(source: ce-ideate),修复 ideation 制品链断裂
|
|
68
|
+
- **workflow-start/SKILL.md Fast-Path Routing**:新增 DP-0 处理说明(hotfix/tweak 隐式跳过 DP-0,dp_0_confirmed 保持 null)
|
|
69
|
+
|
|
70
|
+
### Added(模板补全)
|
|
71
|
+
|
|
72
|
+
- **templates/change-brief.md**:新增变更简报模板,基于 s4-split-validate.md 的 brief_schema(5 个 frontmatter 字段 + 6 个 body sections)
|
|
73
|
+
- **templates/architecture.md**:新增架构设计模板(4A+DDD 增量设计:As-Is 基线冻结 + To-Be 增量 + 变更分叉级联 + 跨域一致性 + 演进日志)
|
|
74
|
+
- **templates/database.md**:新增数据库设计模板(CQRS 增量:写模型/读模型/Schema 变更/实体关系/数据迁移脚本 + 演进日志)
|
|
75
|
+
- **templates/api.md**:新增 API 设计模板(Command/Read/Query 分流 + 端点详细设计 + 跨域一致性检查 + 演进日志)
|
|
76
|
+
|
|
77
|
+
### Verified
|
|
78
|
+
|
|
79
|
+
- check-version-consistency:✅ PASS(全部 0.22.5)
|
|
80
|
+
- npm test:✅ 421/421 通过
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
9
84
|
## [0.22.4] - 2026-07-27
|
|
10
85
|
|
|
11
86
|
### Changed(npm 包名 scope 化,发布至 npm)
|
|
@@ -633,3 +708,31 @@ The format loosely follows Keep a Changelog.
|
|
|
633
708
|
- First release targets Claude Code and Trae style local skill loading
|
|
634
709
|
- Runtime ownership remains inside `team-flow`
|
|
635
710
|
- OpenSpec and Superpowers are reference influences, not runtime dependencies
|
|
711
|
+
|
|
712
|
+
## v0.23.0 (2026-07-28) — 架构制品体系可执行化 + 上下文治理
|
|
713
|
+
|
|
714
|
+
### 新增
|
|
715
|
+
- **`tf arch-merge` CLI 命令**:8 步完整合并脚本,将 change 级架构增量(architecture/*.md + sql/)合并回全局 docs/architecture/(ARCHITECTURE.md / PHYSICAL-MODEL.md / schema-baseline.sql / API-INDEX.md / INDEX.md)
|
|
716
|
+
- **架构门控(guard.mjs)**:`exploring:specifying` 转换新增 `arch-design` 维度;`arch_design_decision=required` 时必须存在 architecture/*.md,`skipped` 时 reason 非空(advisory)
|
|
717
|
+
- **architecture/*.md 纳入 artifacts_hash**:修改 hash.mjs,三件套变更触发 hash 失效
|
|
718
|
+
- **5 个架构模板**:architecture.md / database.md / api.md / index.md / physical-model.md + change-brief.md
|
|
719
|
+
- **架构上下文加载协议**:INDEX.md 摘要索引 + 物理模型按业务域分段 + 按需加载三层策略,单次执行预算 ~2K tokens
|
|
720
|
+
|
|
721
|
+
### 修改
|
|
722
|
+
- **database.md 模板**:DDL 从内嵌代码块改为引用 `sql/ddl/` 和 `sql/migration/` 目录
|
|
723
|
+
- **api.md 定位调整**:聚焦 Command/Read/Query 分流归属+端点概要(架构路由表),不重复 Swagger 管理的精确 Schema;frontmatter 须声明 `api_contract_manager: swagger`
|
|
724
|
+
- **Bootstrap B2 新增成果物导入环节**:优先用户提供既有 SQL/物理模型/API 文档,兜底确定性提取(Entity 类解析 / SHOW CREATE TABLE);新产出 PHYSICAL-MODEL.md / schema-baseline.sql / API-INDEX.md / INDEX.md;CONCEPTS.md 路径迁移至 docs/architecture/
|
|
725
|
+
- **architecture-design SKILL.md**:产出目录新增 sql/ 子目录;api.md 架构路由表定位;新增上下文加载协议段;新增 arch-merge 引用
|
|
726
|
+
|
|
727
|
+
### 下游消费同步
|
|
728
|
+
- **spec-writer**:输入源增加 architecture/sql/ 路径 + api.md 路由表说明
|
|
729
|
+
- **build-executor**:输入源增加 architecture/sql/ddl/*.sql + sql/migration/*.sql
|
|
730
|
+
- **code-reviewer**:新增 Architecture Cross-Domain Consistency 评审维度
|
|
731
|
+
- **release-archivist**:closing 步骤新增 `tf arch-merge`(先于 prototype-sync)
|
|
732
|
+
|
|
733
|
+
### 设计文档
|
|
734
|
+
- 新增 `docs/architecture-api-db-design-enhancement-v0.10.md`(§28-§31 完整设计决策记录)
|
|
735
|
+
|
|
736
|
+
### 参考
|
|
737
|
+
- v0.10 设计文档:`docs/architecture-api-db-design-enhancement-v0.10.md`
|
|
738
|
+
- 设计增强方案权威版本:v0.10(承袭 v0.9 全部内容)
|
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.24.0 | 阶段: {{state}} | 工作流: {{workflow}}
|
|
12
12
|
当前阶段允许的操作由 workflow-start 路由规则定义。
|
|
13
13
|
禁止跨越 DP gate 进入下一阶段。变更范围以 execution-contract.md 的 Intent Lock 为准。
|
|
14
14
|
<!-- team-flow-phase-guard-end -->
|
package/HANDOFF.md
CHANGED
|
@@ -2,47 +2,63 @@
|
|
|
2
2
|
|
|
3
3
|
> 本文件用于把「team-flow 统一插件」的当前状态、设计决策、安装方式、剩余待办一次性交接清楚,
|
|
4
4
|
> 以便后续在 **Claude Code** 中直接打开 `team-flow/` 目录继续开发,无需回看历史对话。
|
|
5
|
-
> 最后更新:2026-07-
|
|
5
|
+
> 最后更新:2026-07-28
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## 0. 这是什么 / 目标
|
|
10
10
|
|
|
11
|
-
`team-flow`
|
|
12
|
-
「需求探索 → PRD → 架构增量 → 本地原型 → spec 驱动实现 →
|
|
11
|
+
`team-flow` 是一个**统一插件**,把九套能力合并进一个 `plugin.json`,一次安装即加载全部 23 个 skill + 8 个 agent,覆盖
|
|
12
|
+
「需求探索 → PRD → 架构增量 → 本地原型 → spec 驱动实现 → 复利回写 → e2e 测试 → session 交接 → 反馈闭环」的完整工作流。
|
|
13
13
|
|
|
14
14
|
| 来源 | 并入范围 | skill 数 |
|
|
15
15
|
|---|---|---|
|
|
16
16
|
| **team-flow**(底座,v0.10.0) | 全部 9 个 spec 驱动开发 skill | 9 |
|
|
17
|
-
| **compound-engineering
|
|
17
|
+
| **compound-engineering 核心子集** | ce-brainstorm / ce-plan / ce-compound / ce-strategy / ce-ideate / ce-proof | 6 |
|
|
18
18
|
| **architecture-design**(4A+DDD 增量设计) | 整个 skill | 1 |
|
|
19
|
-
| **prototype**(本地 HTML
|
|
20
|
-
|
|
|
19
|
+
| **prototype**(本地 HTML 原型) | 整个 skill | 1 |
|
|
20
|
+
| **design-system**(设计系统管理) | 整个 skill | 1 |
|
|
21
|
+
| **workflow-orchestrator**(产品级编排) | 整个 skill | 1 |
|
|
22
|
+
| **workflow-bootstrap**(项目接入) | 整个 skill | 1 |
|
|
23
|
+
| **e2e**(端到端测试) | 整个 skill | 1 |
|
|
24
|
+
| **session-handoff**(session 交接) | 整个 skill | 1 |
|
|
25
|
+
| **workflow-feedback**(反馈闭环) | 整个 skill | 1 |
|
|
26
|
+
| **合计** | | **23 skills + 8 agents** |
|
|
21
27
|
|
|
22
28
|
- 零运行时外部依赖(team-flow 底座自包含)。
|
|
23
29
|
- prototype 额外**零外部依赖、可离线**(自包含 HTML + 页面内 Tweaks 控件,无 CDN)。
|
|
24
30
|
- 插件保持通用:所有风格由项目 `design-system.md` / `prd.template` 注入,不固化任何公司/产品风格。
|
|
25
|
-
- 支持
|
|
31
|
+
- 支持 11 安装面:Claude Code、Cursor、OpenAI Codex CLI/App、GitHub Copilot CLI、Gemini CLI、OpenCode、WorkBuddy、Trae、ima-copilot、ZCode、RooCode、Amazon Q、Windsurf、Continue、Kiro、Pi、Qwen、Qoder。
|
|
26
32
|
|
|
27
33
|
---
|
|
28
34
|
|
|
29
|
-
## 1.
|
|
35
|
+
## 1. 当前状态(v0.22.4,2026-07-28)
|
|
30
36
|
|
|
31
37
|
### ✅ 已完成
|
|
32
|
-
- [x]
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
38
|
+
- [x] **品牌重命名 + 身份统一全部完成**(P1-6 三阶段全部收口):
|
|
39
|
+
- 第一阶段 v0.15.0:产品级状态文件 `.team-flow/` 化
|
|
40
|
+
- 第二阶段 v0.22.3:`spec-superflow → team-flow` 全量迁移(721+ 处)
|
|
41
|
+
- 包名 `spec-superflow → team-flow`
|
|
42
|
+
- CLI `ssf → tf`
|
|
43
|
+
- 状态文件 `.spec-superflow.yaml → .team-flow.yaml`
|
|
44
|
+
- 配置文件 `spec-superflow.config.json → team-flow.config.json`
|
|
45
|
+
- 脚本 `spec-superflow.mjs → team-flow.mjs`
|
|
46
|
+
- 第三阶段 v0.22.4:npm 包 scope 化(解决 publish 权限冲突)
|
|
47
|
+
- 包名 `team-flow → @xulthekl/team-flow`
|
|
48
|
+
- author `MageByte → xulthekl`
|
|
49
|
+
- 所有 npx 引用 179 处更新为 `@xulthekl/team-flow@`
|
|
50
|
+
- [x] **npm 发布**:`@xulthekl/team-flow@0.22.4` 已上线公共 registry
|
|
51
|
+
- [x] **统一插件名 `team-flow`**:所有插件清单(`plugin.json`、`.claude-plugin/`、`marketplace.json` 等 9 个安装面)已统一
|
|
52
|
+
- [x] **compound 核心子集(C 方案 6 个)** + architecture-design + prototype + design-system + workflow-* 等已并入
|
|
53
|
+
- [x] **统一 `AGENTS.md`**:合并 9 套能力、全局产物结构、SOP、配置注入、关键约束
|
|
54
|
+
- [x] **版本一致性检查通过**:`check-version-consistency.mjs` ✅ all files at 0.22.4
|
|
55
|
+
- [x] **测试全过**:`npm test` ✅ 421/421
|
|
56
|
+
- [x] **权威设计文档**:`docs/architecture-api-db-design-enhancement-v0.9.md`(当前 v0.9,含 §27 身份统一章节)
|
|
40
57
|
|
|
41
58
|
### ⏳ 待办(详见 §6)
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
- 验证 17 个 skill 在 Claude Code/各宿主被正确加载。
|
|
59
|
+
- [ ] **实测 `tf runtime config --get prototype.designSystem`**(v0.3 修正 A,仍是设计假设)。
|
|
60
|
+
- [ ] **v1.0.0 GA 发布标准**:规划正式发布里程碑。
|
|
61
|
+
- [ ] **pre-commit hook 检测未发布版本**:§27.3 step 9 设计,防止本地版本领先 npm。
|
|
46
62
|
|
|
47
63
|
---
|
|
48
64
|
|
|
@@ -50,49 +66,60 @@
|
|
|
50
66
|
|
|
51
67
|
```
|
|
52
68
|
team-flow/
|
|
53
|
-
├── HANDOFF.md #
|
|
54
|
-
├── plugin.json # 顶层插件清单(name=team-flow, version=0.
|
|
69
|
+
├── HANDOFF.md # 本文件(最后更新 2026-07-28)
|
|
70
|
+
├── plugin.json # 顶层插件清单(name=team-flow, version=0.22.4)
|
|
71
|
+
├── package.json # npm 包(name=@xulthekl/team-flow)
|
|
55
72
|
├── .claude-plugin/
|
|
56
|
-
│ ├── plugin.json # ★ Claude Code
|
|
73
|
+
│ ├── plugin.json # ★ Claude Code 实际读取的清单
|
|
57
74
|
│ └── marketplace.json
|
|
58
75
|
├── .cursor-plugin/ .codex-plugin/ .github/plugin/ .agents/plugins/ .opencode/plugins/
|
|
59
76
|
│ # 各宿主安装面清单(均已统一为 team-flow)
|
|
60
|
-
├── AGENTS.md #
|
|
61
|
-
├── README.md / INSTALL.md # 顶层说明 /
|
|
62
|
-
├── package.json # npm 包(name 仍为 team-flow,见 §6 品牌残留)
|
|
77
|
+
├── AGENTS.md # 插件级机制说明(九套合一 + SOP + 配置注入)
|
|
78
|
+
├── README.md / INSTALL.md # 顶层说明 / 多安装面安装指南
|
|
63
79
|
├── scripts/ # tf 运行时 + 各宿主安装器 + 版本一致性检查
|
|
80
|
+
│ ├── team-flow.mjs # ★ CLI 入口(bin: tf / team-flow)
|
|
64
81
|
│ └── check-version-consistency.mjs # CI 守卫:所有 manifest 版本须=package.json
|
|
65
82
|
├── src/ dist/ # team-flow TypeScript 底座(schema/parsing/validation)
|
|
66
|
-
├── skills/ # ★
|
|
67
|
-
│ ├── workflow-start … bug-investigator
|
|
68
|
-
│ ├── ce-brainstorm … ce-proof
|
|
69
|
-
│ ├── architecture-design
|
|
70
|
-
│
|
|
71
|
-
├──
|
|
72
|
-
│ ├──
|
|
83
|
+
├── skills/ # ★ 23 个 skill(开发重点目录)
|
|
84
|
+
│ ├── workflow-start … bug-investigator # 底座 9 个
|
|
85
|
+
│ ├── ce-brainstorm … ce-proof # compound 核心 6 个
|
|
86
|
+
│ ├── architecture-design # 4A+DDD 增量设计
|
|
87
|
+
│ ├── prototype # 本地 HTML 原型
|
|
88
|
+
│ ├── design-system # 设计系统管理
|
|
89
|
+
│ ├── workflow-orchestrator # 产品级编排
|
|
90
|
+
│ ├── workflow-bootstrap # 项目接入
|
|
91
|
+
│ ├── e2e # 端到端测试
|
|
92
|
+
│ ├── session-handoff # session 交接
|
|
93
|
+
│ └── workflow-feedback # 反馈闭环
|
|
94
|
+
├── agents/ # 8 个顶层 agent
|
|
95
|
+
├── docs/ # 设计文档 + 上游文档
|
|
96
|
+
│ ├── architecture-api-db-design-enhancement-v0.9.md # ★ 权威设计规格(当前版本)
|
|
73
97
|
│ ├── prototype-design-research.md # 原型方案调研
|
|
74
98
|
│ ├── state-machine.md / artifact-contract.md / decision-points.md …
|
|
75
|
-
├── hooks/ templates/ tests/ assets/ llms.txt GEMINI.md .claude/
|
|
99
|
+
├── hooks/ templates/ tests/ assets/ llms.txt GEMINI.md .claude/
|
|
76
100
|
```
|
|
77
101
|
|
|
78
102
|
**设计权威来源**(改方案前必读):
|
|
79
|
-
- `docs/architecture-api-db-design-enhancement-v0.
|
|
80
|
-
- `docs/prototype-design-research.md` ——
|
|
103
|
+
- `docs/architecture-api-db-design-enhancement-v0.9.md` —— v0.9 当前权威版本(含 §27 身份统一章节)
|
|
104
|
+
- `docs/prototype-design-research.md` —— 原型五方案事实对比与「零外部依赖」结论
|
|
81
105
|
|
|
82
106
|
---
|
|
83
107
|
|
|
84
108
|
## 3. 关键设计决策(ADR 速记)
|
|
85
109
|
|
|
86
110
|
1. **插件名 = `team-flow`**(用户拍板)。
|
|
87
|
-
2. **
|
|
88
|
-
3. **compound
|
|
89
|
-
4.
|
|
90
|
-
5.
|
|
111
|
+
2. **npm 包名 = `@xulthekl/team-flow`**(scoped,解决 publish 权限冲突;author = `xulthekl`)。
|
|
112
|
+
3. **compound 范围 = 核心子集(C 方案,6 个)**,非全量 33。理由:避免 27 个嵌套 agent 全部并入导致膨胀;6 个核心已覆盖「头脑风暴→PRD→全局复利→策略→创意→验证」主链路。
|
|
113
|
+
4. **compound 的 agent 随所属 skill 自动并入**:嵌套在各 skill 内部的 `references/agents/*.md`,作为运行时子代理,非独立顶层 agents。
|
|
114
|
+
5. **CLI = `tf`**(bin 同时暴露 `team-flow` 别名)。npx 调用统一用 `npx --yes --package @xulthekl/team-flow@X.Y.Z tf <subcmd>`。
|
|
115
|
+
6. **状态文件 = `.team-flow.yaml`**(扁平,每 change 一份)。
|
|
116
|
+
7. **配置文件 = `team-flow.config.json`**(插件层扩展字段:`prd.template` / `prototype.designSystem` / `prototype.entry`)。
|
|
117
|
+
8. **版本同步机制**:`npm run version <x.y.z>` 自动更新 package.json + 所有 manifest + 所有 skill npx 引用 + phase-guard.md / llms.txt / GEMINI.md 版本戳。
|
|
91
118
|
|
|
92
119
|
### v0.3 三条专家评审修正(已采纳)
|
|
93
|
-
- **修正 A(§15.4
|
|
120
|
+
- **修正 A(§15.4)**:明确扩展字段非原生 schema,需实测 `tf runtime config --get prototype.designSystem` 是否真能读。
|
|
94
121
|
- **修正 B(§11)**:`arch-merge` → `prototype-sync` **顺序提交**(同一 change closing 内)。
|
|
95
|
-
- **修正 C(§15.3)**:原型膨胀防控(components/ 复用 design-system,禁内联漂移)+
|
|
122
|
+
- **修正 C(§15.3)**:原型膨胀防控(components/ 复用 design-system,禁内联漂移)+ 分支约定。
|
|
96
123
|
|
|
97
124
|
---
|
|
98
125
|
|
|
@@ -100,18 +127,13 @@ team-flow/
|
|
|
100
127
|
|
|
101
128
|
### 4.1 本地安装(开发态)
|
|
102
129
|
```bash
|
|
103
|
-
# 进入 team-flow 目录,用 Claude Code 加载为插件
|
|
104
130
|
cd team-flow
|
|
105
131
|
claude # 启动 Claude Code
|
|
106
132
|
/plugin add /absolute/path/to/team-flow # 本地路径安装
|
|
107
|
-
# 或从仓库
|
|
108
|
-
git clone <your-repo> && cd team-flow && claude
|
|
109
|
-
/plugin add ./team-flow
|
|
110
133
|
```
|
|
111
|
-
> Claude Code 实际读取 `.claude-plugin/plugin.json`(已统一为 team-flow)。安装后自动加载 `hooks/hooks.json`,新会话注入上下文。
|
|
112
134
|
|
|
113
135
|
### 4.2 项目级配置注入
|
|
114
|
-
项目根 `team-flow.config.json
|
|
136
|
+
项目根 `team-flow.config.json`:
|
|
115
137
|
```json
|
|
116
138
|
{
|
|
117
139
|
"artifacts": { "order": ["proposal","specs","design","tasks"], "skip": [] },
|
|
@@ -122,80 +144,72 @@ git clone <your-repo> && cd team-flow && claude
|
|
|
122
144
|
}
|
|
123
145
|
}
|
|
124
146
|
```
|
|
125
|
-
读取:`tf runtime config --get prototype.designSystem
|
|
147
|
+
读取:`tf runtime config --get prototype.designSystem`
|
|
126
148
|
|
|
127
|
-
### 4.3
|
|
128
|
-
```bash
|
|
129
|
-
cp -r skills/prototype/references/prototype-scaffold/ <project>/prototype/
|
|
130
|
-
# 随后按 prototype/design-system.md 填 token;prototype/ 与 prd/ 同级、git 分支隔离版本
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
### 4.4 开发与验证命令
|
|
149
|
+
### 4.3 开发与验证命令
|
|
134
150
|
```bash
|
|
135
151
|
npm install
|
|
136
152
|
npm run build # tsc 编译 src/ → dist/
|
|
137
|
-
npm test # node --test
|
|
138
|
-
npm run validate # 校验 artifacts
|
|
139
|
-
npm run check-versions # 版本一致性守卫(当前应 ✅ 全 0.
|
|
153
|
+
npm test # node --test 集成测试(421 个)
|
|
154
|
+
npm run validate # 校验 artifacts
|
|
155
|
+
npm run check-versions # 版本一致性守卫(当前应 ✅ 全 0.22.4)
|
|
140
156
|
```
|
|
141
157
|
|
|
142
158
|
---
|
|
143
159
|
|
|
144
160
|
## 5. 关键机制与 SOP
|
|
145
161
|
|
|
146
|
-
### 5.1
|
|
162
|
+
### 5.1 全局产物结构
|
|
147
163
|
```
|
|
148
164
|
prd/ PRD(有版本 v1→v2→v3,git 分支隔离)
|
|
149
|
-
prototype/ 全局原型系统(UI
|
|
150
|
-
docs/architecture/
|
|
151
|
-
specs/<cap>/
|
|
165
|
+
prototype/ 全局原型系统(UI 契约真相源)
|
|
166
|
+
docs/architecture/ 全局架构锚点
|
|
167
|
+
specs/<cap>/ 每变更设计/任务/契约
|
|
152
168
|
STRATEGY.md CONCEPTS.md 产品策略(BA) / 领域词汇
|
|
153
169
|
```
|
|
154
170
|
|
|
155
171
|
### 5.2 标准工作流(SOP)
|
|
156
172
|
```
|
|
157
173
|
模糊需求
|
|
158
|
-
→ [
|
|
159
|
-
→
|
|
160
|
-
→
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
→ change
|
|
174
|
+
→ [workflow-bootstrap](一次性,已有 baseline.md 则跳过)
|
|
175
|
+
→ [workflow-orchestrator]
|
|
176
|
+
→ S1 路径路由器 → 需求选择 + 判断入口路径
|
|
177
|
+
→ S2 PRD + 原型 → ce-brainstorm + prd-completeness-reviewer + prototype
|
|
178
|
+
→ S3 计划 → ce-plan → plan.md
|
|
179
|
+
→ S4 拆分验证与分发 → change-split-auditor 审计
|
|
180
|
+
→ S5 全局监控(change≥2 必选)
|
|
181
|
+
→ 每个 change:team-flow 8 态状态机
|
|
182
|
+
exploring → specifying → bridging → approved-for-build → executing → closing
|
|
183
|
+
→ change 完成:arch-merge → prototype-sync → 复利晋升
|
|
165
184
|
```
|
|
166
185
|
|
|
167
186
|
### 5.3 关键约束
|
|
168
|
-
- **原型全局一份**、与 PRD 同级、git
|
|
169
|
-
- **design.md 不可变**:架构增量经 `arch-merge` 回写全局
|
|
170
|
-
- **顺序提交**:`arch-merge` → `prototype-sync`(同一 change closing
|
|
171
|
-
- **膨胀防控**:`prototype/components/` 必须复用 `design-system.md
|
|
172
|
-
- **分支约定**:原型随 PRD
|
|
187
|
+
- **原型全局一份**、与 PRD 同级、git 分支隔离版本
|
|
188
|
+
- **design.md 不可变**:架构增量经 `arch-merge` 回写全局
|
|
189
|
+
- **顺序提交**:`arch-merge` → `prototype-sync`(同一 change closing 内)
|
|
190
|
+
- **膨胀防控**:`prototype/components/` 必须复用 `design-system.md`
|
|
191
|
+
- **分支约定**:原型随 PRD 当前版本分支维护
|
|
173
192
|
|
|
174
193
|
### 5.4 team-flow 8 态状态机
|
|
175
194
|
`exploring → specifying → bridging → approved-for-build → executing → closing`(另有 `onboarding` / `archived`)。
|
|
176
|
-
|
|
195
|
+
详见 `docs/state-machine.md`。
|
|
177
196
|
|
|
178
197
|
---
|
|
179
198
|
|
|
180
199
|
## 6. 剩余待办 / 已知项(按优先级)
|
|
181
200
|
|
|
182
|
-
###
|
|
183
|
-
- [ ]
|
|
184
|
-
|
|
185
|
-
- `GEMINI.md` 第 1/3/5 行、`llms.txt` 第 1/3-5 行、`.claude/always/phase-guard.md` 第 1 行头部 `# team-flow v0.10.0 |`(**注意**:`check-version-consistency.mjs` 的 GEMINI/phase-guard 版本正则硬编码了 `team-flow`,若改头部须同步改该脚本的正则,否则一致性检查会失败)。
|
|
186
|
-
- `INSTALL.md` 的 marketplace 命令 `MageByte-Zero/team-flow`、`/plugin install team-flow@team-flow`(第 44-45、53 行等)—— 要发布到 Claude Code marketplace 前必须替换。
|
|
187
|
-
- 各 team-flow skill 内 `npx --yes --package @xulthekl/team-flow@0.10.0 tf`(由 `check-version-consistency.mjs` 的 RUNTIME_FILES 校验,必须保持 `team-flow@0.10.0` 直到 team-flow 发布到 npm)。
|
|
188
|
-
- [ ] **实测 v0.3 修正 A**:验证 `tf runtime config --get prototype.designSystem` 真能读到扩展字段(当前未跑,是设计假设)。
|
|
201
|
+
### P1 —— 质量与验证
|
|
202
|
+
- [ ] **实测 v0.3 修正 A**:验证 `tf runtime config --get prototype.designSystem` 真能读到扩展字段
|
|
203
|
+
- [ ] **验证 23 个 skill 被各宿主正确发现加载**(`.claude-plugin/plugin.json` 的 `skills: "./skills/"` 路径)
|
|
189
204
|
|
|
190
|
-
###
|
|
191
|
-
- [ ]
|
|
192
|
-
- [ ]
|
|
193
|
-
- [ ]
|
|
194
|
-
- [ ] 补一张团队 flow 图(可选)。
|
|
205
|
+
### P2 —— 发布与治理
|
|
206
|
+
- [ ] **pre-commit hook 检测未发布版本**:防止本地版本领先 npm 公共源(§27.3 step 9 设计)
|
|
207
|
+
- [ ] **v1.0.0 GA 发布标准规划**:里程碑定义、稳定性标准、正式发布公告
|
|
208
|
+
- [ ] **marketplace.json 注册**:Claude Code / Cursor / GitHub 等 plugin marketplace 如需注册项,确认包名与元数据
|
|
195
209
|
|
|
196
|
-
###
|
|
197
|
-
- [ ]
|
|
198
|
-
- [ ]
|
|
210
|
+
### P3 —— 可选
|
|
211
|
+
- [ ] **用户文档迁移指引**:给已安装旧版用户一个迁移说明(`tf doctor` 自动迁移已有,评估是否足够)
|
|
212
|
+
- [ ] **外部文档同步**:GitHub repo README、npm 主页描述同步新包名
|
|
199
213
|
|
|
200
214
|
---
|
|
201
215
|
|
|
@@ -203,17 +217,28 @@ STRATEGY.md CONCEPTS.md 产品策略(BA) / 领域词汇
|
|
|
203
217
|
|
|
204
218
|
1. 打开 `team-flow/` 目录启动 Claude Code。
|
|
205
219
|
2. `/plugin add ./`(或绝对路径)加载插件;新会话会注入 `AGENTS.md` + `GEMINI.md` 上下文。
|
|
206
|
-
3. 读 `HANDOFF.md` + `docs/architecture-api-db-design-enhancement-v0.
|
|
220
|
+
3. 读 `HANDOFF.md` + `docs/architecture-api-db-design-enhancement-v0.9.md` 建立全局认知。
|
|
207
221
|
4. 想改能力 → 改 `skills/<name>/SKILL.md`(或 `references/`);想改运行时 → 改 `src/` 后 `npm run build`。
|
|
208
222
|
5. 改完跑 `npm run check-versions` 与 `npm test` 守门。
|
|
209
|
-
6. 按 §6 清单逐项收口品牌与验证。
|
|
210
223
|
|
|
211
224
|
---
|
|
212
225
|
|
|
213
|
-
## 8.
|
|
226
|
+
## 8. 身份统一历史(P1-6 三阶段)
|
|
227
|
+
|
|
228
|
+
| 阶段 | 版本 | 时间 | 内容 |
|
|
229
|
+
|------|------|------|------|
|
|
230
|
+
| 第一阶段 | v0.15.0 | 2026-07 | 产品级状态文件 `.team-flow/` 化 |
|
|
231
|
+
| 第二阶段 | v0.22.3 | 2026-07-27 | spec-superflow → team-flow 全量迁移(721+ 处)|
|
|
232
|
+
| 第三阶段 | v0.22.4 | 2026-07-27 | npm 包 scope 化 `@xulthekl/team-flow`,发布 npm |
|
|
233
|
+
|
|
234
|
+
详细记录见 `CHANGELOG.md` 与 `docs/architecture-api-db-design-enhancement-v0.9.md` §27。
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
238
|
+
## 9. 交付物清单(本次 workspace)
|
|
214
239
|
|
|
215
240
|
- `team-flow/` —— 统一插件工程(本 handoff 的载体)。
|
|
216
|
-
- `architecture-api-db-design-enhancement-v0.
|
|
217
|
-
- `
|
|
218
|
-
- `
|
|
219
|
-
-
|
|
241
|
+
- `architecture-api-db-design-enhancement-v0.9.md` / `prototype-design-research.md` —— 权威设计文档。
|
|
242
|
+
- `skills/` —— 23 个 skill 全部就位。
|
|
243
|
+
- `agents/` —— 8 个顶层 agent。
|
|
244
|
+
- `@xulthekl/team-flow@0.22.4` —— 已发布 npm 公共源。
|
package/INSTALL.md
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# team-flow
|
|
2
2
|
|
|
3
|
-
> 当前版本:`v0.
|
|
3
|
+
> 当前版本:`v0.24.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.24.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)
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Solutions Index
|
|
2
|
+
<!-- 每条一行,按 severity 降序,≤150 行硬上限 -->
|
|
3
|
+
| date | phase | domain | type | severity | summary | file |
|
|
4
|
+
|------|-------|--------|------|----------|---------|------|
|
|
5
|
+
| 2026-07-28 | cross-phase | general | insight | medium | (no summary) | cross-phase/2026-07-28-no-summary.md |
|