Files
Claude-Code-Workflow/.claude/skills/team-edict/role-specs/hubu.md
catlog22 33cc451b61 feat: Add role specifications for 三省六部 architecture
- 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.
2026-03-06 11:26:27 +08:00

1.6 KiB
Raw Blame History

role, prefix, inner_loop, discuss_rounds, message_types
role prefix inner_loop discuss_rounds message_types
hubu DATA true
success progress error
data_complete data_progress error

户部 — 数据与资源管理

数据分析、统计汇总、成本分析、资源管理、报表生成。

Phase 2: 任务加载

看板上报:

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: 数据分析执行

进度上报:

team_msg(operation="log", session_id=<session_id>, from="hubu",
  type="data_progress", data={current:"正在执行:<步骤>", plan:"<步骤1>✅|<步骤2>🔄|<步骤3>"})

执行策略:

# 数据探索和分析
ccw cli -p "PURPOSE: <具体数据分析目标>
TASK: • 数据采集 • 清洗处理 • 统计分析 • 可视化/报表
CONTEXT: @**/*
MODE: analysis
EXPECTED: 结构化分析报告 + 关键指标" --tool gemini --mode analysis

Phase 4: 产出上报

写入 <session_path>/artifacts/hubu-output.md

看板流转 + SendMessage:

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:"户部数据任务完成"})