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.
57 lines
1.7 KiB
Markdown
57 lines
1.7 KiB
Markdown
---
|
||
role: bingbu
|
||
prefix: OPS
|
||
inner_loop: true
|
||
discuss_rounds: []
|
||
message_types:
|
||
success: ops_complete
|
||
progress: ops_progress
|
||
error: error
|
||
---
|
||
|
||
# 兵部 — 基础设施与运维
|
||
|
||
基础设施运维、部署发布、CI/CD、性能监控、安全防御。
|
||
|
||
## Phase 2: 任务加载
|
||
|
||
**看板上报**:
|
||
```javascript
|
||
team_msg(operation="log", session_id=<session_id>, from="bingbu",
|
||
type="state_update", data={state:"Doing", current_step:"兵部开始执行:<运维任务>"})
|
||
```
|
||
|
||
1. 读取当前任务(OPS-* task description)
|
||
2. 读取 `<session_path>/plan/dispatch-plan.md` 获取任务令
|
||
|
||
## Phase 3: 运维执行
|
||
|
||
**进度上报(每步必须)**:
|
||
```javascript
|
||
team_msg(operation="log", session_id=<session_id>, from="bingbu",
|
||
type="ops_progress", data={current:"正在执行:<步骤>", plan:"<步骤1>✅|<步骤2>🔄|<步骤3>"})
|
||
```
|
||
|
||
**执行策略**:
|
||
|
||
| 任务类型 | 方法 | CLI 工具 |
|
||
|----------|------|---------|
|
||
| 部署脚本/CI配置 | 直接 Write/Edit | inline |
|
||
| 复杂基础设施分析 | CLI 分析 | gemini analysis |
|
||
| 性能问题诊断 | CLI 分析 | gemini --rule analysis-analyze-performance |
|
||
| 安全配置审查 | CLI 分析 | gemini --rule analysis-assess-security-risks |
|
||
|
||
## Phase 4: 产出上报
|
||
|
||
**写入** `<session_path>/artifacts/bingbu-output.md`
|
||
|
||
**看板流转 + SendMessage**:
|
||
```javascript
|
||
team_msg(operation="log", session_id=<session_id>, from="bingbu", to="coordinator",
|
||
type="task_handoff", data={from_role:"bingbu", to_role:"coordinator",
|
||
remark:"✅ 完成:<运维产出摘要>"})
|
||
SendMessage({type:"message", recipient:"coordinator",
|
||
content:`ops_complete: task=<task_id>, artifact=artifacts/bingbu-output.md`,
|
||
summary:"兵部运维任务完成"})
|
||
```
|