restore
Skill7 starsChanged 19 days agoMITView on GitHub
Undo the founder's OS back to an earlier saved version, non-destructively, wrapping git so they never type a git command. Trigger on "undo", "undo to before this morning", "restore to yesterday", "roll back", "go back to last week", "revert my changes", or any plain request to return to an earlier state. Saves the current work as a safety version FIRST, aborts if that safety save is blocked, then records the undo as a NEW version so the undo itself is reversible. Never rewrites history, never runs a destructive reset, never loses unsaved work.
- Deletes or force-pushes
9 other projects use a version of this.
Adopted by
Most recently taken up by
- Leineder/ainonymize-claudetheir own version, first seen Oct 25, 2026
- arm092/autoharness-codextheir own version, first seen Oct 15, 2026
- OthmanAdi/haircuttheir own version, first seen Sep 13, 2026
- maxwellsdm1867/wheelertheir own version, first seen Aug 8, 2026
- redareda9/ghostty-resurrecttheir own version, first seen Jun 19, 2026
- thepictishbeast/claude-toolstheir own version, first seen May 17, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- sanghun0724/cmux-claude-skills★ 33same name
- maxwellsdm1867/wheeler★ 12same name
- ThisisYoYoDev/claude-rag★ 9same name
- redareda9/ghostty-resurrect★ 8same name
- nikosdion/devskills★ 4same name
- arm092/autoharness-codex★ 1same name
- OthmanAdi/haircut★ 1same name
- thepictishbeast/claude-tools★ 1same name
- Leineder/ainonymize-claude★ 0same 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 repository100 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- notion-package/CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- add-handsSkill
- add-mouthSkill
- add-voiceSkill
- approval-gatesSkill
- auditSkill
- backupSkill
- blind-spot-reviewSkill
- bottleneck-diagnosticSkill
- brain-logSkill
- brain-passSkill
- brain-snapshotSkill
- brand-interviewSkill
- brand-voice-interviewSkill
- business-context-loaderSkill
- campaign-from-themeSkill
- capture-sweepSkill
- catch-upSkill
- client-updateSkill
- connectSkill
- content-repurposerSkill
- content-startSkill
- context-persistenceSkill
- cross-linkSkill
- data-securitySkill
- decision-frameworkSkill
- decisions-startSkill
- delivery-startSkill
- email-drafterSkill
- employee-reviewSkill
- finance-importSkill
- forcing-questionsSkill
- founder-coachingSkill
- founder-next-moveSkill
- founder-os-setupSkill
- founder-reviewSkill
- founder-scope-challengeSkill
- github-opsSkill
- handoff-protocolSkill
- hireSkill
- historySkill
- housekeepingSkill
- ingestSkill
- knowledge-captureSkill
- legal-complianceSkill
- linkedin-brand-directionSkill
- linkedin-network-scanSkill
- linkedin-postSkill
- linkedin-power-auditSkill
- linkedin-startSkill
- linkedin-warm-revivalSkill
- lintSkill
- list-prunerSkill
- log-archiveSkill
- log-replySkill
- meeting-prepSkill
- memory-passSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 9 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
9
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
- Distinctive: line 21
If that safety save is blocked by the privacy guard, the whole undo is ABORTED and nothing is moved.
- Distinctive: line 24
Never work around these. Never run git reset --hard, git checkout that discards files, or a force operation to "make undo work." If the …
- Very specific: line 28
If core/identity.md does not exist, stop with: Founder OS not set up here.
- Distinctive: line 36
Phase 1, safety save (this also previews the undo): Run:
- Very specific: line 41
If the output starts with UNDO ABORTED, the safety save was blocked by the guard.
- Very specific: line 42
If the script says it could not find a saved version from before that point, nothing was changed.
- Distinctive: line 45
Confirm: Ask the founder to confirm they want to undo to that version, given the files that will change.
- Distinctive: line 47
Phase 2, apply the undo: Only after a yes, run with the resolved SHA from phase 1:
- Distinctive: line 53
If at any point the script reports a hook blocked a commit, relay it and stop.
- Distinctive: line 61
Always phase 1 before phase 2.
- Distinctive: line 64
Never git reset --hard, never a discarding checkout, never force, never push, never rewrite history.
- Distinctive: line 65
No em dashes or en dashes.
“Common” is measured: kept by at least 6 in 10 of the 8 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
Restore
Runs on: local-exec - runs a local script; on a cloud surface I read the results, I do not run it.
Undo the founder's OS to an earlier saved version, without ever losing work. Wraps git. Local only. Two phases with a confirmation in between, so nothing destructive happens without the founder seeing it first.
The safety promise (read before running)
This verb is fail-safe by construction:
- It saves the current work as a safety version BEFORE touching anything.
- If that safety save is blocked by the privacy guard, the whole undo is ABORTED and nothing is moved.
- The undo is recorded as a NEW version on top of history, so the state you undid FROM stays recoverable. History is never rewritten.
Never work around these. Never run git reset --hard, git checkout that discards files, or a force operation to "make undo work." If the script aborts, relay why and stop.
Pre-flight
- If
core/identity.mddoes not exist, stop with:Founder OS not set up here. Run /founder-os:setup first. - If
scripts/caveman_git.pydoes not exist, stop with:Version control helper not found. Run /founder-os:update to install it. - If git is not installed or the folder has no
.git/directory (a ZIP install that has not graduated yet), do not error. Session snapshots still cover this session: runpython scripts/session_changes.py --printto show what changed, and restore any single file withpython scripts/session_changes.py --restore <path>. For undo across sessions, offer "own my history".
Procedure
- Find the target. If the founder named a clear point ("yesterday", "last Friday"), use it. If they are vague, run the history verb (
python scripts/caveman_git.py history), show two or three concrete days, and ask which one. Do not guess a target the founder did not confirm. The target goes inside double quotes on the command line, where$, backticks and"still act, so it may hold only letters, digits, spaces, dashes and colons ("yesterday", "last Friday", "2026-10-20"). Anything else, ask for the day instead. Phase 1, safety save (this also previews the undo). Run:
python scripts/caveman_git.py restore --to "<target>" --safe-commit- The script prints
Resolved target: <sha>. Keep that exact SHA. You MUST pass it to phase 2, because the safety save moves the current version and a relative reference like "yesterday" would then point somewhere else. - If the output starts with
UNDO ABORTED, the safety save was blocked by the guard. Relay the reason in plain words, tell the founder nothing was changed and nothing was lost, and STOP. Do not run phase 2. Do not bypass the guard. - If the script says it could not find a saved version from before that point, nothing was changed. Show the founder the history (
python scripts/caveman_git.py history) and ask which day. Never retry with a phrase of your own. - Otherwise the script prints how it read the phrase (
Read '<phrase>' as: ...), which version that is (That version: ...), and the files an undo would change. Show all three to the founder, so they can see the day matches what they meant.
- The script prints
- Confirm. Ask the founder to confirm they want to undo to that version, given the files that will change. If they say no, stop. The safety save already made is harmless and stays as a normal version.
Phase 2, apply the undo. Only after a yes, run with the resolved SHA from phase 1:
python scripts/caveman_git.py restore --to "<resolved-sha>" --applyRelay the result plainly: the files are back to the earlier version, recorded as a new version, and the prior state is still recoverable (say "what changed" to see it).
- If at any point the script reports a hook blocked a commit, relay it and stop. Never bypass.
Runtime honesty
This verb runs a local script and changes local files. On a surface that cannot run a script or write files (a web-only agent), say so plainly: you can explain what an undo would do and help the founder pick a target, but you cannot perform the undo there. They run it in Claude Code or another local-runtime agent pointed at the folder.
Rules
- Always phase 1 before phase 2. Never skip the safety save.
- Abort the whole undo if the safety save is blocked. Never move the tree after a blocked safety save.
- Pass the resolved absolute SHA to phase 2, never a relative reference.
- Never
git reset --hard, never a discarding checkout, never force, never push, never rewrite history. - No em dashes or en dashes. Hyphens only.
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.

