@xulthekl/team-flow 0.36.4 → 0.38.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 +1 -0
- package/CHANGELOG.md +37 -0
- package/GEMINI.md +1 -1
- package/INSTALL.md +1 -1
- package/README.md +1 -1
- package/agents/architecture-reviewer.md +16 -6
- package/agents/change-split-auditor.md +11 -6
- package/agents/code-reviewer.md +7 -6
- package/agents/cross-change-consistency-checker.md +11 -6
- package/agents/prd-completeness-reviewer.md +11 -6
- package/agents/prototype-reviewer.md +11 -6
- package/docs/README_en.md +1 -1
- package/docs/solutions/INDEX.md +1 -0
- package/docs/solutions/cross-phase/2026-08-06-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/cmd-prototype.mjs +227 -0
- package/scripts/lib/cmd-publish.mjs +254 -0
- package/scripts/lib/prototype-sync.mjs +41 -2
- package/scripts/lib/test-matrix-export.mjs +5 -0
- package/scripts/lib/test-merge.mjs +130 -93
- package/scripts/team-flow.mjs +8 -0
- package/skills/architecture-design/references/s3.5-product-architecture.md +9 -0
- package/skills/build-executor/SKILL.md +7 -0
- package/skills/build-executor/implementer-prompt.md +3 -1
- package/skills/ce-brainstorm/references/prototype-loop.md +2 -2
- package/skills/code-reviewer/SKILL.md +4 -3
- package/skills/code-reviewer/code-reviewer-prompt.md +2 -2
- package/skills/contract-builder/SKILL.md +19 -4
- package/skills/e2e/SKILL.md +2 -0
- package/skills/prototype/SKILL.md +4 -3
- package/skills/prototype/references/orchestration-flow.md +2 -2
- package/skills/release-archivist/SKILL.md +25 -6
- package/skills/spec-writer/SKILL.md +12 -8
- package/skills/test-strategy/SKILL.md +2 -1
- package/skills/test-strategy/references/design-methods-detail.md +1 -0
- package/skills/test-strategy/references/test-quality-rules.md +1 -0
- package/skills/workflow-orchestrator/references/s2-prd-prototype-loop.md +11 -2
- package/skills/workflow-orchestrator/references/s4-split-validate.md +9 -0
- package/skills/workflow-start/SKILL.md +10 -1
|
@@ -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. 24 skills + 15 agents with embedded TDD, SDD, code review, debugging, delta spec sync, and design-system-driven prototyping.",
|
|
12
|
-
"version": "0.
|
|
12
|
+
"version": "0.38.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.38.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). 24 skills + 15 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). 24 skills + 15 agents, one install.",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.38.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.38.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.38.0",
|
|
16
16
|
"source": ".",
|
|
17
17
|
"author": {
|
|
18
18
|
"name": "LT",
|
package/AGENTS.md
CHANGED
|
@@ -49,6 +49,7 @@ spec 驱动开发过程。8 态变更机:`exploring → specifying → bridgin
|
|
|
49
49
|
|
|
50
50
|
### 4. prototype(1 skill,本地 HTML 原型,v0.15.0 内部编排重构)
|
|
51
51
|
- 全局一份 `prototype/`(与 PRD 同级,git 分支隔离),零外部依赖、可离线
|
|
52
|
+
- **v0.37.0 版本 worktree 隔离**:原型独立仓库(有远程),版本分支 `prd-vN` 的 worktree 由 `tf prototype branch <prd-vN>` 创建/复用(隔离 + 团队拉取),版本收尾 `tf prototype deisolate <prd-vN> --merge --clean` merge 回主干(§68.4);原型 worktree 布局 `<workspace>/.worktrees/<prd-vN>/prototype/`
|
|
52
53
|
- **内部编排器(v0.15.0)**:主代理只编排不实施——环境探查(`prototype-env-scout`)→方案/人工评审→绘制(`prototype-builder`)→评审(`prototype-reviewer`)→循环→人工路由
|
|
53
54
|
- **v0.20.0 产出质量闸门**:builder→reviewer 间主代理强制 `test -f && test -s` 校验入口产物落盘(不信 status=done 字面值,缺失则 resume,不空转评审);后台子代理依赖 `<task-notification>` 完成通知,禁反复 `TaskOutput(block=true)` 轮询(设计 §22)
|
|
54
55
|
- **v0.21.0 决策点中继(stop-and-resume)**:子代理(无 AskUserQuestion)决策点经 `SendMessage(to: main)` 发问即停,主代理收 task-notification 代问用户、回传自动 resume 子代理续跑;主代理须维护请求-应答匹配(设计 §22.1.1,修订 §18.1.2,LT 实证确认)
|
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,43 @@ The format loosely follows Keep a Changelog.
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.38.0] - 2026-08-06
|
|
10
|
+
|
|
11
|
+
### Added(E2E case 记录 + 复利闭环 + 下游确认)
|
|
12
|
+
|
|
13
|
+
- **test-matrix 支持 E2E case(`test_tier=e2e`)**:对齐 v0.12 §42.4 三值承诺(unit/integration/e2e),实现补齐设计——test-strategy §3 从"e2e 独立覆盖不计入本矩阵"改为"含 UI 交互/跨层 AC 显式评估 E2E 必要性:纳入或记录排除理由";金字塔分母 = unit+integration
|
|
14
|
+
- **复利回写 E2E 层级**:`tf test-merge` rewriteIndex 的 `test_tier_breakdown` 增加 e2e 统计(`unit:N, integration:N, e2e:N`);extractSummary 识别 `E2E cases:` 行
|
|
15
|
+
- **下游 E2E 确认(release-archivist Step 5b)**:检测 test-matrix 含 E2E case → 无 e2e 报告 → AskUserQuestion 确认是否执行 E2E 测试(是 → 引导 `/e2e`;否 → 记录 skip + 理由,不 FAIL)
|
|
16
|
+
- **LLM 消费点 e2e 豁免(防断链)**:release-archivist Step 2b / build-executor implementer / code-reviewer 三个消费点的 coverage 分母与金字塔配比排除 `test_tier=e2e`
|
|
17
|
+
- **生成器/上游同步**:contract-builder Generation Protocol 第 7 步 E2E 评估 + Summary/契约段 E2E 行;test-matrix-export `TEST_KIND_TO_TIER` 加 `playwright_prototype`/`playwright_integration` → e2e;spec-writer Scenario 标签补 `##### E2E:`;design-methods-detail test_tier 表补 e2e;test-quality-rules 规则 11 明确 e2e case 合法落点 `e2e/`
|
|
18
|
+
|
|
19
|
+
### Bug Fixes(feedback 2026-08-05,test-merge 五 bug)
|
|
20
|
+
|
|
21
|
+
- **resolveDeferred 误删 Current Cases**:原全文件 regex `\|<caseId>\|[^\n]*\n` 把 baselines Current Cases 表正常 case 行全部误删(表体清空、Evolution Log 计数保留)→ 改为仅删除 `## Deferred Items` 段内被新 case 覆盖的行
|
|
22
|
+
- **extractSummary 遇 markdown bold 返回 0**:regex `Total cases:\s*(\d+)` 不匹配 `**87**`(C1 矩阵 LLM 手写加粗)→ 容忍可选 `**` 前缀
|
|
23
|
+
- **dry-run 实为真写**:dryRun 仅 gitCommit 生效,Step 2-5 照常写盘 → mergeBaselines/resolveDeferred/appendChangelog/rewriteIndex 全链路 dryRun 透传,dry-run 不写任何文件
|
|
24
|
+
- **mergeExistingBaseline `startsWith('')` 恒真**:Current Cases"覆盖式"语义失效,旧 case 行每次 merge 累积 → 修正退出条件,旧行被替换
|
|
25
|
+
- **`.filter(Boolean)` 丢空列错位**:mock 等空列导致 cells 索引左移,work_mode/test_file/test_method_name 静默错位(E2E case 的 mock 列必空,高发)→ 改 `slice(1,-1)` 按索引保留空列
|
|
26
|
+
- **Evolution Log 幂等**:同 change 同日重复执行不重复 append
|
|
27
|
+
|
|
28
|
+
### Tests
|
|
29
|
+
|
|
30
|
+
- **tests/lib/test-merge.test.mjs(新增)**:test-merge 是全库唯一无测试覆盖的核心 merge 命令,补齐 11 个用例(resolveDeferred 不误删 / extractSummary bold / 覆盖式 + 幂等 / 空列列位 / dry-run 不写盘 / E2E 复利统计)
|
|
31
|
+
|
|
32
|
+
### 来源
|
|
33
|
+
|
|
34
|
+
- workflow-feedback 2026-08-05(P1-1~P1-4 + P2-1)交叉确认:2 个独立 Explore agent 制品链核查 + resolveDeferred 实证(旧代码表体清空 vs 新代码保留)
|
|
35
|
+
|
|
36
|
+
## [0.37.0] - 2026-08-05
|
|
37
|
+
|
|
38
|
+
### Added(阶段同步 + 原型版本隔离,设计增强方案 v0.15 §68)
|
|
39
|
+
|
|
40
|
+
- **CLI 新命令 `tf publish`**:阶段产物白名单提交 + 可选推送(`--prd / --arch / --changes <dir> / --all` + `--push` 确认制 + `--dry-run`);复用 arch-merge 白名单 commit 模式 + 外部脏文件检测 + 独立写锁(`.publish.lock`)
|
|
41
|
+
- **CLI 新命令 `tf prototype branch` / `tf prototype deisolate`**:原型仓库(独立 + 远程)PRD 版本 worktree 隔离——`branch <prd-vN>` 创建/复用版本 worktree(隔离 + 团队一键拉取);`deisolate <prd-vN> --merge --clean` 版本收尾 merge 回主干 + 清理(方案 A:merge 时机 = 版本收尾)
|
|
42
|
+
- **5 个同步门禁点(G1-G5,§68.2)**:S2 冻结 / ARCH 完成 / orchestrator 结束 / execution-contract 完成 / change closing——各点 AskUserQuestion 三选项(提交并推送 / 仅提交 / 暂不同步),团队协作阶段产物同步
|
|
43
|
+
- **制品链路径版本化修正(§68.5)**:原型引用 = 语义相对 + 版本绑定;spec-writer / build-executor / e2e / contract-builder 声明原型版本 worktree 路径;`prototype-sync --prototype-dir` 缺省按版本解析 worktree(`derivePrdVersion`/`resolvePrototypeDir`,change-brief `upstream_plan_ref` 推导,worktree 缺失回退主仓库并提示)
|
|
44
|
+
- **文档**:设计增强方案 v0.15(§68 阶段同步 + 原型版本隔离 + §69 决策落实状态)
|
|
45
|
+
|
|
9
46
|
## [0.36.4] - 2026-08-05
|
|
10
47
|
|
|
11
48
|
### Added(Wave 审查纪律 + 上下文轮转)
|
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.38.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.38.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
|
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: architecture-reviewer
|
|
3
|
-
description: 架构设计自动审查 agent
|
|
3
|
+
description: 架构设计自动审查 agent——独立上下文,对照 PRD/plan/change-brief + 全局基线 + conventions 审查架构产出质量(6 维度 A1-A6),填补 architecture-design 阶段"设计完无审查"的缺口。循环修正 ≤3 轮 + 收敛检测。直接写审查报告文件,返回摘要 + 文件路径。
|
|
4
4
|
|
|
5
5
|
model: inherit
|
|
6
6
|
color: yellow
|
|
7
|
-
tools: ["Read", "Bash", "Grep", "Glob"]
|
|
7
|
+
tools: ["Read", "Bash", "Grep", "Glob", "Write"]
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
-
You are an independent Architecture Consistency Reviewer. You check whether architecture design deliverables are structurally complete, consistent with the PRD/plan/change-brief, aligned with the global architecture baseline, and compliant with project conventions. You produce a graded review report across 6 dimensions
|
|
10
|
+
You are an independent Architecture Consistency Reviewer. You check whether architecture design deliverables are structurally complete, consistent with the PRD/plan/change-brief, aligned with the global architecture baseline, and compliant with project conventions. You produce a graded review report across 6 dimensions and write it to disk.
|
|
11
11
|
|
|
12
12
|
## The Iron Law
|
|
13
13
|
|
|
14
|
-
You are an independent reviewer. You did NOT participate in producing the architecture design. You read the deliverables fresh, compare them against the baseline and requirements, and report findings. You
|
|
14
|
+
You are an independent reviewer. You did NOT participate in producing the architecture design. You read the deliverables fresh, compare them against the baseline and requirements, and report findings. You MUST write the review report to disk:
|
|
15
|
+
- **change 模式**:`changes/<name>/architecture/auto-review.md`
|
|
16
|
+
- **product 模式**:`docs/architecture/iterations/vN/auto-review.md`
|
|
17
|
+
|
|
18
|
+
After writing, return a summary of the verdict + the report file path. Do NOT modify any architecture deliverable files — only the review report.
|
|
15
19
|
|
|
16
20
|
## Inputs
|
|
17
21
|
|
|
@@ -149,7 +153,7 @@ Aggregate all findings and determine verdict.
|
|
|
149
153
|
- **Architecture Dir**: {architecture_dir}
|
|
150
154
|
- **Global Arch Dir**: {global_arch_dir}
|
|
151
155
|
- **Review round**: {N}
|
|
152
|
-
- **Reviewer**: architecture-reviewer agent (independent
|
|
156
|
+
- **Reviewer**: architecture-reviewer agent (independent)
|
|
153
157
|
- **Timestamp**: {ISO 8601}
|
|
154
158
|
|
|
155
159
|
## Verdict: {PASS | PASS_WITH_WARNINGS | FAIL}
|
|
@@ -214,6 +218,11 @@ Aggregate all findings and determine verdict.
|
|
|
214
218
|
| Bounded Contexts | {n} | {m} | {percent}% |
|
|
215
219
|
| APIs | {n} | {m} | {percent}% |
|
|
216
220
|
| DB Changes | {n} | {m} | {percent}% |
|
|
221
|
+
|
|
222
|
+
## Report File
|
|
223
|
+
|
|
224
|
+
- **Path**: {report_file_path}
|
|
225
|
+
- **Written**: ✅
|
|
217
226
|
```
|
|
218
227
|
|
|
219
228
|
## Red Lines
|
|
@@ -225,9 +234,10 @@ Aggregate all findings and determine verdict.
|
|
|
225
234
|
- Load and check conventions when conventions_config is provided
|
|
226
235
|
- Build an explicit coverage matrix for A4, not a vibes-based assessment
|
|
227
236
|
- Give a clear, unambiguous verdict
|
|
237
|
+
- Write the review report to the specified path, then return summary + file path
|
|
228
238
|
|
|
229
239
|
**DON'T:**
|
|
230
|
-
- Modify any
|
|
240
|
+
- Modify any architecture deliverable files — only write the review report
|
|
231
241
|
- Guess or infer requirements not explicitly in change-brief or plan
|
|
232
242
|
- FAIL on Important findings — FAIL is Critical-only
|
|
233
243
|
- Skip the Pre-check phase and jump straight to semantic analysis
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: change-split-auditor
|
|
3
|
-
description: plan.md 拆分质量审计。在 ce-plan 产出 plan.md 后、change 脚手架前,独立审计拆分质量——PRD 需求覆盖矩阵、DAG 无环、粒度均衡、字段完整性、所有权粒度合规(v0.9 根因判据硬门禁:切碎检测/无设计单元/跨单元臃肿)。输出 PASS/FAIL verdict
|
|
3
|
+
description: plan.md 拆分质量审计。在 ce-plan 产出 plan.md 后、change 脚手架前,独立审计拆分质量——PRD 需求覆盖矩阵、DAG 无环、粒度均衡、字段完整性、所有权粒度合规(v0.9 根因判据硬门禁:切碎检测/无设计单元/跨单元臃肿)。输出 PASS/FAIL verdict + 审查报告文件。
|
|
4
4
|
|
|
5
5
|
model: inherit
|
|
6
6
|
color: cyan
|
|
7
|
-
tools: ["Read", "Bash", "Grep", "Glob"]
|
|
7
|
+
tools: ["Read", "Bash", "Grep", "Glob", "Write"]
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
-
You are an independent Change Split Auditor. You audit the quality of a plan.md's change decomposition BEFORE any change directories are created. You check 5 dimensions: requirement coverage, DAG validity, granularity balance, field completeness, and ownership granularity compliance (v0.9 root-cause criterion). You
|
|
10
|
+
You are an independent Change Split Auditor. You audit the quality of a plan.md's change decomposition BEFORE any change directories are created. You check 5 dimensions: requirement coverage, DAG validity, granularity balance, field completeness, and ownership granularity compliance (v0.9 root-cause criterion). You write the audit report to disk and return a summary.
|
|
11
11
|
|
|
12
12
|
## The Iron Law
|
|
13
13
|
|
|
14
|
-
You are
|
|
14
|
+
You are an auditor. You did NOT produce the plan or the PRD. You read both artifacts, cross-reference them, and produce a verdict with findings. You MUST write the audit report to disk at the path specified by the orchestration layer (typically `prd/vN/change-split-audit.md`). On FAIL, the orchestration layer carries your findings back to ce-plan for deepening. Do NOT modify plan.md or PRD — only write the audit report.
|
|
15
15
|
|
|
16
16
|
## Inputs
|
|
17
17
|
|
|
@@ -139,7 +139,7 @@ FAIL → orchestration layer returns findings to ce-plan for deepening, then re-
|
|
|
139
139
|
- **PRD**: {prd_path}
|
|
140
140
|
- **Changes found**: {n}
|
|
141
141
|
- **PRD requirements found**: {m}
|
|
142
|
-
- **Auditor**: change-split-auditor agent (independent
|
|
142
|
+
- **Auditor**: change-split-auditor agent (independent)
|
|
143
143
|
|
|
144
144
|
## Verdict: {PASS | FAIL}
|
|
145
145
|
|
|
@@ -193,6 +193,11 @@ Coverage: {covered}/{total} ({percent}%)
|
|
|
193
193
|
| 1 | D1 | — | Gap | Critical | PRD §7.3 报表导出未被任何 change 覆盖 | 新增 change 或扩展现有 change scope |
|
|
194
194
|
| 2 | D2 | change-1,3 | Cycle | Critical | change-1→change-3→change-1 循环依赖 | 重新划分边界 |
|
|
195
195
|
| ... | | | | | | |
|
|
196
|
+
|
|
197
|
+
## Report File
|
|
198
|
+
|
|
199
|
+
- **Path**: {report_file_path}
|
|
200
|
+
- **Written**: ✅
|
|
196
201
|
```
|
|
197
202
|
|
|
198
203
|
## Red Lines
|
|
@@ -211,7 +216,7 @@ Coverage: {covered}/{total} ({percent}%)
|
|
|
211
216
|
- Recognize legitimate base/infra changes: a change that holds **complete** ownership of a layer/contract (e.g. "read-model CQRS query base") is self-contained → PASS, even if upper changes consume it
|
|
212
217
|
|
|
213
218
|
**DON'T:**
|
|
214
|
-
- Modify plan.md or PRD —
|
|
219
|
+
- Modify plan.md or PRD — only write the audit report
|
|
215
220
|
- FAIL on numerical granularity alone (D3, advisory); but DO FAIL on ownership violation (D5, Critical)
|
|
216
221
|
- Judge D5 by scope **text labels** alone (e.g. "looks like a module") — judge by **ownership analysis**: does the architecture-design of this change overlap with another's?
|
|
217
222
|
- Ignore implicit dependencies — flag them as Important even if they might be intentional
|
package/agents/code-reviewer.md
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: code-reviewer
|
|
3
|
-
description: 代码审查 agent——审查代码质量、规格合规性、架构合理性、实现完整性。在 build-executor 执行后、release-archivist
|
|
3
|
+
description: 代码审查 agent——审查代码质量、规格合规性、架构合理性、实现完整性。在 build-executor 执行后、release-archivist 归档前,独立审查实现质量。直接写审查报告文件,返回摘要 + 文件路径。
|
|
4
4
|
|
|
5
5
|
model: inherit
|
|
6
6
|
color: blue
|
|
7
|
-
tools: ["Read", "Grep", "Glob", "Bash"]
|
|
7
|
+
tools: ["Read", "Grep", "Glob", "Bash", "Write"]
|
|
8
8
|
skills:
|
|
9
9
|
- code-reviewer
|
|
10
10
|
---
|
|
11
11
|
|
|
12
|
-
You are an independent Code Reviewer. You review code changes for quality, spec compliance, architecture soundness, and implementation completeness. You
|
|
12
|
+
You are an independent Code Reviewer. You review code changes for quality, spec compliance, architecture soundness, and implementation completeness. You write the review report to disk and return a summary.
|
|
13
13
|
|
|
14
14
|
**Your preloaded Skill contains the detailed methodology** (6-step review process, calibration rules, severity definitions, critical rules). Follow it for HOW. This prompt defines WHO you are and WHAT you must deliver.
|
|
15
15
|
|
|
16
16
|
## Iron Law
|
|
17
17
|
|
|
18
|
-
You are a
|
|
18
|
+
You are a reviewer. You did NOT write the code. You read the implementation, compare it against specs/requirements, check code quality, and produce a verdict with findings. You MUST write the review report to disk at the path specified by the orchestration layer (typically `changes/<name>/code-review.md`). Do NOT modify any implementation files — only write the review report.
|
|
19
19
|
|
|
20
20
|
## Inputs
|
|
21
21
|
|
|
@@ -37,8 +37,9 @@ Produce a structured review report with the following sections:
|
|
|
37
37
|
3. **Findings table**: severity, category, file, line, description, suggestion
|
|
38
38
|
4. **Spec compliance matrix**: spec requirement → implementation status
|
|
39
39
|
5. **Summary**: key strengths, critical issues, recommendations
|
|
40
|
+
6. **Report File**: path to the written report file + confirmation
|
|
40
41
|
|
|
41
|
-
Your preloaded Skill provides the full report template and formatting guidelines.
|
|
42
|
+
Your preloaded Skill provides the full report template and formatting guidelines. Write the report to disk, then return summary + file path.
|
|
42
43
|
|
|
43
44
|
## Verdict Criteria
|
|
44
45
|
|
|
@@ -57,7 +58,7 @@ Your preloaded Skill defines severity levels (Critical / Important / Minor) and
|
|
|
57
58
|
- Give a clear, unambiguous verdict
|
|
58
59
|
|
|
59
60
|
**DON'T:**
|
|
60
|
-
- Modify any
|
|
61
|
+
- Modify any implementation files — only write the review report
|
|
61
62
|
- Guess at spec requirements not explicitly stated
|
|
62
63
|
- Skip the spec compliance check (it's the core deliverable)
|
|
63
64
|
- Mark style issues as Critical (they're Minor)
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cross-change-consistency-checker
|
|
3
|
-
description: 跨 change 冲突检测。在多 change 并行执行期或 change closing 时,检测共享聚合/实体被多个 change 修改、API 签名变更影响、与全局架构锚点漂移、与原型 testid
|
|
3
|
+
description: 跨 change 冲突检测。在多 change 并行执行期或 change closing 时,检测共享聚合/实体被多个 change 修改、API 签名变更影响、与全局架构锚点漂移、与原型 testid 契约漂移。直接写冲突报告文件,返回摘要 + 文件路径。
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
model: inherit
|
|
7
7
|
color: red
|
|
8
|
-
tools: ["Read", "Bash", "Grep", "Glob"]
|
|
8
|
+
tools: ["Read", "Bash", "Grep", "Glob", "Write"]
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
You are an independent Cross-Change Consistency Checker. You detect conflicts across multiple parallel or sequential changes: shared aggregate mutations, API signature breakage, architecture anchor drift, and prototype testid contract drift. You
|
|
11
|
+
You are an independent Cross-Change Consistency Checker. You detect conflicts across multiple parallel or sequential changes: shared aggregate mutations, API signature breakage, architecture anchor drift, and prototype testid contract drift. You write the conflict report to disk and return a summary.
|
|
12
12
|
|
|
13
13
|
## The Iron Law
|
|
14
14
|
|
|
15
|
-
You are a
|
|
15
|
+
You are a checker. You did NOT implement any change. You read all change artifacts, global architecture anchors, and the prototype, then report conflicts. You MUST write the conflict report to disk at the path specified by the orchestration layer (typically `changes/<name>/cross-change-consistency.md` or a global report path). Do NOT modify any change artifacts — only write the conflict report.
|
|
16
16
|
|
|
17
17
|
## Inputs
|
|
18
18
|
|
|
@@ -106,7 +106,7 @@ Use `grep` to search for API references across change specs and design docs.
|
|
|
106
106
|
- **Changes analyzed**: {change-1, change-2, ...}
|
|
107
107
|
- **Architecture anchors**: {arch_path}
|
|
108
108
|
- **Prototype**: {prototype_path}
|
|
109
|
-
- **Checker**: cross-change-consistency-checker agent (independent
|
|
109
|
+
- **Checker**: cross-change-consistency-checker agent (independent)
|
|
110
110
|
|
|
111
111
|
## Result: {CLEAN | CONFLICTS_FOUND}
|
|
112
112
|
|
|
@@ -148,6 +148,11 @@ Use `grep` to search for API references across change specs and design docs.
|
|
|
148
148
|
| 1 | D1 | change-1, change-3 | OrderAggregate.java | Critical | 合并两个 change 的聚合修改,或拆分为顺序执行 |
|
|
149
149
|
| 2 | D2 | change-1 → change-2 | POST /api/orders | Critical | change-1 需保持向后兼容,或 change-2 同步适配 |
|
|
150
150
|
| ... | | | | | |
|
|
151
|
+
|
|
152
|
+
## Report File
|
|
153
|
+
|
|
154
|
+
- **Path**: {report_file_path}
|
|
155
|
+
- **Written**: ✅
|
|
151
156
|
```
|
|
152
157
|
|
|
153
158
|
If no conflicts are found, output:
|
|
@@ -168,7 +173,7 @@ All 4 dimensions checked. No cross-change conflicts detected.
|
|
|
168
173
|
- Skip dimensions gracefully when inputs are missing (note the skip, don't crash)
|
|
169
174
|
|
|
170
175
|
**DON'T:**
|
|
171
|
-
- Modify any change's files —
|
|
176
|
+
- Modify any change's files — only write the conflict report
|
|
172
177
|
- Report single-change issues as cross-change conflicts (use code-reviewer for that)
|
|
173
178
|
- Flag shared read-only references as conflicts (two changes READING the same file is fine)
|
|
174
179
|
- Ignore architecture drift because "arch-merge will handle it later" — report it, let the orchestrator decide
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: prd-completeness-reviewer
|
|
3
|
-
description: PRD 完整性自动评审。在 PRD 写入后、冻结前,独立检查"需求描述是否完整到能支撑后续 plan/spec 实施"(5
|
|
3
|
+
description: PRD 完整性自动评审。在 PRD 写入后、冻结前,独立检查"需求描述是否完整到能支撑后续 plan/spec 实施"(5 维度),输出分级完整性报告。直接写审查报告文件,返回摘要 + 文件路径。与 claim verifier 分工——claim verifier 管"说得对不对"(核查事实声明),本 agent 管"说得全不全、能否落地"。
|
|
4
4
|
|
|
5
5
|
model: inherit
|
|
6
6
|
color: yellow
|
|
7
|
-
tools: ["Read", "Bash", "Grep", "Glob"]
|
|
7
|
+
tools: ["Read", "Bash", "Grep", "Glob", "Write"]
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
-
You are an independent PRD Completeness Reviewer. You check whether a PRD is **complete enough to support downstream plan/spec/build work**. You produce a graded completeness report across 5 dimensions
|
|
10
|
+
You are an independent PRD Completeness Reviewer. You check whether a PRD is **complete enough to support downstream plan/spec/build work**. You produce a graded completeness report across 5 dimensions and write it to disk.
|
|
11
11
|
|
|
12
12
|
## The Iron Law
|
|
13
13
|
|
|
14
|
-
You are an independent reviewer. You did NOT participate in producing the PRD. You read the PRD (and CONCEPTS.md if present) fresh and assess whether the requirement description is complete enough to be actionable. You
|
|
14
|
+
You are an independent reviewer. You did NOT participate in producing the PRD. You read the PRD (and CONCEPTS.md if present) fresh and assess whether the requirement description is complete enough to be actionable. You MUST write the review report to disk at `prd/vN/prd-completeness-review.md`. Do NOT modify the PRD or any other artifact — only write the review report.
|
|
15
15
|
|
|
16
16
|
## Division of Labor with claim verifier
|
|
17
17
|
|
|
@@ -94,7 +94,7 @@ Aggregate findings → final verdict per the Judgment Criteria.
|
|
|
94
94
|
- **PRD**: {prd_path}
|
|
95
95
|
- **CONCEPTS**: {concepts_path or "N/A"}
|
|
96
96
|
- **Review round**: {N}
|
|
97
|
-
- **Reviewer**: prd-completeness-reviewer agent (independent
|
|
97
|
+
- **Reviewer**: prd-completeness-reviewer agent (independent)
|
|
98
98
|
- **Timestamp**: {ISO 8601}
|
|
99
99
|
|
|
100
100
|
## Verdict: {PASS | PASS_WITH_WARNINGS | FAIL}
|
|
@@ -131,6 +131,11 @@ Aggregate findings → final verdict per the Judgment Criteria.
|
|
|
131
131
|
## Completeness Statistics
|
|
132
132
|
- Requirements with complete user story (D1): {m}/{n} ({percent}%)
|
|
133
133
|
- Requirements with verifiable AC (D2): {m}/{n} ({percent}%)
|
|
134
|
+
|
|
135
|
+
## Report File
|
|
136
|
+
|
|
137
|
+
- **Path**: {report_file_path}
|
|
138
|
+
- **Written**: ✅
|
|
134
139
|
```
|
|
135
140
|
|
|
136
141
|
## Red Lines
|
|
@@ -143,7 +148,7 @@ Aggregate findings → final verdict per the Judgment Criteria.
|
|
|
143
148
|
- Treat vague AC ("表现良好"/"快速响应" without threshold) as a D2 Critical
|
|
144
149
|
|
|
145
150
|
**DON'T:**
|
|
146
|
-
- Modify any
|
|
151
|
+
- Modify the PRD or any other artifact — only write the review report
|
|
147
152
|
- Duplicate claim verification — do NOT fact-check external claims, that is claim verifier's job
|
|
148
153
|
- Infer requirement content the PRD does not state — if the PRD doesn't define it and the dimension requires it, that is a finding, not something to fill in
|
|
149
154
|
- Trigger FAIL on Important or Minor findings — FAIL is Critical-only
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: prototype-reviewer
|
|
3
|
-
description: 原型 vs PRD 一致性自动评审。在原型产出后、人工评审前,独立检查原型与 PRD 的结构化一致性(6
|
|
3
|
+
description: 原型 vs PRD 一致性自动评审。在原型产出后、人工评审前,独立检查原型与 PRD 的结构化一致性(6 维度),输出分级一致性报告。直接写审查报告文件,返回摘要 + 文件路径。
|
|
4
4
|
|
|
5
5
|
model: inherit
|
|
6
6
|
color: green
|
|
7
|
-
tools: ["Read", "Bash", "Grep", "Glob"]
|
|
7
|
+
tools: ["Read", "Bash", "Grep", "Glob", "Write"]
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
-
You are an independent Prototype Consistency Reviewer. You check whether an HTML prototype is structurally and semantically consistent with its PRD. You produce a graded consistency report across 6 dimensions
|
|
10
|
+
You are an independent Prototype Consistency Reviewer. You check whether an HTML prototype is structurally and semantically consistent with its PRD. You produce a graded consistency report across 6 dimensions and write it to disk.
|
|
11
11
|
|
|
12
12
|
## The Iron Law
|
|
13
13
|
|
|
14
|
-
You are an independent reviewer. You did NOT participate in producing the PRD or the prototype. You read both artifacts fresh, compare them structurally, and report findings. You
|
|
14
|
+
You are an independent reviewer. You did NOT participate in producing the PRD or the prototype. You read both artifacts fresh, compare them structurally, and report findings. You MUST write the review report to disk at `prd/vN/prototype-auto-review.md`. Do NOT modify the prototype or PRD — only write the review report.
|
|
15
15
|
|
|
16
16
|
## Inputs
|
|
17
17
|
|
|
@@ -108,7 +108,7 @@ If either path is missing or unreadable, report `FAIL` with reason `INPUT_ERROR`
|
|
|
108
108
|
- **PRD**: {prd_path}
|
|
109
109
|
- **Prototype**: {prototype_path}
|
|
110
110
|
- **Review round**: {N}
|
|
111
|
-
- **Reviewer**: prototype-reviewer agent (independent
|
|
111
|
+
- **Reviewer**: prototype-reviewer agent (independent)
|
|
112
112
|
- **Timestamp**: {ISO 8601}
|
|
113
113
|
|
|
114
114
|
## Verdict: {PASS | PASS_WITH_WARNINGS | FAIL}
|
|
@@ -166,6 +166,11 @@ If either path is missing or unreadable, report `FAIL` with reason `INPUT_ERROR`
|
|
|
166
166
|
- Functions: {m}/{n} ({percent}%)
|
|
167
167
|
- Fields: {m}/{n} ({percent}%)
|
|
168
168
|
- Routes: {m}/{n} ({percent}%)
|
|
169
|
+
|
|
170
|
+
## Report File
|
|
171
|
+
|
|
172
|
+
- **Path**: {report_file_path}
|
|
173
|
+
- **Written**: ✅
|
|
169
174
|
```
|
|
170
175
|
|
|
171
176
|
## Red Lines
|
|
@@ -178,7 +183,7 @@ If either path is missing or unreadable, report `FAIL` with reason `INPUT_ERROR`
|
|
|
178
183
|
- Distinguish Pre-check (mechanical) from Deep-check (semantic, advisory) findings
|
|
179
184
|
|
|
180
185
|
**DON'T:**
|
|
181
|
-
- Modify
|
|
186
|
+
- Modify the prototype or PRD — only write the review report
|
|
182
187
|
- Guess or infer PRD content that is not explicitly written — if PRD doesn't define it, it's not a finding
|
|
183
188
|
- Mark style/aesthetics/UX issues — those are for human review only
|
|
184
189
|
- Trigger FAIL on Important findings — FAIL is Critical-only
|
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.38.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,6 +2,7 @@
|
|
|
2
2
|
<!-- 每条一行,按 severity 降序,≤150 行硬上限 -->
|
|
3
3
|
| date | phase | domain | type | severity | summary | file |
|
|
4
4
|
|------|-------|--------|------|----------|---------|------|
|
|
5
|
+
| 2026-08-06 | cross-phase | general | insight | medium | (no summary) | cross-phase/2026-08-06-no-summary.md |
|
|
5
6
|
| 2026-08-05 | cross-phase | general | insight | medium | (no summary) | cross-phase/2026-08-05-no-summary.md |
|
|
6
7
|
| 2026-08-04 | cross-phase | general | insight | medium | (no summary) | cross-phase/2026-08-04-no-summary.md |
|
|
7
8
|
| 2026-08-03 | cross-phase | general | insight | medium | (no summary) | cross-phase/2026-08-03-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). 24 skills, one install.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.38.0",
|
|
5
5
|
"contextFileName": "GEMINI.md"
|
|
6
6
|
}
|
package/hooks/session-start
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# v0.
|
|
2
|
+
# v0.38.0: auto-sync CLI version with plugin version
|
|
3
3
|
set -e
|
|
4
4
|
|
|
5
5
|
# ═══════════════════════════════════════════════════════════════
|
|
6
6
|
# Plugin version (update this when releasing new versions)
|
|
7
7
|
# ═══════════════════════════════════════════════════════════════
|
|
8
|
-
PLUGIN_VERSION="0.
|
|
8
|
+
PLUGIN_VERSION="0.38.0"
|
|
9
9
|
|
|
10
10
|
# ═══════════════════════════════════════════════════════════════
|
|
11
11
|
# Step 1: Auto-sync CLI version with plugin version
|
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.38.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.38.0",
|
|
4
4
|
"description": "Unified plugin (24 skills + 15 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.38.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). 24 skills + 15 agents, one install.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "LT"
|