feat: add dynamic pipeline detection for team sessions v5 architecture

Backend:
- Fix readLegacyFiles to handle { name, prefix }[] role format
- Add roles backfill in getEffectiveTeamMeta when meta.json exists
- Ensure pipeline_stages and roles flow correctly to API response

Team Skills:
- Add pipeline metadata initialization to all 16 team skill coordinator roles
- Each skill now reports pipeline_stages and roles to meta.json at session init

Documentation:
- Update command references and component documentation
- Add numerical-analysis-workflow skill spec
- Sync zh/en translations for commands and components
This commit is contained in:
catlog22
2026-03-04 14:52:07 +08:00
parent b203ada9c5
commit f389e3e6dd
56 changed files with 2007 additions and 201 deletions

View File

@@ -225,6 +225,6 @@ ccw cli -p "审查代码质量" --tool gemini --mode analysis --rule analysis-re
## 相关文档
- [Skills 参考](../skills/)
- [Skills 参考](../../skills/)
- [CLI 调用系统](../../features/cli.md)
- [工作流指南](../../guide/ch04-workflow-basics.md)

View File

@@ -291,4 +291,4 @@ graph TD
- [工作流命令](./workflow.md)
- [核心编排](./core-orchestration.md)
- [团队系统](../../features/)
- [团队系统](../../features/spec)

View File

@@ -304,4 +304,4 @@ graph TD
- [核心编排](./core-orchestration.md)
- [工作流命令](./workflow.md)
- [头脑风暴](../../features/)
- [头脑风暴](../../features/spec)

View File

@@ -53,4 +53,4 @@ CONSTRAINTS: [关注约束]
- [Claude Commands](../claude/)
- [CLI 调用系统](../../features/cli.md)
- [代码审查](../../features/)
- [代码审查](../../features/spec)

View File

@@ -194,4 +194,4 @@ git log --oneline -10
- [Prep 提示](./prep.md)
- [CLI 工具命令](../claude/cli.md)
- [代码审查](../../features/)
- [代码审查](../../features/spec)

View File

@@ -34,53 +34,53 @@
|------|------|------|
| [Button](/components/ui/button) | 可点击的操作按钮,带变体和尺寸 | `variant`, `size`, `asChild` |
| [Input](/components/ui/input) | 文本输入字段 | `error` |
| [Textarea](/components/ui/textarea) | 多行文本输入 | `error` |
| Textarea | 多行文本输入 | `error` |
| [Select](/components/ui/select) | 下拉选择Radix | Select 组件 |
| [Checkbox](/components/ui/checkbox) | 布尔复选框Radix | `checked`, `onCheckedChange` |
| [Switch](/components/ui/switch) | 切换开关 | `checked`, `onCheckedChange` |
| Switch | 切换开关 | `checked`, `onCheckedChange` |
### 布局组件
| 组件 | 描述 | Props |
|------|------|------|
| [Card](/components/ui/card) | 带标题/脚注的内容容器 | 嵌套组件 |
| [Separator](/components/ui/separator) | 视觉分隔符 | `orientation` |
| [ScrollArea](/components/ui/scroll-area) | 自定义滚动条容器 | - |
| Separator | 视觉分隔符 | `orientation` |
| ScrollArea | 自定义滚动条容器 | - |
### 反馈组件
| 组件 | 描述 | Props |
|------|------|------|
| [Badge](/components/ui/badge) | 状态指示器标签 | `variant` |
| [Progress](/components/ui/progress) | 进度条 | `value` |
| [Alert](/components/ui/alert) | 通知消息 | `variant` |
| [Toast](/components/ui/toast) | 临时通知Radix | Toast 组件 |
| Progress | 进度条 | `value` |
| Alert | 通知消息 | `variant` |
| Toast | 临时通知Radix | Toast 组件 |
### 导航组件
| 组件 | 描述 | Props |
|------|------|------|
| [Tabs](/components/ui/tabs) | 标签页导航Radix | Tabs 组件 |
| [TabsNavigation](/components/ui/tabs-navigation) | 自定义标签栏 | `tabs`, `value`, `onValueChange` |
| [Breadcrumb](/components/ui/breadcrumb) | 导航面包屑 | Breadcrumb 组件 |
| Tabs | 标签页导航Radix | Tabs 组件 |
| TabsNavigation | 自定义标签栏 | `tabs`, `value`, `onValueChange` |
| Breadcrumb | 导航面包屑 | Breadcrumb 组件 |
### 叠加层组件
| 组件 | 描述 | Props |
|------|------|------|
| [Dialog](/components/ui/dialog) | 模态对话框Radix | `open`, `onOpenChange` |
| [Drawer](/components/ui/drawer) | 侧边面板Radix | `open`, `onOpenChange` |
| [Dropdown Menu](/components/ui/dropdown) | 上下文菜单Radix | Dropdown 组件 |
| [Popover](/components/ui/popover) | 浮动内容Radix | `open`, `onOpenChange` |
| [Tooltip](/components/ui/tooltip) | 悬停工具提示Radix | `content` |
| [AlertDialog](/components/ui/alert-dialog) | 确认对话框Radix | Dialog 组件 |
| Dialog | 模态对话框Radix | `open`, `onOpenChange` |
| Drawer | 侧边面板Radix | `open`, `onOpenChange` |
| Dropdown Menu | 上下文菜单Radix | Dropdown 组件 |
| Popover | 浮动内容Radix | `open`, `onOpenChange` |
| Tooltip | 悬停工具提示Radix | `content` |
| AlertDialog | 确认对话框Radix | Dialog 组件 |
### 展开组件
| 组件 | 描述 | Props |
|------|------|------|
| [Collapsible](/components/ui/collapsible) | 展开/折叠内容Radix | `open`, `onOpenChange` |
| [Accordion](/components/ui/accordion) | 可折叠部分Radix | Accordion 组件 |
| Collapsible | 展开/折叠内容Radix | `open`, `onOpenChange` |
| Accordion | 可折叠部分Radix | Accordion 组件 |
---

View File

@@ -116,4 +116,4 @@ Badge 徽章组件用于以紧凑形式显示状态、类别或标签。它通
- [Card 卡片](/zh/components/ui/card)
- [Button 按钮](/zh/components/ui/button)
- [Avatar 头像](/zh/components/ui/avatar)
- Avatar 头像

View File

@@ -77,4 +77,4 @@ sidebar: auto
- [Input 输入框](/zh/components/ui/input)
- [Select 选择器](/zh/components/ui/select)
- [Dialog 对话框](/zh/components/ui/dialog)
- Dialog 对话框

View File

@@ -104,4 +104,4 @@ sidebar: auto
- [Button 按钮](/zh/components/ui/button)
- [Badge 徽章](/zh/components/ui/badge)
- [Separator 分隔线](/zh/components/ui/separator)
- Separator 分隔线

View File

@@ -117,4 +117,4 @@ const state = ref('indeterminate')
- [Input 输入框](/zh/components/ui/input)
- [Select 选择器](/zh/components/ui/select)
- [Radio Group 单选框组](/zh/components/ui/radio-group)
- Radio Group 单选框组

View File

@@ -43,7 +43,7 @@ ccw cli -p "添加用户认证" --mode write
- [安装指南](./installation.md) - 详细安装说明
- [第一个工作流](./first-workflow.md) - 30 分钟快速入门教程
- [配置指南](./configuration.md) - 自定义 CCW 设置
- [配置指南](/guide/cli-tools) - 自定义 CCW 设置
::: tip 需要帮助?
查看我们的 [GitHub Discussions](https://github.com/your-repo/ccw/discussions) 或加入 [Discord 社区](https://discord.gg/ccw)。

View File

@@ -253,7 +253,7 @@ memory/
- [Claude Commands](../commands/claude/)
- [Codex Skills](./codex-index.md)
- [功能文档](../features/)
- [功能文档](../features/spec)
## 统计数据

View File

@@ -73,16 +73,16 @@ Phase 6: Readiness Check -> readiness-report.md + spec-summary.md
**规范文档**(必读):
| 文档 | 用途 | 优先级 |
|------|------|--------|
| [specs/document-standards.md](specs/document-standards.md) | 文档格式、frontmatter、命名约定 | **P0 - 执行前必读** |
| [specs/quality-gates.md](specs/quality-gates.md) | 每阶段质量关卡标准和评分 | **P0 - 执行前必读** |
| [specs/document-standards.md](/skills/specs/document-standards) | 文档格式、frontmatter、命名约定 | **P0 - 执行前必读** |
| [specs/quality-gates.md](/skills/specs/quality-gates) | 每阶段质量关卡标准和评分 | **P0 - 执行前必读** |
**模板文件**(生成前必读):
| 文档 | 用途 |
|------|------|
| [templates/product-brief.md](templates/product-brief.md) | 产品简报文档模板 |
| [templates/requirements-prd.md](templates/requirements-prd.md) | PRD 文档模板 |
| [templates/architecture-doc.md](templates/architecture-doc.md) | 架构文档模板 |
| [templates/epics-template.md](templates/epics-template.md) | Epic/Story 文档模板 |
| [templates/product-brief.md](/skills/templates/product-brief) | 产品简报文档模板 |
| [templates/requirements-prd.md](/skills/templates/requirements-prd) | PRD 文档模板 |
| [templates/architecture-doc.md](/skills/templates/architecture-doc) | 架构文档模板 |
| [templates/epics-template.md](/skills/templates/epics-template) | Epic/Story 文档模板 |
**输出结构**:
```plaintext
@@ -230,16 +230,16 @@ Artifacts N×Role Synthesis 1×Role
**核心规范**(必读):
| 文档 | 用途 | 优先级 |
|------|------|--------|
| [../_shared/SKILL-DESIGN-SPEC.md](../_shared/SKILL-DESIGN-SPEC.md) | 通用设计规范 — 定义所有 Skills 的结构、命名、质量标准 | **P0 - 关键** |
| [specs/reference-docs-spec.md](specs/reference-docs-spec.md) | 参考文档生成规范 — 确保生成的 Skills 有适当的基于阶段的参考文档 | **P0 - 关键** |
| [_shared/SKILL-DESIGN-SPEC.md](/skills/_shared/SKILL-DESIGN-SPEC) | 通用设计规范 — 定义所有 Skills 的结构、命名、质量标准 | **P0 - 关键** |
| [specs/reference-docs-spec.md](/skills/specs/reference-docs-spec) | 参考文档生成规范 — 确保生成的 Skills 有适当的基于阶段的参考文档 | **P0 - 关键** |
**模板文件**(生成前必读):
| 文档 | 用途 |
|------|------|
| [templates/skill-md.md](templates/skill-md.md) | SKILL.md 入口文件模板 |
| [templates/sequential-phase.md](templates/sequential-phase.md) | 顺序阶段模板 |
| [templates/autonomous-orchestrator.md](templates/autonomous-orchestrator.md) | 自治编排器模板 |
| [templates/autonomous-action.md](templates/autonomous-action.md) | 自治动作模板 |
| [templates/skill-md.md](/skills/templates/skill-md) | SKILL.md 入口文件模板 |
| [templates/sequential-phase.md](/skills/templates/sequential-phase) | 顺序阶段模板 |
| [templates/autonomous-orchestrator.md](/skills/templates/autonomous-orchestrator) | 自治编排器模板 |
| [templates/autonomous-action.md](/skills/templates/autonomous-action) | 自治动作模板 |
**执行流程**:
```plaintext

View File

@@ -77,15 +77,15 @@
**规范文档**(必读):
| 文档 | 用途 | 优先级 |
|------|------|--------|
| [specs/review-dimensions.md](specs/review-dimensions.md) | 审查维度定义和检查点 | **P0 - 最高** |
| [specs/issue-classification.md](specs/issue-classification.md) | 问题分类和严重程度标准 | **P0 - 最高** |
| [specs/quality-standards.md](specs/quality-standards.md) | 审查质量标准 | P1 |
| [specs/review-dimensions.md](/skills/specs/review-dimensions) | 审查维度定义和检查点 | **P0 - 最高** |
| [specs/issue-classification.md](/skills/specs/issue-classification) | 问题分类和严重程度标准 | **P0 - 最高** |
| [specs/quality-standards.md](/skills/specs/quality-standards) | 审查质量标准 | P1 |
**模板文件**(生成前必读):
| 文档 | 用途 |
|------|------|
| [templates/review-report.md](templates/review-report.md) | 审查报告模板 |
| [templates/issue-template.md](templates/issue-template.md) | 问题记录模板 |
| [templates/review-report.md](/skills/templates/review-report) | 审查报告模板 |
| [templates/issue-template.md](/skills/templates/issue-template) | 问题记录模板 |
**执行流程**:
```
@@ -234,5 +234,5 @@ const query = 'SELECT * FROM users WHERE username = ?';
await db.query(query, [username]);
```
**Reference**: [specs/review-dimensions.md](specs/review-dimensions.md) - Security section
**Reference**: [specs/review-dimensions.md](/skills/specs/review-dimensions) - Security section
```

View File

@@ -440,7 +440,7 @@ Explore → Document → Log → Analyze → Correct Understanding → Fix → V
## 相关文档
- [Claude Skills](./claude-index.md)
- [功能文档](../features/)
- [功能文档](../features/spec)
## 最佳实践

View File

@@ -171,5 +171,5 @@
- [4级系统](./4-level.md) - 详细工作流说明
- [最佳实践](./best-practices.md) - 工作流优化技巧
- [示例](./examples.md) - 工作流使用示例
- [示例](/workflows/examples) - 工作流使用示例
- [团队](./teams.md) - 团队工作流协调