agentleFS
rawvvrawvv/before-you-spill/skills/restore/SKILL.md

restore

Skill0 starsChanged 5 months agoMITView on GitHub

Restore a full dev environment on this Mac from a before-you-spill settings repo (Homebrew apps, dotfiles, editor settings, runtimes, macOS defaults, projects). Use on a new machine, when the user says "restore my machine", "restore my settings", "머신 복원", "설정 복원", or passes a settings repo URL.

7 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions7 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 7

    1. sanghun0724/cmux-claude-skills★ 33same name
    2. maxwellsdm1867/wheeler★ 12same name
    3. ThisisYoYoDev/claude-rag★ 9same name
    4. redareda9/ghostty-resurrect★ 8same name
    5. ARCASSystems/FounderOS★ 6same name
    6. nikosdion/devskills★ 3same name
    7. thepictishbeast/claude-tools★ 1same name

    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.

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    If $ARGUMENTS has a URL: clone it (default destination ~/machine-settings, ask if the user prefers elsewhere).

    line 16
  2. Very specific:

    If it has a local path, or ~/.config/before-you-spill/config already points to one: use it.

    line 22
  3. Very specific:

    Read machine.yml and every modules/*/meta.yml.

    line 32
  4. Distinctive:

    Ask the user which modules to restore (default: everything present in the repo).

    line 46
  5. Distinctive:

    Every command-strategy step must be idempotent (check-then-act.

    line 56
  6. Very specific:

    Run each module's post_steps guidance into the final report, not as commands.

    line 60

“Common” is measured: kept by at least 6 in 10 of the 6 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

before-you-spill: restore

Rebuild this machine from the user's settings repo. strategies.md (next to this file) defines HOW each strategy is applied and every known macOS landmine — read it fully before applying anything.

Arguments: $ARGUMENTS may contain the settings repo URL or local path.

Step 1 — Get the settings repo

  • If $ARGUMENTS has a URL: clone it (default destination ~/machine-settings, ask if the user prefers elsewhere). Private repos need auth, and a fresh machine has none — expect this. If the clone fails with an auth error: install gh first if it's missing (and Homebrew via its official script if even brew is missing), then run gh auth login (browser device flow works without any existing keys), then retry the clone.
  • If it has a local path, or ~/.config/before-you-spill/config already points to one: use it.
  • Then write ~/.config/before-you-spill/config (REPO_PATH=...) so future backups on this machine target the same repo.
  • Activate the secret-scan hook in the fresh clone — local git config does not travel with git clone: run git config core.hooksPath hooks inside the settings repo.

Step 2 — Drift table

Read machine.yml and every modules/*/meta.yml. Probe the current machine (sw_vers, uname -m, command -v / version per app). Present ONE table before touching anything:

modulecaptured (version, when)this machineplan

Flag: architecture change, OS major difference, apps not yet installed (check whether each one is covered by the Brewfile or an install_hint — see strategies.md §Missing apps), and app major-version drift (see strategies.md §Drift handling).

Step 3 — Confirm the plan

Ask the user which modules to restore (default: everything present in the repo). Honor the module order in strategies.md §Ordering. Nothing is applied before the user confirms.

Step 4 — Apply

For each selected module, apply each meta.yml target with its strategy exactly as specified in strategies.md. Universal rules:

  1. Pre-save any existing real file to ~/.before-you-spill.orig/ before replacing it.
  2. Every command-strategy step must be idempotent (check-then-act; skip what's already there). Re-running restore on a configured machine must be a no-op.
  3. Fail soft per module: one module's failure must not abort the rest. Collect errors and report at the end.
  4. Run each module's post_steps guidance into the final report, not as commands.

Step 5 — Verify

  • Symlinks resolve (readlink each symlink target).
  • brew bundle check --file ... passes (mas failures reported separately).
  • Editor extensions: installed list is a superset of the manifest (minus reported skips).
  • Node default version active (node --version vs meta), scrubbed .npmrc in place.
  • Curated defaults read back the written values.

Step 6 — Final report + manual checklist

Summary table (module | applied/skipped/failed | notes), then the honest checklist of what no tool can restore:

  1. Regenerate SSH keys (ssh-keygen -t ed25519 -C "<email>") and add to GitHub — or restore from the password manager.
  2. gh auth login, npm login (a registry token was scrubbed if the report says so).
  3. Sign into the App Store, then re-run the mas entries that failed.
  4. Sign into JetBrains Settings Sync for IDE configs (v1 backs up the IDE list only).
  5. Settings Sync (VS Code/Cursor): pick one source of truth.
  6. Fonts: modules/fonts/files/fonts.txt lists what the old machine had.

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.