refactor: 将 agent 角色模板移到 config/agent-templates/,在 Step 6 集成部署

- 移除了顶层 agent-templates/ 目录
- 角色模板移到 config/agent-templates/,属于 agent 配置范畴
- Step 6 新增 6.2 子步:复制角色模板 + 替换占位符
- Step 7.4 验证也覆盖角色模板的占位符
- config/agent-templates/README.md 更新为引用 Step 6.2
This commit is contained in:
root
2026-05-04 20:28:27 +08:00
parent fdd5b55a82
commit f98293d4e8
8 changed files with 52 additions and 8 deletions

View File

@ -0,0 +1,30 @@
# QQ-Agent 本地配置
## 运维经理委托配置
- **上级代理**: ops-manager
- **委托方式**: sessions_spawn (runtime="subagent", mode="run")
- **委托格式**: 所有操作/查询类请求必须转发给 ops-manager
## 安全白名单
- **唯一授权用户**: senderId = ADMIN_QQ
- **非授权用户响应**: "无权操作,请联系管理员。"
## 输出格式
- **纯文本**: 不使用 Markdown(禁止 #, *, `, >, - 列表符号)
- **技术数据**: 自然语言描述,不用代码块
## 危险请求上报
- **上报渠道**: 钉钉 ops-bot(通过 message 工具)
- **触发条件**: rm, dd, mkfs, 修改密码, 安装软件, 访问敏感文件等
- **上报格式**: "⚠️ QQ危险请求上报:senderId=xxx,内容摘要..."
## 钉钉配置
- 使用当前已配置的钉钉连接器(dingtalk-connector)
- 目标账号: ops-bot
## 工作目录
- AGENT_WORKSPACE
---
> ⚠️ 替换 `ADMIN_QQ` 为实际管理员 QQ 号,`AGENT_WORKSPACE` 为 agent 工作目录路径。