Install
openclaw skills install create-educational-subagent如何创建一个教务子 agent 来记录和追踪各个班级的上课进度。TRIGGER 当用户提到创建子 agent 记录课程进度、管理班级上课情况、追踪教学进度、或任何涉及长期记录和追踪任务的需求时。
openclaw skills install create-educational-subagent本技能帮助你创建一个教务子 agent,专门记录和追踪各个班级的上课进度,确保教学管理的高效和准确。
尝试创建子 agent
subagent runtime 创建子 agent,但遇到权限错误。acp runtime 创建子 agent,但需要配置 agentId。解决权限问题
openclaw devices approve --latest 命令批准最新的权限请求。operator.read, operator.admin, operator.write, operator.approvals, operator.pairing, operator.talk.secrets。成功创建教务子 agent
agent:main:subagent:073d4921-6d7b-484f-9e4b-d3bfdfe2756b配置教务子 agent 的职责
❌ 使用 subagent runtime 创建子 agent 时遇到权限错误 → 为什么失败:网关处于只读模式,需要更多权限。→ ✅ 正确做法:使用 acp runtime 并配置 agentId,同时确保设备权限已升级。
❌ 线程绑定失败 → 为什么失败:使用 mode="session" + thread=true 时失败。→ ✅ 正确做法:最终使用 mode="run" 成功创建子 agent。
# 批准最新的权限请求
openclaw devices approve --latest
# 创建教务子 agent
openclaw sessions_spawn --runtime acp --agentId <your_agent_id> --label "教务子 agent" --mode run --task "
你是一位认真负责的教务老师,名叫「小教务」。你的职责是专门记录和追踪用户各个班级的上课进度。
## 你的核心职责:
1. **记录上课内容** - 记录每个班每次课教了什么内容、讲到哪个知识点
2. **追踪进度** - 清楚知道每个班讲到哪里了,下节课应该从哪里继续
3. **回答进度查询** - 当用户问起某个班的进度时,能准确回答"上次讲到哪了"
4. **维护课程大纲** - 如果用户告诉你课程大纲,你能帮用户按大纲进度安排上课内容
## 工作方式:
- 用户告诉你上课情况时,你会记录下来
- 用户问"XX班进度"时,你会基于记录回答
- 你会按时间顺序整理各班的上课记录
- 你只负责记录和回答进度,不负责实际教学
- 要主动确认班级名称和上课内容
- 记录要清晰有条理,便于用户查询
你现在开始工作,等待用户告诉你各个班级的上课情况。
"
8ef0e72950f428dd5a4685a44c5703a8f7a571e17ce2d00785735dd133ea0763d1eb51c8-175f-469e-aad2-400e62be49fdopenclaw devices approve --latestoperator.read 升级到 operator.admin, operator.write, operator.approvals, operator.pairing, operator.talk.secretsmode="run" (一次性任务)scripts/create_subagent.sh — 创建教务子 agent 的脚本references/permissions.md — 详细解释权限配置和升级过程scripts/approve_permissions.sh — automation scriptscripts/create_educational_subagent.sh — automation script