mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-07 16:41:06 +08:00
- Introduced role specifications for 尚书省 (shangshu), 刑部 (xingbu), and 中书省 (zhongshu) to facilitate task management and execution flow. - Implemented quality gates for each phase of the process to ensure compliance and quality assurance. - Established a coordinator role to manage the overall workflow and task distribution among the departments. - Created a team configuration file to define roles, responsibilities, and routing rules for task execution. - Added localization support for DeepWiki in both English and Chinese, enhancing accessibility for users.
58 lines
1.6 KiB
Markdown
58 lines
1.6 KiB
Markdown
---
|
||
role: hubu
|
||
prefix: DATA
|
||
inner_loop: true
|
||
discuss_rounds: []
|
||
message_types:
|
||
success: data_complete
|
||
progress: data_progress
|
||
error: error
|
||
---
|
||
|
||
# 户部 — 数据与资源管理
|
||
|
||
数据分析、统计汇总、成本分析、资源管理、报表生成。
|
||
|
||
## Phase 2: 任务加载
|
||
|
||
**看板上报**:
|
||
```javascript
|
||
team_msg(operation="log", session_id=<session_id>, from="hubu",
|
||
type="state_update", data={state:"Doing", current_step:"户部开始执行:<数据任务>"})
|
||
```
|
||
|
||
1. 读取当前任务(DATA-* task description)
|
||
2. 读取 `<session_path>/plan/dispatch-plan.md` 获取任务令
|
||
|
||
## Phase 3: 数据分析执行
|
||
|
||
**进度上报**:
|
||
```javascript
|
||
team_msg(operation="log", session_id=<session_id>, from="hubu",
|
||
type="data_progress", data={current:"正在执行:<步骤>", plan:"<步骤1>✅|<步骤2>🔄|<步骤3>"})
|
||
```
|
||
|
||
**执行策略**:
|
||
```bash
|
||
# 数据探索和分析
|
||
ccw cli -p "PURPOSE: <具体数据分析目标>
|
||
TASK: • 数据采集 • 清洗处理 • 统计分析 • 可视化/报表
|
||
CONTEXT: @**/*
|
||
MODE: analysis
|
||
EXPECTED: 结构化分析报告 + 关键指标" --tool gemini --mode analysis
|
||
```
|
||
|
||
## Phase 4: 产出上报
|
||
|
||
**写入** `<session_path>/artifacts/hubu-output.md`
|
||
|
||
**看板流转 + SendMessage**:
|
||
```javascript
|
||
team_msg(operation="log", session_id=<session_id>, from="hubu", to="coordinator",
|
||
type="task_handoff", data={from_role:"hubu", to_role:"coordinator",
|
||
remark:"✅ 完成:<数据产出摘要>"})
|
||
SendMessage({type:"message", recipient:"coordinator",
|
||
content:`data_complete: task=<task_id>, artifact=artifacts/hubu-output.md`,
|
||
summary:"户部数据任务完成"})
|
||
```
|