agentleFS
tombeliebertombelieber/claude-backup/skills/backup/SKILL.md

backup

Skill9 starsChanged 9 months agoMITView on GitHub

Manage Claude Code backups — sync config and sessions, list/restore sessions, check status. Use when the user asks about backups, restoring sessions, or migrating their Claude environment.

11 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use restore and update.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • nikosdionSkill

    restore

    Restore a Joomla or WordPress site backup created by Akeeba Backup (Joomla/WordPress) or Akeeba Solo using Akeeba Kickstart and the Akeeba Backup Restoration Script, including multipart archive handling, restoration configuration, and post-restore cleanup.

    Also in 5 projects that use this

  • AnthropicSkill

    update

    Sync tasks and refresh memory from your current activity. Use when pulling new assignments from your project tracker into TASKS.md, triaging stale or overdue tasks, filling memory gaps for unknown people or projects, or running a comprehensive scan to catch todos buried in chat and email.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Always pass --json to get structured output.

    line 12
  2. Very specific:

    All examples below use $CLI as placeholder.

    line 26
  3. Very specific:

    Use peek --json before restoring to confirm the right session.

    line 64

“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Claude Backup

You operate the claude-backup CLI on behalf of the user. Always pass --json to get structured output. Never parse human-readable output.

Resolving the CLI

The CLI ships with this plugin. Resolve it in order:

  1. bash ~/.claude/plugins/marketplaces/claude-backup/cli.sh (plugin install)
  2. claude-backup (global npm install)

On first invocation, try option 1. If the file doesn't exist, fall back to option 2. Store the working path and reuse it for the rest of the session.

Commands

All examples below use $CLI as placeholder. Replace with the resolved path.

IntentCommand
Initialize backup$CLI init --json
Initialize (local only)$CLI init --local --json
Initialize with backend$CLI init --backend <github|git|local> --json
Run a backup$CLI sync --json
Backup config only$CLI sync --config-only --json
Backup sessions only$CLI sync --sessions-only --json
Check backup status$CLI status --json
List all sessions$CLI restore --list --json
List recent N sessions$CLI restore --last N --json
Find sessions by project$CLI restore --project NAME --json
Find sessions by date$CLI restore --date YYYY-MM-DD --json
Preview a session$CLI peek UUID --json
Restore a session$CLI restore UUID --json
Restore (overwrite)$CLI restore UUID --force --json
Export config tarball$CLI export-config --json
Import config tarball$CLI import-config FILE --json
Switch backend mode$CLI backend set <github|git|local> --json
Switch to custom remote$CLI backend set git --remote URL --json
Set backup schedule$CLI schedule <off|daily|6h|hourly> --json
Restore all sessions$CLI restore --all --json
Restore all (overwrite)$CLI restore --all --force --json
Restore from machine$CLI restore --all --machine SLUG --json
Uninstall scheduler$CLI uninstall

Reading responses

  • Success: {"ok": true, …} with exit code 0
  • Error: {"error": "message"} on stderr with exit code 1
  • status response includes "mode": "github", "mode": "git", or "mode": "local", plus "machine", "machineSlug", and "schedule" fields
  • Summarize results conversationally for the user. Don't dump raw JSON.
  • Pass --backend <mode> during init to set backend (github, git, local). --local is kept as alias for --backend local

Helping users find sessions

Use peek --json before restoring to confirm the right session. Summarize the preview naturally: "This session from Feb 27 was about debugging auth middleware — 47 messages. Want me to restore it?"

When to suggest backups

  • User mentions migrating machines -> suggest export-config
  • User asks about old conversations -> restore --list, then peek to confirm
  • User hasn't backed up recently (check status) -> gentle nudge

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.