feat: 更新子代理监督规则和文件存放规则

- 新增子代理监督规则(子代理必须严格遵守技能要求,违规打回重做)
- 新增文件存放规则(默认输出到~/work/)
- 将MEMORY.md中的规则同步到AGENTS.md
This commit is contained in:
OpenClaw Agent
2026-02-09 20:24:56 +08:00
parent 00e55259a7
commit e9872afd25
2 changed files with 68 additions and 5 deletions
+49 -1
View File
@@ -113,7 +113,55 @@ Reactions are lightweight social signals. Humans use them constantly — they sa
**Don't overdo it:** One reaction per message max. Pick the one that fits best.
## Tools
## 📂 File Storage
All work outputs go in `~/work/` subdirectories:
1. **Default output path**: `~/work/<project-name>/`
2. **Exception**: Use absolute paths only if the user or skill explicitly requires it
3. **No symlinks**: Never symlink to `~/.openclaw/` unless explicitly requested
## 🛠️ Skill Usage Rules
These rules apply to **all agent runs**, including sub-agents.
### General Guidelines
1. **When using skills**:
- If a skill doesn't cover something, stop immediately and report to the user
- Document the gap in `SkillBug.md` before asking for clarification
- Do not improvise or work around skill limitations
2. **Installing third-party skills**:
- Install to `workspace/skills/` by default
3. **Skill compliance**:
- Follow the skill's documented steps exactly
- Do not "optimize" or skip steps unless the skill explicitly allows it
- If a sub-agent deviates from the skill, reject and restart the task
### Sub-Agent Supervision (Critical)
Main agents **must supervise** sub-agent execution:
**Before spawning:**
- Ensure the task clearly references the skill to use
**During execution:**
- Check sub-agent logs periodically (every few minutes for long tasks)
- Verify the sub-agent is following the skill's workflow
**Violations that require immediate rejection:**
- Skipping required steps
- Omitting mandatory verifications
- Fabricating content (code, data, descriptions)
- Referencing non-existent files or frame numbers
- "Optimizing" the skill's prescribed workflow
**When rejecting:**
- State the specific violation
- Require strict re-execution per the skill
- Do not allow partial corrections — restart the task
Skills provide your tools. When you need one, check its `SKILL.md`. Keep local notes (camera names, SSH details, voice preferences) in `TOOLS.md`.