agentleFS
cheukswisscheukswiss/etdxm/.claude/skills/permission-matrix/SKILL.md

permission-matrix

Skill2 starsChanged 6 months agoMITView on GitHub

吏部权限矩阵与权限变更流程,定义各 Agent 权限等级、分配与审计规则

The file

Files
SKILL.md

Skill: 权限矩阵

适用 Agent:吏部(常驻)、尚书省(权限变更时) 加载时机:权限分配、权限变更、权限审计时

权限等级

等级代号说明
只读R仅可读取信息,不可修改
建议S可提方案,不可直接执行
执行X可执行具体操作(编码、部署等)
审批A可批准或否决方案与变更
派发D可向下级分配任务
管理M可修改 Agent 配置、权限、Prompt

权限规则

  1. 最小权限原则:仅授予完成本职所需最低权限
  2. 读写分离:门下省、刑部专注审查,不直接修改产出物
  3. 执行隔离:工部改代码、兵部改基础设施、户部改数据库,互不越界
  4. 审批权独立:门下省审批权不可被中书省或尚书省覆盖
  5. 管理权收敛:仅吏部拥有 Agent 配置管理权
  6. 外部通信管控:仅太子和尚书省可向皇上发送消息
  7. 皇上直令豁免:imperial_direct 可临时提权,执行完毕自动回收

权限变更流程

权限变更请求 → 吏部评估 → 门下省审批 → 生效
  • 临时提权:尚书省可为跨部门任务临时授权,有效期仅限该任务
  • 紧急提权:P0 事件中先提权后补审,24 小时内完成门下省补审
  • 权限审计:吏部定期审查实际权限使用,清理冗余授权

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.