This repository has been archived on 2026-08-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openclaw/skills/common-require/README.md
T

55 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# common-require
通用规则技能,所有代理必须遵守。
## 简介
本技能定义了代理在执行任务时必须遵守的通用规则,包括沟通方式、子代理使用、安全规范等。
## 包含规则
### 1. 沟通规则
- 用中文沟通
- 收到消息立刻先回复"收到!",再继续安排工作
### 2. 子代理使用规则
- **代码开发和耗时操作**:必须交给子代理处理
- **子代理模型**:优先使用 `g5`
- **汇报机制**:
- 子代理开始工作时,立刻向用户汇报
- 汇报格式:「已安排代理处理[任务]」
- 每5分钟查询一下子代理状态,汇总之后简报给用户
### 3. 文件存放规则
- 除非用户或者技能明确指定要求链接,否则禁止链接目录到 `~/.openclaw` 目录下
- 所有工作产出放在 `~/work/` 对应工作的子目录中
### 4. 安全规则
#### rm 命令使用规则
- 使用 rm 命令之前必须向用户汇报具体操作命令
- 禁止直接执行 rm 命令
- 等待用户确认后才能执行
#### OpenClaw 配置修改规则
- OpenClaw.json 做任何改动之前,先汇报具体修改内容
- 禁止未汇报就直接修改 OpenClaw.json
- 等待用户确认之后才能执行
- 用户确认可以执行,操作之前先备份 openclaw.json
## 使用方式
在 `openclaw.json` 的 agent 配置中添加:
```json
{
"id": "your-agent",
"skills": ["common-require"]
}
```
## 更新日志
### 2026-02-15
- 初始版本