Self-Improving Agent
一个面向 Automation 场景的 Agent 技能。原始说明:Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Clau...
一个面向 Automation 场景的 Agent 技能。原始说明:Backup agent brain (workspace) and body (state) to local folder and optionally sync to cloud via rclone.
name: simple-backup
description: Backup agent brain (workspace) and body (state) to local folder and optionally sync to cloud via rclone.
metadata: {"openclaw":{"emoji":"💾","requires":{"bins":["rclone","gpg","tar","jq"]}}}
A robust backup script that:
rclone (optional) brew install rclone gnupg jq
~/.openclaw/credentials/backup.key (recommended)export BACKUP_PASSWORD="secret""password": "secret" to skill config rclone config
simple-backup
By default, paths are auto-detected from ~/.openclaw/openclaw.json:
agents.defaults.workspace~/.openclaw (where config lives)<workspace>/BACKUPSFor non-standard setups, override any path in ~/.openclaw/openclaw.json:
{
"skills": {
"entries": {
"simple-backup": {
"config": {
"workspaceDir": "/custom/path/workspace",
"stateDir": "/custom/path/state",
"skillsDir": "/custom/path/skills",
"backupRoot": "/custom/path/backups",
"remoteDest": "gdrive:backups"
}
}
}
}
}
| Config Key | Env Var | Auto-Detected | Description |
|------------|---------|---------------|-------------|
| workspaceDir | BRAIN_DIR | agents.defaults.workspace | Agent workspace |
| stateDir | BODY_DIR | ~/.openclaw | OpenClaw state dir |
| skillsDir | SKILLS_DIR | ~/openclaw/skills | Skills directory |
| backupRoot | BACKUP_ROOT | <workspace>/BACKUPS | Local backup storage |
| remoteDest | REMOTE_DEST | (none) | Rclone remote path |
| maxDays | MAX_DAYS | 7 | Days to keep daily backups |
| hourlyRetentionHours | HOURLY_RETENTION_HOURS | 24 | Hours to keep hourly |
| password | BACKUP_PASSWORD | (none) | Encryption password |
Priority: Config file → Env var → Auto-detect