backup
Skill0 starsChanged 5 months agoMITView on GitHub
Scan this Mac and back up the dev environment (dotfiles, Homebrew apps, editor settings, runtimes, macOS defaults, project list) into the user's private settings repo. Use when the user wants to back up machine settings, says "backup my machine", "back up my settings", "머신 백업", "설정 백업", or before switching laptops.
- Reads credentials
- Commits and pushes
11 other projects use a version of this.
Adopted by
Most recently taken up by
- ARCASSystems/FounderOStheir own version, first seen Sep 12, 2026
- hazarsozer/ren-ostheir own version, first seen Sep 4, 2026
- maxwellsdm1867/wheelertheir own version, first seen Aug 8, 2026
- Nexus-Organization-Infosec/ClaudeSkillstheir own version, first seen Aug 4, 2026
- Anglesite/anglesite-skillstheir own version, first seen Jul 25, 2026
- hsigstad/research-kittheir own version, first seen Jul 5, 2026
Used with
Projects with it also use 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.
AnthropicSkillupdate
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
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- maxwellsdm1867/wheeler★ 12same name
- tombelieber/claude-backup★ 9same name
- mcpware/claude-code-backup★ 8same name
- redareda9/ghostty-resurrect★ 8same name
- ARCASSystems/FounderOS★ 6same name
- Anglesite/anglesite-skills★ 4same name
- nikosdion/devskills★ 3same name
- seanGSISG/claude-code-backup★ 3same name
- hazarsozer/ren-os★ 2same name
- Nexus-Organization-Infosec/ClaudeSkills★ 1same name
1 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- restoreSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 4 are distinctive, and 9 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 17
Follow the allowlist and forbidden paths in modules.md §Global rules.
- Very specific: line 18
Never read or copy SSH private keys, ~/.aws, ~/.docker, gh hosts.yml, ~/.claude.json, keychains, or .env files.
- Distinctive: line 20
Never commit if the secret scan fails.
- Very specific: line 25
Read ~/.config/before-you-spill/config (KEY=VALUE lines):
- Distinctive: line 32
If it doesn't exist (first run):
- Very specific: line 33
Ask the user where the settings repo should live (default ~/machine-settings) and whether to create a private GitHub repo for it (gh repo …
- Distinctive: line 40
run git config core.hooksPath hooks inside the repo
- Very specific: line 41
Ask which directories hold the user's active projects (default ~/Desktop/project).
- Distinctive: line 42
Write the config file.
- Very specific: line 63
Write modules/<name>/meta.yml per the template in modules.md, including:
- Very specific: line 74
Write/refresh machine.yml at the repo root: hostname, sw_vers output, uname -m, backup timestamp, and versions of core tools (brew, git, …
- Very specific: line 80
Run scripts/secret-scan.sh <repo root> from the settings repo.
- Very specific: line 94
Ask the user before running git add -A && git commit && git push.
“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.
Files
before-you-spill: backup
Back up this machine into the user's private settings repo. You are the
collector; modules.md (next to this file) is the catalog that defines exactly
what to collect. The bundled scripts/secret-scan.sh is the safety rail.
Resolve the plugin root as ${CLAUDE_PLUGIN_ROOT} (fallback: the directory two
levels above this SKILL.md).
Hard safety rules (non-negotiable)
- Follow the allowlist and forbidden paths in
modules.md§Global rules. Never read or copy SSH private keys,~/.aws,~/.docker, ghhosts.yml,~/.claude.json, keychains, or.envfiles. - Never commit if the secret scan fails. Never bypass or remove the pre-commit hook.
- Scrub rules (npmrc etc.) are mandatory: if scrubbing fails, skip the file and warn.
Step 1 — Resolve the settings repo
Read ~/.config/before-you-spill/config (KEY=VALUE lines):
REPO_PATH=/Users/you/machine-settings
PROJECT_ROOTS=~/Desktop/projectIf it doesn't exist (first run):
- Ask the user where the settings repo should live (default
~/machine-settings) and whether to create a private GitHub repo for it (gh repo create <name> --private). - Initialize the repo from the plugin templates:
- copy
${CLAUDE_PLUGIN_ROOT}/templates/settings-repo/.gitignore,.secretignore, andCLAUDE.mdinto the repo root - copy
${CLAUDE_PLUGIN_ROOT}/skills/backup/scripts/secret-scan.sh→scripts/secret-scan.sh(chmod +x) - copy
templates/settings-repo/hooks/pre-commit→hooks/pre-commit(chmod +x) - run
git config core.hooksPath hooksinside the repo
- copy
- Ask which directories hold the user's active projects (default
~/Desktop/project). - Write the config file.
On every run, also refresh scripts/secret-scan.sh in the settings repo from the
plugin copy if the plugin's version is newer (compare content).
Step 2 — Inventory scan
For each module in modules.md, run its detect check. Present a short table:
module → will capture / skipped (not installed).
Discovery pass (offer, don't force): list config-looking entries in ~/.config/,
~/Library/Application Support/, and ~/.* dotfiles that are NOT covered by any
module and NOT on the forbidden list. Present them as "found but not backed up" and
let the user decide. If the user wants one, append a recipe to their settings repo's
CLAUDE.md under a "custom modules" section and collect it the same structured way.
Step 3 — Collect per module
Execute each module's recipe from modules.md exactly. For every module:
- Populate
modules/<name>/files/. - Write
modules/<name>/meta.ymlper the template inmodules.md, including:captured.app_versionvia the module's version commandcaptured.os(sw_vers),arch(uname -m)content_hash: sha256 over the sorted per-file sha256s offiles/(cd modules/<name> && find files -type f | sort | xargs shasum -a 256 | shasum -a 256)- Only rewrite
captured.timestampwhencontent_hashactually changed. This keeps re-runs diff-clean — an unchanged machine produces an emptygit diff.
- Collect warnings (dirty/unpushed projects, scrubbed credential lines, skipped files).
Step 4 — machine.yml
Write/refresh machine.yml at the repo root: hostname, sw_vers output, uname -m,
backup timestamp, and versions of core tools (brew, git, node, zsh, claude).
Apply the same rule: only bump the timestamp if anything else in the repo changed.
Step 5 — Secret scan (blocking)
Run scripts/secret-scan.sh <repo root> from the settings repo. If it fails:
show every finding, do NOT stage or commit anything, and help the user remove or
allowlist (.secretignore) each finding. Re-run until clean.
Step 6 — Report and commit
- Print a summary table: module | captured/skipped/unchanged | warnings.
- Print the red warning block for unrecoverable work (dirty repos, unpushed commits, repos without remotes) — these are exactly what a coffee spill destroys.
- Fill in the README placeholders (
{{HOSTNAME}},{{OS}},{{ARCH}},{{DATE}},{{REPO_URL}},{{MODULE_TABLE}}) fromtemplates/settings-repo/README.mdif the README is still a fresh template, or just update the "Last backup" line and module table otherwise.{{REPO_URL}}must be the HTTPS URL, never SSH — a fresh machine has no SSH keys. - Ask the user before running
git add -A && git commit && git push. The pre-commit hook will re-scan staged content; if it blocks, go back to Step 5.
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
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.

