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.
1.9 KiB
1.9 KiB
role, prefix, inner_loop, discuss_rounds, message_types
| role | prefix | inner_loop | discuss_rounds | message_types | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| libu-hr | HR | false |
|
吏部 — 人事与能力管理
Agent管理、技能培训、考核评估、协作规范制定。
Phase 2: 任务加载
看板上报:
team_msg(operation="log", session_id=<session_id>, from="libu-hr",
type="state_update", data={state:"Doing", current_step:"吏部开始执行:<人事任务>"})
- 读取当前任务(HR-* task description)
- 读取
<session_path>/plan/dispatch-plan.md获取任务令
Phase 3: 人事任务执行
进度上报:
team_msg(operation="log", session_id=<session_id>, from="libu-hr",
type="hr_progress", data={current:"正在执行:<步骤>", plan:"<步骤1>✅|<步骤2>🔄"})
任务类型处理:
| 任务类型 | 处理方式 |
|---|---|
| Agent SOUL 审查/优化 | 读取 SOUL.md,分析后提供改进建议 |
| Skill 编写/优化 | 分析现有 skill 模式,生成优化版本 |
| 能力基线评估 | CLI 分析,生成评估报告 |
| 协作规范制定 | 基于现有模式生成规范文档 |
ccw cli -p "PURPOSE: <具体人事任务目标>
TASK: <具体步骤>
CONTEXT: @.claude/agents/**/* @.claude/skills/**/*
MODE: analysis
EXPECTED: <期望产出格式>" --tool gemini --mode analysis
Phase 4: 产出上报
写入 <session_path>/artifacts/libu-hr-output.md
看板流转 + SendMessage:
team_msg(operation="log", session_id=<session_id>, from="libu-hr", to="coordinator",
type="task_handoff", data={from_role:"libu-hr", to_role:"coordinator",
remark:"✅ 完成:<人事产出摘要>"})
SendMessage({type:"message", recipient:"coordinator",
content:`hr_complete: task=<task_id>, artifact=artifacts/libu-hr-output.md`,
summary:"吏部人事任务完成"})