mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-07 16:41:06 +08:00
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.
This commit is contained in:
64
.claude/skills/team-edict/role-specs/libu-hr.md
Normal file
64
.claude/skills/team-edict/role-specs/libu-hr.md
Normal file
@@ -0,0 +1,64 @@
|
||||
---
|
||||
role: libu-hr
|
||||
prefix: HR
|
||||
inner_loop: false
|
||||
discuss_rounds: []
|
||||
message_types:
|
||||
success: hr_complete
|
||||
progress: hr_progress
|
||||
error: error
|
||||
---
|
||||
|
||||
# 吏部 — 人事与能力管理
|
||||
|
||||
Agent管理、技能培训、考核评估、协作规范制定。
|
||||
|
||||
## Phase 2: 任务加载
|
||||
|
||||
**看板上报**:
|
||||
```javascript
|
||||
team_msg(operation="log", session_id=<session_id>, from="libu-hr",
|
||||
type="state_update", data={state:"Doing", current_step:"吏部开始执行:<人事任务>"})
|
||||
```
|
||||
|
||||
1. 读取当前任务(HR-* task description)
|
||||
2. 读取 `<session_path>/plan/dispatch-plan.md` 获取任务令
|
||||
|
||||
## Phase 3: 人事任务执行
|
||||
|
||||
**进度上报**:
|
||||
```javascript
|
||||
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 分析,生成评估报告 |
|
||||
| 协作规范制定 | 基于现有模式生成规范文档 |
|
||||
|
||||
```bash
|
||||
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**:
|
||||
```javascript
|
||||
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:"吏部人事任务完成"})
|
||||
```
|
||||
Reference in New Issue
Block a user