Thanks for helping. Claude-Backup is small: two installers and four SKILL.md files that Claude reads. Most
contributions are either an installer fix (bash or PowerShell) or a change to how the backup task or a skill behaves
(markdown instructions). Reports from Windows and Linux users are especially welcome.
Please read the Code of Conduct before taking part, and report security problems through the security policy rather than a public issue.
| Path | What it is | Change it when… |
|---|---|---|
install.sh |
macOS and Linux installer | Install paths, flags, OS detection |
install.ps1 |
Windows installer | Same, for Windows; keep the two in step |
scheduled-task/SKILL.md |
The session-backup Cowork task |
What gets backed up, the vault layout, incremental logic |
skill/SKILL.md |
vault-resume |
How a new session loads context |
skill-search/SKILL.md |
vault-search (optional) |
How the vault is searched |
skill-verify/SKILL.md |
vault-verify (optional) |
The health report |
vault-gitignore.template |
Copied to <vault>/.gitignore on first install |
What stays out of a synced vault |
You need git and bash. To work on install.ps1, PowerShell 7 (pwsh) on any OS, and ideally Windows PowerShell
5.1 on Windows too, since the installer targets both. To try the backup task and the skills end to end, Claude
Desktop with Cowork.
git clone https://github.com/abhinav-adtechs/Claude-Backup.git
cd Claude-BackupBoth installers write under your home folder, so point it somewhere disposable first. This is exactly what CI runs on macOS and Ubuntu:
export HOME="$(mktemp -d)" # only for this shell
VAULT="$HOME/My Vault"
bash -n install.sh
bash ./install.sh "$VAULT"
bash ./install.sh --check
grep -q "$VAULT/" "$HOME/.claude/vault-resume/SKILL.md" && echo "vault path substituted"
bash ./install.sh --uninstall
test -f "$VAULT/.gitignore" && echo "vault kept"On Windows (or with pwsh anywhere), the same idea in a new PowerShell window:
$env:USERPROFILE = Join-Path ([System.IO.Path]::GetTempPath()) "cb-home" # only for this window
.\install.ps1 -VaultPath (Join-Path $env:USERPROFILE "My Vault")
.\install.ps1 -Check
.\install.ps1 -Uninstall- Install into a test vault, for example
./install.sh ~/ClaudeVault-test. This replaces the installed task and resume skill with your working copy, pointed at the test vault. - In Cowork, Scheduled › Run now on
session-backup, and check_backup-log.md,_index.mdand a project's_project-summary.mdin the test vault. - In a new session, ask "pick up where I left off" and check that the resume skill reads the right files.
- When you're done, install again with your real vault path.
- Keep the placeholder path exact. The installers replace the literal string
~/Documents/ClaudeVault/(with the trailing slash) in the task and the resume skill. Write the vault path that way in any new instruction, or it won't follow a custom vault location. - Keep the installers in step. A new flag in
install.shneeds the matching parameter ininstall.ps1, the README's Configuration table, and the--checkoutput on both. - Keep
install.ps1ASCII-only so Windows PowerShell 5.1 parses it whatever the system code page. - Never delete vault data.
--uninstall/-Uninstallremove only what the installer put in place; the backup task only adds or updates. - No personal data in examples. Use placeholders like
/Users/alice/WebKitchen/my-appandmy-web-appin skills, docs and tests. - Skills stay scoped.
vault-resumeloads one project when it knows which; keep new instructions from reading the whole vault by default.
- Branch from
main:feat/<short-name>,fix/<short-name>,docs/<short-name>. - Use Conventional Commits, with a scope where it helps:
fix(install.ps1): …,feat(task): …,feat(resume): …,docs: …,ci: …. - Subject in the imperative, under 72 characters; the body says why.
- Installer problems: your OS and version, the shell (
bash --versionor$PSVersionTable.PSVersion), the exact command, and its full output, plus./install.sh --checkor.\install.ps1 -Check. - Backup problems: the latest entries of
_backup-log.mdand what's missing from the vault. Redact anything from transcripts or settings before you paste it. - Ideas: what you were trying to recover or resume, and what the vault didn't give you.
-
bash -n install.shpasses, and the throwaway-home test above passes - If you changed
install.ps1: tested withpwsh(and Windows PowerShell 5.1 if you can), and it is still ASCII-only - If you changed a
SKILL.md: ran it against a test vault, and the vault path still uses~/Documents/ClaudeVault/ - Both installers and the README agree on flags, paths and defaults
-
CHANGELOG.mdhas a line under Unreleased - No personal paths, transcripts, keys or tokens in the diff