@xulthekl/team-flow
v0.67.0
Published
Unified plugin (28 skills + 17 agents) integrating team-flow, compound-engineering, architecture-design, prototype, design-system, workflow-orchestrator, workflow-bootstrap, e2e, session-handoff, workflow-feedback, business-analysis for multi-agent coding
Maintainers
Readme
team-flow
当前版本:
v0.67.0
统一插件:team-flow(spec 驱动开发)+ compound-engineering 核心子集(全局复利)+ architecture-design(4A+DDD 增量设计)+ prototype(本地 HTML 原型)+ e2e(AC 驱动 E2E)+ workflow-orchestrator(产品级编排)+ workflow-bootstrap(既有项目接入)。一次安装,十三套能力协同(详见下文「十三套能力」)。
30 秒上手
告诉它你的想法,它会帮你理清楚要做什么、怎么做、先做哪个。
# 在 Claude Code 中输入:
/workflow-orchestrator
# 然后说你的想法,例如:"我想做一个任务管理功能"
# 跟着走就行——它会自动安排需求澄清、原型验证、计划拆分你只需要知道 3 个概念:
- PRD:你的需求文档(它帮你写)
- change:拆分后的实施单元(它帮你拆)
- workflow-start:开始实施一个 change(它帮你启动)
更多能力(原型验证、复利经验库、动态重规划等)在使用中自然接触,无需提前学习。
安装(plugin.json 一次安装)
支持 9 安装面:Claude Code、Cursor、OpenAI Codex CLI/App、GitHub Copilot CLI、Gemini CLI、OpenCode、WorkBuddy、Trae、ima-copilot。
# 本地路径安装(子命令依宿主 CLI 而定)
<cli> plugin install /path/to/team-flow
# 或从仓库
git clone <your-repo> && <cli> plugin install ./team-flow不同宿主 CLI 的安装子命令略有差异(如 Claude Code 为
/plugin add,Cursor 为plugin install)。以宿主文档为准;本插件提供单一plugin.json,一次安装即加载全部 28 个 skills。
配置(插件层扩展字段)
项目根 team-flow.config.json 可注入(插件层扩展字段,非 team-flow 原生 schema;原生仅 artifacts.order / artifacts.skip):
{
"prd.template": ".team-flow/prd.template.md",
"prototype.designSystem": "prototype/design-system.md",
"prototype.entry": "prototype/index.html"
}读取方式:tf runtime config --get <key>(插件层自读,字段命名避开原生 key 冲突)。
初始化原型(首次)
cp -r <plugin>/skills/prototype/references/prototype-scaffold/ <project>/prototype/随后按 prototype/design-system.md 填 token;prototype/ 与 requirement/ 同级、git 分支隔离版本。
全局产物结构
requirement/ PRD + 台账 + 实施方案 + 原型审查记录(v1→v2,分支隔离)
prototype/ 全局原型(UI 契约真相源)
docs/
├── architecture/ 全局架构三层(v0.36.0):ARCHITECTURE.md / PHYSICAL-MODEL.md / DATABASE.md / API-INDEX.md / INDEX.md / domains/<bc>.md / iterations/vN/(产品级快照)/ baseline.md
└── solutions/ 复利经验库(三层索引:INDEX.md → 分阶段目录 → 经验文件)
specs/<cap>/ 每变更规格:spec.md(learnings.md 归 change 根目录)
STRATEGY.md CONCEPTS.md 策略 / 领域词汇十三套能力(28 skills)
- team-flow(11):workflow-start / need-explorer / spec-writer / contract-builder / build-executor / code-reviewer / spec-merger / release-archivist / bug-investigator / test-strategy / clean-code
- compound 核心子集(6):ce-brainstorm / ce-plan / ce-compound / ce-strategy / ce-ideate / ce-proof
- architecture-design(1):architecture-design
- prototype(1):prototype
- e2e(1):e2e(AC 驱动 Playwright E2E 测试)
- 产品级编排(1):workflow-orchestrator(brainstorm→原型内循环→plan→拆change→分发)
- 既有项目接入(1):workflow-bootstrap(代码库侦察→架构基线→领域词汇→目录初始化)
- 会话交接(1):session-handoff(上下文腐化时压缩会话为交接文档,v0.16.0)
- 工作流反馈(1):workflow-feedback(工作流问题结构化记录,与 ce-compound 互补,v0.16.0)
- 设计系统(1):design-system(独立创建/迭代项目级设计系统,用户主导交互,v0.19.0)
- 业务分析(1):business-analysis(将任意输入整理为 requirement/vN/business-analysis.md,多轮单问澄清,独立外挂,v0.44.0)
- 项目初始化(1):project-initialize(工作空间代码服务为空时的初始化引导:架构选择 → 服务命名 → 创建子目录 → 委托骨架,v0.45.0)
- Jarvis(1):jarvis(team-flow 专用决策代理:在授权范围内代做决策点裁决——夜间/离席值守为核心场景,在场时亦可分流、只把 HOLD 项交回;经 Orca 派 worker,依赖个人偏好库与 Jarvis home,可选启用,v0.59.0 新增 / v0.60.0 改名)
配套 agents(17 个,v0.47.0 增至 17)
全部由编排层 dispatch(主代理只编排,need-explorer 为主进程交互式澄清):architecture-design(架构设计门控)/ architecture-reviewer(架构自动审查)/ bug-investigator(bug 根因调查)/ change-split-auditor(拆分质量审计)/ code-reviewer(代码审查)/ cross-change-consistency-checker(跨 change 一致性)/ prd-completeness-reviewer(PRD 完整性评审,含 §8.4 信息齐备性与业务可读形态 D6)/ prd-writer(PRD 业务可读撰写)/ prototype-builder(原型绘制)/ prototype-env-scout(原型环境探查)/ prototype-reviewer(原型评审)/ need-explorer(需求探索)/ spec-writer(规格编写)/ contract-builder(执行契约构建)/ build-executor(TDD 构建执行)/ release-archivist(发布归档)/ business-analysis(独立业务分析)。
命名约定
Skills 命名保留其来源前缀,作为功能分组的自然标识:
| 前缀 | 来源 | 含义 | Skills |
|------|------|------|--------|
| ce- | compound-engineering | 产品级思维工具(头脑风暴、计划、策略、复利、创意、验证) | ce-brainstorm, ce-plan, ce-strategy, ce-compound, ce-ideate, ce-proof |
| 无前缀 | team-flow | 变更级开发流程工具(状态机、规格、构建、审查、归档、内部方法论) | workflow-start, need-explorer, spec-writer, contract-builder, build-executor, code-reviewer, spec-merger, release-archivist, bug-investigator, test-strategy, clean-code |
| 无前缀 | team-flow 新增 | 编排/接入/设计/原型/测试/交接/反馈/初始化/分析/决策代理 | workflow-orchestrator, workflow-bootstrap, architecture-design, prototype, e2e, session-handoff, workflow-feedback, design-system, project-initialize, business-analysis, jarvis |
ce-前缀来自 compound-engineering 项目,team-flow 整合时保留了这一命名以维持功能分组的可辨识性。这不是命名不一致,而是有意的来源标注。
工作流(SOP,v0.7 修订)
模糊需求
→ [既有项目接入层 workflow-bootstrap](一次性,baseline.md 已存在则跳过)
→ [产品级编排层 workflow-orchestrator](v0.7 重设计)
→ S1 路径路由器 → 判断入口路径(全新/续版/重新计划/继续执行/快速通道/Hotfix)
→ S2 PRD + 原型阶段 → ce-brainstorm + 原型循环上提(prototype → 自动评审 → 人工评审 → 冻结)
→ S3 计划阶段 → ce-plan(pipeline 快速路径)→ plan.md(change 拆分+依赖+技术方向)
→ [ARCH 产品级架构设计(v0.36.0 新增)] → 8 步设计 → iterations/vN/architecture.md 快照 → 评审门
→ S4 拆分验证与分发 → arch-readiness 门 → change-split-auditor 审计(必选门禁)→ 创建 change → 进入 team-flow
→ S5 全局监控(change≥2 必选)→ 跨 change 一致性 + 复利晋升 + 动态重规划
→ [复利贯穿层] 每个阶段转换点:检测→捕获→索引→注入
→ change 完成:arch-merge → state transition closing → prototype-sync → test-merge(顺序提交)+ 复利晋升详见 AGENTS.md。
受 guard 保护的执行计划(execution plan)
full/hotfix 在 DP-4 必须保存 current execution plan 到
<change>/.superpowers/sdd/execution-plan.json;它不属于 execution-contract.md。
先运行 tf execution recommend(执行模式推荐):它按任务量和 wave 策略列出 inline、
batch-inline、sdd 并给出推荐,并保存当前 wave 的推荐凭据到
<change>/.superpowers/sdd/execution-recommendation.json。Agent 展示候选项和理由后,
plan 与 revise 必须消费匹配当前 artifact、contract 和 wave 的凭据;用户用 --confirm
确认;若选择非推荐方式,必须用 --acknowledge-recommendation 记录确认风险。Batch
Inline 始终串行,不会表示并行。tweak 免除 execution plan 与 review receipt gate。
tf execution recommend changes/my-change \
--wave foundation:parallel:1.1,1.2 \
--wave integration:serial:2.1:foundation --json
tf execution plan changes/my-change --mode sdd --confirm --reason "independent work" \
--wave foundation:parallel:1.1,1.2 \
--wave integration:serial:2.1:foundation
tf execution show changes/my-change --json
# inline/batch-inline 可升级为 sdd,或重规划已有 sdd 的 wave/依赖;不能降级。
tf execution recommend changes/my-change \
--wave foundation:parallel:1.1,1.2 \
--wave integration:serial:2.1:foundation --json
tf execution revise changes/my-change --mode sdd --confirm --reason "need parallel work" \
--wave foundation:parallel:1.1,1.2 \
--wave integration:serial:2.1:foundation
tf execution review changes/my-change --wave foundation --base <sha> --head <sha> \
--report .superpowers/sdd/reviews/foundation.md --verdict pass--report 相对于 <change> 解析,且必须位于
<change>/.superpowers/sdd/reviews/ 之下。--base 和 --head 必须是该
<change> Git 工作树中的真实 commit,且 base 必须是 head 的祖先。
<change>/.superpowers/sdd/reviews/ 的目录层级必须是物理、非符号链接目录;
report 本身必须为普通、非空、非符号链接文件。
每一个 wave 均须有当前 pass review receipt,才可启动依赖 wave 或进入 closing;
receipt 绑定该 wave 的定义(v0.49.0 起):wave 定义未变时,修订计划或刷新 hash 不会废止它。#47 所提出的恢复、切换与手动保存 slash command 尚未实现,
不能假定有 /tf:* 命令。
OpenAI Codex CLI 安装与升级
codex plugin marketplace add hashgraph-online/awesome-codex-plugins
codex plugin add team-flow@awesome-codex-plugins直接安装指定 release tag(绕过社区镜像延迟):
codex plugin marketplace add MageByte-Zero/team-flow --ref v0.9.0
codex plugin add team-flow@team-flow升级:
codex plugin marketplace upgrade awesome-codex-plugins
codex plugin add team-flow@awesome-codex-plugins
codex plugin list | rg team-flowv0.9.0 亮点
- Node 20 最低运行时要求
- model profiles(
tf config --resolve-model):mechanical / standard / strong / review 四档模型配置,只读解析,不切换当前会话模型 - 最小性原则:零运行时依赖、自包含插件、按需加载
