Architecture overview
三省六部 · Claude Code ‘Agent Teams’ · A multi-agent collaboration governance framework built entirely with .md files Designed exclusively for Claude Code Agent Teams
npx -y skills add cheukswiss/etdxm --skill architecture-overviewAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
三省六部架构全景图与六部角色定义(roles-liubu.md)。适用:新 Teammate 入职、理解全局架构时
SKILL.md
5.7 KB, as published. Nobody here has run it
Skill: 系统架构图
适用 Agent:任何 Agent 加载时机:需要理解全局架构、新 Agent 入职时
┌─────────────────────────────────────┐
│ 👑 皇上(你) │
│ Feishu · Telegram · Signal │
└──────────────────┬──────────────────┘
│ 下旨
┌──────────────────▼──────────────────┐
│ 👑 太子 (taizi) │
│ 分拣:闲聊直答 / 不确定反问 / 旨意传中书 │
└──────────────────┬──────────────────┘
│ 传旨
┌──────────────────▼──────────────────┐
│ 📜 中书省 (zhongshu) │
│ 接旨 → 规划 → 拆解子任务 │
└──────────────────┬──────────────────┘
│ 提交审核
┌──────────────────▼──────────────────┐
│ 🔍 门下省 (menxia) │
│ 审议方案 → 准奏 / 封驳 🚫 │
└──────────────────┬──────────────────┘
│ 准奏 ✅
┌──────────────────▼──────────────────┐
│ 📮 尚书省 (shangshu) │
│ 派发任务 → 协调六部 → 汇总回奏 │
└──┬─────┬─────┬──────┬─────┬─────┬──┘
│ │ │ │ │ │
┌─────▼─┐ ┌─▼───┐ ┌─▼────┐ ┌──▼──┐ ┌─▼───┐ ┌─▼────┐
│📋 吏部 │ │💰 户部│ │📝 礼部│ │⚔️ 兵部│ │⚖️ 刑部│ │🔧 工部│
│ 人事 │ │ 数据 │ │ 文档 │ │ 运维 │ │ 合规 │ │ 开发 │
└───────┘ └─────┘ └─────┘ └─────┘ └─────┘ └─────┘
角色总览
| 层级 | 部门 | agent_id | 角色类型 | Team 角色 | 一句话职责 |
|---|---|---|---|---|---|
| 内廷 | 👑 太子 | taizi | Gateway | Lead | 消息分拣,闲聊直答,旨意传中书,回奏中转 |
| 三省 | 📜 中书省 | zhongshu | Planner | Teammate | 接旨→拆解→出草案 |
| 🔍 门下省 | menxia | Reviewer | Teammate | 审议草案→准奏 / 封驳 | |
| 📮 尚书省 | shangshu | Coordinator | Teammate | 派发六部→协调→汇总回奏 | |
| 六部 | 📋 吏部 | libu_hr | Teammate | Teammate | Teammate 管理、权限、考核 |
| 💰 户部 | hubu | Teammate | Teammate | 数据处理、资源核算、报表 | |
| 📝 礼部 | libu | Teammate | Teammate | 文档、规范、API 文档 | |
| ⚔️ 兵部 | bingbu | Teammate | Teammate | 部署、运维、CI/CD、安全防御 | |
| ⚖️ 刑部 | xingbu | Teammate | Teammate | 测试、合规审计、安全扫描 | |
| 🔧 工部 | gongbu | Teammate | Teammate | 编码开发、架构设计、工具链 |
主流程概要
皇上下旨 → 太子分拣 ──→ 中书草诏 → 门下审议 ──→ 尚书派发 → 六部执行
│ ↑ │ │
├ 闲聊→直答 │ 封驳 │ │
├ 不确定→反问 └─────────┘ │
└ fast_track→简案→门下简审→尚书直派 ──────→│
│
回奏皇上 ← 门下覆奏 ← 尚书汇总 ← 刑部审查 ←───────┘
(fast_track 免覆奏)
Agent Teams 映射:太子为 Team Lead,其余 9 个 Agent 为 Teammate。所有通信通过 SendMessage 实现,任务通过 Task API 管理。通信路径受 governance-core 通信权限矩阵约束。
角色详细定义
本 Skill 目录下包含各角色的详细身份定义,按需读取:
| 文件 | 内容 | 使用者 | 操作 |
|---|---|---|---|
roles-liubu.md | 六部(吏/户/礼/兵/刑/工)详细身份定义 | 尚书省 | 创建六部 Teammate 前,Read 此文件,提取目标部门段落(按 ## 标题定位),注入创建 prompt |
太子与三省的详细身份定义见 governance-core Skill。