Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Comprehensive backup, update, and restore workflow with dynamic workspace detection
.claude/skills/sundial-org-clawdbot-skill-update/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-11 | ✗→✓ | ▲ Improved | 162% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 483% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 138% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 70% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 65% | 0% |
Comprehensive backup, update, and restore workflow for Clawdbot installations.
origin/main~/code/clawdbot (default)This skill provides a complete, modular update workflow for Clawdbot with dynamic workspace detection:
✅ Dynamic Workspace Detection - Reads workspace paths from config ✅ Multi-Agent Support - Handles multiple agents automatically ✅ Safe Rollback - Full restore capability ✅ Git Integration - Tracks versions and remotes ✅ Validation - Pre/post checks included ✅ Dry Run - Preview before backup
config.json - Skill configuration (repo URLs, paths)backup-clawdbot-dryrun.sh - Dry run preview (no changes)backup-clawdbot-full.sh - Dynamic full backup scriptrestore-clawdbot.sh - Dynamic restore scriptvalidate-setup.sh - Pre/post update validationcheck-upstream.sh - Check for available updatesUPDATE_CHECKLIST.md - Step-by-step update checklistQUICK_REFERENCE.md - Quick command referenceSKILL.md - This fileREADME.md - Quick start guideBoth backup and restore scripts now:
~/.clawdbot/clawdbot.jsonTrigger this skill when asked to:
bash~/.skills/clawdbot-update/backup-clawdbot-dryrun.sh
Shows:
No files are created or modified!
bash~/.skills/clawdbot-update/backup-clawdbot-full.sh
Backs up:
~/.clawdbot/clawdbot.json (config)~/.clawdbot/sessions/ (session state)~/.clawdbot/agents/ (multi-agent state)~/.clawdbot/credentials/ (auth tokens)~/.clawdbot/cron/ (scheduled jobs)~/.clawdbot/sandboxes/ (sandbox state)Output: ~/.clawdbot-backups/pre-update-YYYYMMDD-HHMMSS/
Follow the checklist:
bashcat ~/.skills/clawdbot-update/UPDATE_CHECKLIST.md
Key steps:
bash~/.skills/clawdbot-update/restore-clawdbot.sh ~/.clawdbot-backups/pre-update-YYYYMMDD-HHMMSS
Restores:
This skill is designed for multi-agent setups with:
CRITICAL:
pairing policy instead of opentelegram.groups and whatsapp.groups are now allowlists"agent" from implicitAfter backup, always verify:
bashBACKUP_DIR=~/.clawdbot-backups/pre-update-YYYYMMDD-HHMMSS cat "$BACKUP_DIR/BACKUP_INFO.txt" ls -lh "$BACKUP_DIR"
Should contain:
clawdbot.jsoncredentials.tar.gzworkspace-*.tar.gz (one per agent)Example: Switch WhatsApp to pairing:
bashjq '.whatsapp.dmPolicy = "pairing"' ~/.clawdbot/clawdbot.json | sponge ~/.clawdbot/clawdbot.json
Example: Set explicit sandbox scope:
bashjq '.agent.sandbox.scope = "agent"' ~/.clawdbot/clawdbot.json | sponge ~/.clawdbot/clawdbot.json
bash# 1. Check for updates ~/.skills/clawdbot-update/check-upstream.sh # 2. Validate current setup ~/.skills/clawdbot-update/validate-setup.sh # 3. Dry run ~/.skills/clawdbot-update/backup-clawdbot-dryrun.sh # 4. Backup ~/.skills/clawdbot-update/backup-clawdbot-full.sh # 5. Stop gateway cd ~/code/clawdbot pnpm clawdbot gateway stop # 6. Update code git checkout main git pull --rebase origin main pnpm install pnpm build # 7. Run doctor pnpm clawdbot doctor --yes # 8. Test pnpm clawdbot gateway start # foreground for testing # 9. Deploy pnpm clawdbot gateway stop pnpm clawdbot gateway start --daemon
bash# Quick rollback ~/.skills/clawdbot-update/restore-clawdbot.sh <backup-dir> # Manual rollback cd ~/code/clawdbot git checkout <old-commit> pnpm install && pnpm build cp <backup-dir>/clawdbot.json ~/.clawdbot/ pnpm clawdbot gateway restart
bashpnpm clawdbot agents list pnpm clawdbot logs --tail 50 pnpm clawdbot providers list --usage pnpm clawdbot skills list
bash# Live logs pnpm clawdbot logs --follow # Or Web UI open http://localhost:3001/logs # Check status pnpm clawdbot status pnpm clawdbot gateway status
Gateway won't start:
bashpnpm clawdbot logs --grep error pnpm clawdbot doctor
Auth errors:
bash# OAuth profiles might need re-login pnpm clawdbot providers login <provider>
Sandbox issues:
bash# Check sandbox config jq '.agent.sandbox' ~/.clawdbot/clawdbot.json # Check per-agent sandbox jq '.routing.agents[] | {name, sandbox}' ~/.clawdbot/clawdbot.json
If something goes wrong:
bash# 1. Stop gateway pnpm clawdbot gateway stop # 2. Full restore LATEST_BACKUP=$(ls -t ~/.clawdbot-backups/ | head -1) ~/.skills/clawdbot-update/restore-clawdbot.sh ~/.clawdbot-backups/$LATEST_BACKUP # 3. Restart pnpm clawdbot gateway start
bashclawdbot skills install clawdbot-update
bashgit clone <repo-url> ~/.skills/clawdbot-update chmod +x ~/.skills/clawdbot-update/*.sh
MIT - see LICENSE
Pascal Schott (@pasogott)
Contribution for Clawdbot https://github.com/clawdbot/clawdbot
Other measured skills in the registry, with their headline benchmark lift.