Clawdbot Skill Update
by @pasogott
Comprehensive backup, update, and restore workflow with dynamic workspace detection
clawhub install clawdbot-skill-updateπ About This Skill
name: clawdbot-skill-update description: Comprehensive backup, update, and restore workflow with dynamic workspace detection homepage: https://github.com/pasogott/clawdbot-skill-update metadata: {"clawdbot":{"emoji":"πΎ","requires":{"bins":["bash","jq","tar","git"]},"tags":["backup","restore","update","multi-agent"]}}
Clawdbot Update Skill
Comprehensive backup, update, and restore workflow for Clawdbot installations.
Repository
origin/main~/code/clawdbot (default)Description
This skill provides a complete, modular update workflow for Clawdbot with dynamic workspace detection:
Key Features
β 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
Files
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 guideDynamic Features
Both backup and restore scripts now:
~/.clawdbot/clawdbot.jsonWhen to Use
Trigger this skill when asked to:
Usage
1. Preview Backup (Dry Run)
~/.skills/clawdbot-update/backup-clawdbot-dryrun.sh
Shows:
No files are created or modified!
2. Create Full Backup
~/.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/
3. Update Clawdbot
Follow the checklist:
cat ~/.skills/clawdbot-update/UPDATE_CHECKLIST.md
Key steps: 1. Create backup 2. Stop gateway 3. Pull latest code 4. Adjust config for breaking changes 5. Run doctor 6. Test functionality 7. Start gateway as daemon
4. Restore from Backup
~/.skills/clawdbot-update/restore-clawdbot.sh ~/.clawdbot-backups/pre-update-YYYYMMDD-HHMMSS
Restores:
Important Notes
Multi-Agent Setup
This skill is designed for multi-agent setups with:
Breaking Changes in v2026.1.8
CRITICAL:
pairing policy instead of opentelegram.groups and whatsapp.groups are now allowlists"agent" from implicitBackup Validation
After backup, always verify:
BACKUP_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)Config Changes Required
Example: Switch WhatsApp to pairing:
jq '.whatsapp.dmPolicy = "pairing"' ~/.clawdbot/clawdbot.json | sponge ~/.clawdbot/clawdbot.json
Example: Set explicit sandbox scope:
jq '.agent.sandbox.scope = "agent"' ~/.clawdbot/clawdbot.json | sponge ~/.clawdbot/clawdbot.json
Workflow
Standard Update Flow
# 1. Check for updates
~/.skills/clawdbot-update/check-upstream.sh2. Validate current setup
~/.skills/clawdbot-update/validate-setup.sh3. Dry run
~/.skills/clawdbot-update/backup-clawdbot-dryrun.sh4. Backup
~/.skills/clawdbot-update/backup-clawdbot-full.sh5. Stop gateway
cd ~/code/clawdbot
pnpm clawdbot gateway stop6. Update code
git checkout main
git pull --rebase origin main
pnpm install
pnpm build7. Run doctor
pnpm clawdbot doctor --yes8. Test
pnpm clawdbot gateway start # foreground for testing9. Deploy
pnpm clawdbot gateway stop
pnpm clawdbot gateway start --daemon
Rollback Flow
# Quick rollback
~/.skills/clawdbot-update/restore-clawdbot.sh Manual rollback
cd ~/code/clawdbot
git checkout
pnpm install && pnpm build
cp /clawdbot.json ~/.clawdbot/
pnpm clawdbot gateway restart
Testing After Update
Functionality Tests
New Features
pnpm clawdbot agents list
pnpm clawdbot logs --tail 50
pnpm clawdbot providers list --usage
pnpm clawdbot skills list
Monitoring
# Live logs
pnpm clawdbot logs --followOr Web UI
open http://localhost:3001/logsCheck status
pnpm clawdbot status
pnpm clawdbot gateway status
Troubleshooting
Common Issues
Gateway won't start:
pnpm clawdbot logs --grep error
pnpm clawdbot doctor
Auth errors:
# OAuth profiles might need re-login
pnpm clawdbot providers login
Sandbox issues:
# Check sandbox config
jq '.agent.sandbox' ~/.clawdbot/clawdbot.jsonCheck per-agent sandbox
jq '.routing.agents[] | {name, sandbox}' ~/.clawdbot/clawdbot.json
Emergency Restore
If something goes wrong:
# 1. Stop gateway
pnpm clawdbot gateway stop2. Full restore
LATEST_BACKUP=$(ls -t ~/.clawdbot-backups/ | head -1)
~/.skills/clawdbot-update/restore-clawdbot.sh ~/.clawdbot-backups/$LATEST_BACKUP3. Restart
pnpm clawdbot gateway start
Installation
Via ClawdHub
clawdbot skills install clawdbot-update
Manual
git clone ~/.skills/clawdbot-update
chmod +x ~/.skills/clawdbot-update/*.sh
License
MIT - see LICENSE
Author
Pascal Schott (@pasogott)
Contribution for Clawdbot https://github.com/clawdbot/clawdbot
β‘ When to Use
π‘ Examples
1. Preview Backup (Dry Run)
~/.skills/clawdbot-update/backup-clawdbot-dryrun.sh
Shows:
No files are created or modified!
2. Create Full Backup
~/.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/
3. Update Clawdbot
Follow the checklist:
cat ~/.skills/clawdbot-update/UPDATE_CHECKLIST.md
Key steps: 1. Create backup 2. Stop gateway 3. Pull latest code 4. Adjust config for breaking changes 5. Run doctor 6. Test functionality 7. Start gateway as daemon
4. Restore from Backup
~/.skills/clawdbot-update/restore-clawdbot.sh ~/.clawdbot-backups/pre-update-YYYYMMDD-HHMMSS
Restores:
π Tips & Best Practices
Common Issues
Gateway won't start:
pnpm clawdbot logs --grep error
pnpm clawdbot doctor
Auth errors:
# OAuth profiles might need re-login
pnpm clawdbot providers login
Sandbox issues:
# Check sandbox config
jq '.agent.sandbox' ~/.clawdbot/clawdbot.jsonCheck per-agent sandbox
jq '.routing.agents[] | {name, sandbox}' ~/.clawdbot/clawdbot.json
Emergency Restore
If something goes wrong:
# 1. Stop gateway
pnpm clawdbot gateway stop2. Full restore
LATEST_BACKUP=$(ls -t ~/.clawdbot-backups/ | head -1)
~/.skills/clawdbot-update/restore-clawdbot.sh ~/.clawdbot-backups/$LATEST_BACKUP3. Restart
pnpm clawdbot gateway start