@xulthekl/team-flow 0.33.0 → 0.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +2 -0
- package/CHANGELOG.md +57 -0
- package/CONTRIBUTING.md +44 -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-08-04-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/conventions-generator.mjs +512 -0
- package/scripts/lib/test-record.mjs +65 -2
- package/skills/test-strategy/SKILL.md +37 -0
- package/skills/test-strategy/references/integration-test-contracts.md +237 -0
- package/skills/test-strategy/references/integration-test-isolation.md +346 -0
- package/skills/test-strategy/references/test-quality-rules.md +292 -0
- package/skills/workflow-bootstrap/SKILL.md +40 -3
- package/templates/agent-template.md +41 -0
- package/templates/conventions/_manifest.json +39 -0
- package/templates/conventions/glaf4-compliant/java-testing.md +367 -0
- package/templates/conventions/glaf4-compliant/spring-patterns.md +415 -0
- package/templates/conventions/js-testing.md +261 -0
- package/templates/conventions/python-testing.md +333 -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. 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.34.1",
|
|
13
13
|
"source": "./",
|
|
14
14
|
"author": {
|
|
15
15
|
"name": "LT",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "team-flow",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.34.1",
|
|
4
4
|
"description": "Unified workflow plugin: team-flow (spec-driven dev: TDD/SDD/code-review/debugging) + compound-engineering core subset (brainstorm/plan/compound/strategy/ideate/proof, global compounding) + architecture-design (4A+DDD incremental design & global compounding) + prototype (local HTML prototype, zero external deps) + e2e (Playwright E2E, AC-driven) + workflow-orchestrator (product-level workflow orchestration) + workflow-bootstrap (existing project onboarding) + session-handoff (context transfer) + workflow-feedback (issue tracking). 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.34.1",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "LT",
|
|
8
8
|
"url": "https://github.com/LT"
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
},
|
|
7
7
|
"metadata": {
|
|
8
8
|
"description": "Unified workflow plugins and skills for AI coding agents (team-flow: team-flow + compound + architecture-design + prototype).",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.34.1"
|
|
10
10
|
},
|
|
11
11
|
"plugins": [
|
|
12
12
|
{
|
|
13
13
|
"name": "team-flow",
|
|
14
14
|
"description": "Unified workflow with planning artifacts, execution contracts, TDD, review gates, systematic debugging, delta spec sync, architecture-design, and local HTML prototyping.",
|
|
15
|
-
"version": "0.
|
|
15
|
+
"version": "0.34.1",
|
|
16
16
|
"source": ".",
|
|
17
17
|
"author": {
|
|
18
18
|
"name": "LT",
|
package/AGENTS.md
CHANGED
|
@@ -210,6 +210,8 @@ STRATEGY.md CONCEPTS.md 产品策略(BA) / 领域词汇
|
|
|
210
210
|
|
|
211
211
|
### Agents 索引(v0.7 新增,v0.30.0 增至 15 个)
|
|
212
212
|
|
|
213
|
+
> **agent 文件设计规范见 CONTRIBUTING.md §6 + `templates/agent-template.md`**(v0.33.0):frontmatter 必须合法 YAML(非法时 Claude Code 静默降级,skills: 预加载与 tools: 限制全部失效);description 单句、禁 `<example>` 块;新增/修改 agent 必过 frontmatter-lint + 实证探针。
|
|
214
|
+
|
|
213
215
|
| Agent | 职责 | Tools | 触发场景 |
|
|
214
216
|
|-------|------|-------|---------|
|
|
215
217
|
| architecture-design | 架构设计门控 agent——五项检查 + 三件套产出 + SQL 制品(workflow-start 子代理调用,判断+执行一体化) | Read/Bash/Grep/Glob/Write | workflow-start exploring→specifying 状态转换时(架构设计门控,v0.27.2) |
|
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,63 @@ The format loosely follows Keep a Changelog.
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.34.1] - 2026-08-04
|
|
10
|
+
|
|
11
|
+
### Added(工作空间支持——conventions-generator 支持多子项目扫描)
|
|
12
|
+
|
|
13
|
+
#### 工作空间扫描(v0.34.1 核心特性)
|
|
14
|
+
- **scripts/lib/conventions-generator.mjs**:新增工作空间模式
|
|
15
|
+
- `scanSubProjects(root)`:扫描工作空间中的所有子项目
|
|
16
|
+
- `aggregateTechStacks(subProjects)`:汇总所有子项目的技术栈
|
|
17
|
+
- `selectTemplatesForWorkspace(aggregatedTechStack)`:为工作空间选择 conventions 模板
|
|
18
|
+
- `run()` 函数支持自动检测工作空间模式(子项目 > 1 时进入)
|
|
19
|
+
- 输出模式标识:`mode: 'workspace'` 或 `mode: 'single'`
|
|
20
|
+
|
|
21
|
+
#### 使用场景
|
|
22
|
+
- **前后端分离项目**:Java 后端 + Vue 前端 → 生成 Java + JavaScript conventions
|
|
23
|
+
- **多语言项目**:Java 后端 + Python 脚本 + JavaScript 前端 → 生成三种语言 conventions
|
|
24
|
+
- **单项目兼容**:原有单项目逻辑完全保留
|
|
25
|
+
|
|
26
|
+
### Tests
|
|
27
|
+
- **tests/lib/conventions-generator.test.mjs**:新增 12 个测试(scanSubProjects: 4 / aggregateTechStacks: 3 / selectTemplatesForWorkspace: 5)
|
|
28
|
+
- 全量回归:583/583 通过(含 27 个 conventions-generator 测试)
|
|
29
|
+
- check-versions ✅
|
|
30
|
+
|
|
31
|
+
## [0.34.0] - 2026-08-04
|
|
32
|
+
|
|
33
|
+
### Added(测试能力增强——吸收 glaf4-test 通用能力 + conventions 机制,设计见工作区级文档 team-flow-workspace/docs/plan/test-capability-enhancement-design.md)
|
|
34
|
+
|
|
35
|
+
#### P0:组合覆盖声明(test-strategy SKILL.md)
|
|
36
|
+
- **§8 组合覆盖声明**:多参数方法(param_count > 1)必须声明 `pairwise`,有分支逻辑必须声明 `branch`;contract-builder 生成矩阵后强制对账
|
|
37
|
+
|
|
38
|
+
#### P1:测试质量规则 + failure 分类法
|
|
39
|
+
- **skills/test-strategy/references/test-quality-rules.md**:从 glaf4-test scan-generated-tests.py 抽取 16 条通用规则(断言质量、调试代码残留、测试状态、测试数据、测试结构、矩阵对账、语言特定)
|
|
40
|
+
- **scripts/lib/test-record.mjs**:新增 `classifyFailure` 函数,测试失败时自动分类为 6 类(assertion_failure / runtime_error / framework_error / compile_error / dependency_blocker / unknown),记录到 test_result
|
|
41
|
+
|
|
42
|
+
#### P2:社交测试契约 + 测试隔离分级
|
|
43
|
+
- **skills/test-strategy/references/integration-test-contracts.md**:5 种契约类型(入口/协作者/数据/中间件/清理),集成测试的组织方法论
|
|
44
|
+
- **skills/test-strategy/references/integration-test-isolation.md**:4 级隔离策略(L1 进程内 / L2 事务 / L3 手动清理 / L4 无隔离),基础设施隔离策略
|
|
45
|
+
|
|
46
|
+
#### P2:conventions 机制建设(v0.34.0 核心特性)
|
|
47
|
+
- **templates/conventions/**:plugin 内置 conventions 模板
|
|
48
|
+
- `glaf4-compliant/java-testing.md`:Java 测试规范(JUnit 5 + Mockito),符合 glaf4-test 要求
|
|
49
|
+
- `glaf4-compliant/spring-patterns.md`:Spring Boot 测试规范,符合 glaf4-test 要求
|
|
50
|
+
- `js-testing.md`:JavaScript 测试规范(Jest/Vitest)
|
|
51
|
+
- `python-testing.md`:Python 测试规范(Pytest)
|
|
52
|
+
- `_manifest.json`:模板清单(版本、描述、适用技术栈)
|
|
53
|
+
- **scripts/lib/conventions-generator.mjs**:conventions 生成器脚本
|
|
54
|
+
- 技术栈自动检测(Java/JavaScript/Python)
|
|
55
|
+
- conventions 模板选择和生成
|
|
56
|
+
- 版本管理机制(.versions.json)
|
|
57
|
+
- team-flow.config.json 自动更新
|
|
58
|
+
- 支持存量项目(自动识别)和全新项目(交互式引导)
|
|
59
|
+
- **skills/workflow-bootstrap/SKILL.md**:增加 B1.5 阶段(Conventions Generator)
|
|
60
|
+
|
|
61
|
+
### Tests
|
|
62
|
+
- **tests/lib/conventions-generator.test.mjs**:15 个测试(detectTechStack/selectTemplates/generateConventions/updateConfig)
|
|
63
|
+
- 全量回归:571/571 通过(含 15 个新增测试)
|
|
64
|
+
- check-versions ✅
|
|
65
|
+
|
|
9
66
|
## [0.33.0] - 2026-08-03
|
|
10
67
|
|
|
11
68
|
### Fixed(skills 注入恢复——frontmatter YAML 非法导致预加载静默失效,设计见工作区级文档 team-flow-workspace/docs/architecture-api-db-design-enhancement-v0.13.md §54)
|
package/CONTRIBUTING.md
CHANGED
|
@@ -86,6 +86,50 @@ Skill text should help an agent decide:
|
|
|
86
86
|
|
|
87
87
|
Avoid vague motivational language when an operational rule would be clearer.
|
|
88
88
|
|
|
89
|
+
### 6. Agent file design spec (v0.33.0+)
|
|
90
|
+
|
|
91
|
+
Background: before v0.33.0, every agent's YAML frontmatter was invalid (an
|
|
92
|
+
`<example>` block at column 0 inside the `description` field). Claude Code
|
|
93
|
+
degrades SILENTLY on invalid frontmatter — `skills:` preload and `tools:`
|
|
94
|
+
restrictions are dropped with no warning, and the agent body alone is kept.
|
|
95
|
+
The defect survived the entire plugin lifetime. `tests/lib/frontmatter-lint.test.mjs`
|
|
96
|
+
(npm test) is the machine gate; this spec is the human gate.
|
|
97
|
+
|
|
98
|
+
Copy `templates/agent-template.md` when creating a new agent. Hard rules:
|
|
99
|
+
|
|
100
|
+
1. **`description` is a single-line string.** No `>-` block scalars, no
|
|
101
|
+
`<example>` blocks — the official Anthropic plugin-dev agents use that
|
|
102
|
+
pattern and it is a trap (it breaks YAML indentation and silently disables
|
|
103
|
+
the whole frontmatter). If the text must contain an ASCII `: `, wrap the
|
|
104
|
+
entire value in double quotes. team-flow agents are dispatched explicitly
|
|
105
|
+
by `workflow-start`, so example-driven auto-triggering buys nothing.
|
|
106
|
+
2. **`name` must equal the file name** (minus `.md`). On degraded parsing the
|
|
107
|
+
registry falls back to the file name — a mismatch means silent mislabeling.
|
|
108
|
+
3. **Declare `tools` explicitly.** Since v0.33.0 the restriction is enforced;
|
|
109
|
+
the subagent holds ONLY the declared tools (no MCP tools unless listed).
|
|
110
|
+
4. **`skills` entries must resolve.** Each entry must match an existing
|
|
111
|
+
`skills/<name>/SKILL.md` (bare name, same as glaf4-test's proven pattern).
|
|
112
|
+
A dangling entry means a silent no-preload.
|
|
113
|
+
5. **Body ≤ 100 lines, WHO/WHAT only.** No SOP/methodology in the body — that
|
|
114
|
+
belongs to the preloaded Skill. If the body says "Your preloaded Skill
|
|
115
|
+
contains the detailed methodology", the `skills:` field MUST declare it.
|
|
116
|
+
|
|
117
|
+
Anti-patterns (forbidden):
|
|
118
|
+
|
|
119
|
+
- `<example>` blocks anywhere in frontmatter
|
|
120
|
+
- Unquoted ASCII `: ` inside `description` values
|
|
121
|
+
- Copying frontmatter style from other plugins without running the lint
|
|
122
|
+
|
|
123
|
+
Verification (mandatory for new/changed agents):
|
|
124
|
+
|
|
125
|
+
1. `npm test` — the frontmatter-lint gate must pass.
|
|
126
|
+
2. **Empirical probe** — dispatch the agent once and verify with a BEHAVIORAL
|
|
127
|
+
probe (ask it to recite a rule that exists only in the preloaded Skill or
|
|
128
|
+
the agent body). Do NOT rely on exact-string introspection questions — they
|
|
129
|
+
produce false negatives. Do not write "mechanism works" claims into any doc
|
|
130
|
+
without this probe. See design doc §54.6 (workspace-level
|
|
131
|
+
`docs/architecture-api-db-design-enhancement-v0.13.md`).
|
|
132
|
+
|
|
89
133
|
## Pull Request Guidance
|
|
90
134
|
|
|
91
135
|
When opening a change, explain:
|
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.34.1 | 阶段: {{state}} | 工作流: {{workflow}}
|
|
12
12
|
当前阶段允许的操作由 workflow-start 路由规则定义。
|
|
13
13
|
禁止跨越 DP gate 进入下一阶段。变更范围以 execution-contract.md 的 Intent Lock 为准。
|
|
14
14
|
<!-- team-flow-phase-guard-end -->
|
package/INSTALL.md
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# team-flow
|
|
2
2
|
|
|
3
|
-
> 当前版本:`v0.
|
|
3
|
+
> 当前版本:`v0.34.1`
|
|
4
4
|
|
|
5
5
|
> 统一插件:**team-flow**(spec 驱动开发)+ **compound-engineering 核心子集**(全局复利)+ **architecture-design**(4A+DDD 增量设计)+ **prototype**(本地 HTML 原型)+ **e2e**(AC 驱动 E2E)+ **workflow-orchestrator**(产品级编排)+ **workflow-bootstrap**(既有项目接入)。一次安装,七套能力协同。
|
|
6
6
|
|
package/docs/README_en.md
CHANGED
|
@@ -126,7 +126,7 @@ npm install -g team-flow
|
|
|
126
126
|
|
|
127
127
|
### Version
|
|
128
128
|
|
|
129
|
-
- Current: `v0.
|
|
129
|
+
- Current: `v0.34.1`
|
|
130
130
|
- v0.9.1 highlights: DP-4 execution-mode recommendations, a portable runtime across 17 platforms, and a raw-package smoke with no plugin-root variable.
|
|
131
131
|
- Self-contained — no OpenSpec or Superpowers runtime required
|
|
132
132
|
- Upstream: [Fission-AI/OpenSpec](https://github.com/Fission-AI/OpenSpec), [obra/superpowers](https://github.com/obra/superpowers)
|
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-04 | cross-phase | general | insight | medium | (no summary) | cross-phase/2026-08-04-no-summary.md |
|
|
5
6
|
| 2026-08-03 | cross-phase | general | insight | medium | (no summary) | cross-phase/2026-08-03-no-summary.md |
|
|
6
7
|
| 2026-08-01 | cross-phase | general | insight | medium | (no summary) | cross-phase/2026-08-01-no-summary.md |
|
|
7
8
|
| 2026-07-31 | cross-phase | general | insight | medium | (no summary) | cross-phase/2026-07-31-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.34.1",
|
|
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.34.1: 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.34.1"
|
|
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.34.1.
|
|
7
7
|
|
|
8
8
|
## Key Documents
|
|
9
9
|
- README.md: Chinese homepage with full usage guide and FAQ
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xulthekl/team-flow",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.34.1",
|
|
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.34.1",
|
|
4
4
|
"description": "Unified workflow plugin: team-flow (spec-driven dev: TDD/SDD/code-review/debugging) + compound-engineering core subset (brainstorm/plan/compound/strategy/ideate/proof, global compounding) + architecture-design (4A+DDD incremental design & global compounding) + prototype (local HTML prototype, zero external deps) + e2e (Playwright E2E, AC-driven) + workflow-orchestrator (product-level workflow orchestration) + workflow-bootstrap (existing project onboarding) + session-handoff (context transfer) + workflow-feedback (issue tracking). 24 skills + 15 agents, one install.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "LT"
|