Skills for Real Engineers. Straight from my .agents directory.
backup-setup
Agent skill fromthedotmack/claude-mem
Set up, check, or restore local claude-mem database snapshots. Use when the user says "set up backups", "back up my memories", "backup status", or "restore my database".
How to install backup-setup
npx skills add thedotmack/claude-mem# or add only this skill to Claude Code: copy the folder
plugin/skills/backup-setup/
# into
~/.claude/skills/backup-setup/ (all projects)
.claude/skills/backup-setup/ (one project)
1# Backups (local snapshots)23The installed worker snapshots `~/.claude-mem/claude-mem.db` on a schedule4(`VACUUM INTO`, consistent while sessions run) and keeps the newest N under5`~/.claude-mem/backups/auto/`. Each snapshot is one standalone SQLite file.6Snapshots stay on this machine.78Preserve every unrelated setting and keep `~/.claude-mem/settings.json` mode9`0600`. Never print the file's contents: it holds credentials.1011## Routing1213Based on `$ARGUMENTS`:14- `setup` or empty: **1. Check status**, then **2. Enable snapshots**15- `restore`: **3. Restore**16- `status`: **1. Check status** only1718## 1. Check status1920```bash21npx claude-mem backup status22```2324- Snapshot details printed: backups run. Report the last snapshot time, the25 snapshot count and any last error; stop unless the user asked for a change26 or a restore.27- "Automatic backups are not enabled": continue to step 2 if setting up.28- A "Last restore" line reports the outcome of the most recent restore.29- "Worker is not running": start it with `npx claude-mem start` and retry.30- "Unknown command: backup" or "Backup status failed: HTTP 404": this31 claude-mem (CLI or running worker) has no backup support yet, so the32 worker would ignore the backup settings.33 Stop. Tell the user that backups are not available in their installed34 version and that `npx claude-mem update` brings them once a release35 includes them. Do not write the settings in step 2, and never say backups36 are on.37…
Excerpt shown under the repository's Apache-2.0 license.
More skills in claude-mem
Similar skill repositories
Public repository for Agent Skills
Production-grade engineering skills for AI coding agents.
The open-source app everyone uses to manage agents at work
The design vocabulary for your coding agent. Steer with polish and bolder, review with critique and audit, catch AI slop before it ships.
The 1st Collaborative AI Design Agent Workspace. Local-first and open source. Create motion, prototypes, websites, apps, dashboards, presentations, images, and videos with your team and AI agents. Share work, exchange feedback, and iterate together in one workspace.
