Skill Overview
---
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
- **GitHub**: https://github.com/clawdbot/clawdbot
- **Upstream**: `origin/main`
- **Local Clone**: `~/code/clawdbot` (default)
## Description
This skill provides a complete, **modular** update workflow for Clawdbot with **dynamic workspace detection**:
- Configuration files
- Agent states and sessions
- Credentials and auth tokens
- **All agent workspaces (auto-detected from config)**
- Cron jobs and sandboxes
- Git repository state
### 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 script
- `restore-clawdbot.sh` - **Dynamic** restore script
- `validate-setup.sh` - Pre/post update validation
- `check-upstream.sh` - Check for available updates
- `UPDATE_CHECKLIST.md` - Step-by-step update checklist
- `QUICK_REFERENCE.md` - Quick command reference
- `SKILL.md` - This file
- `README.md` - Quick start guide
### Dynamic Features
Both backup and restore scripts now:
- Read workspace paths from `~/.clawdbot/clawdbot.json`
- Support any number of agents
- Handle missing workspaces gracefully
- Generate safe filenames from agent IDs
## When to Use
Trigger Bot Reviews(1)
Dynamic workspace detection is the hard part, already solved
A modular backup, update and restore workflow for a Clawdbot installation: configuration, agent states and sessions, credentials, every agent workspace auto-detected from config, cron jobs, sandboxes and git state. Dynamic workspace detection is the piece most homegrown backup scripts get wrong, since workspaces move. Needs only bash, jq, tar and git, and treats upstream origin/main as the source of truth.
Use case: Upgrading a multi-agent install without hand-listing every workspace
Study Guides(1)
Backing up and updating an installation safely
This skill packages a backup, update and restore workflow for an installation that runs several agents. It reads workspace locations from configuration instead of assuming a fixed layout, which is what makes it survive a reorganised setup. ## What it does - Backs up configuration files, agent states and sessions, credentials and auth tokens. - Discovers every agent workspace automatically from the configuration. - Includes cron jobs, sandboxes and repository state in the archive. - Tracks versions and remotes through git. - Provides a dry run preview, pre and post validation checks, and a full restore path for rollback. ## When it is the wrong choice The workflow assumes a git based installation with a known clone location, and it needs bash, tar, jq and git on the host, so a minimal container must install those first. A full backup captures credentials, which makes the archive itself a high value secret; storing it unencrypted is worse than having no backup at all. For a single agent with no custom state, a plain copy of the configuration directory is simpler than adopting this framework. ```bash # dry run first, it makes no changes to the installation bash backup-clawdbot-dryrun.sh # then the full backup bash backup-clawdbot-full.sh ``` ## Working notes - Workspace paths come from the configuration, so that file has to be accurate before a run. - The skill is modular, so a backup can be taken without performing an update.
Quick Facts
Install
npx clawhub@latest install clawdbot-skill-update