agentleFS
kks0488kks0488/vibe-claude/skills/undo/SKILL.md

undo

Skill29 starsChanged 3 months agoMITView on GitHub

Go back to an earlier state of the project's files (before a request, before a risky command, or the last time checks passed). Use when the user says undo, go back, revert, restore, it worked before, or 되돌려/원래대로/이전으로.

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. buildomator/buildomator★ 102same name
    2. hereinthehive/kickstart★ 4same name
    3. nguyenthanhtat/screen1-claude★ 2same name
    4. manastalukdar/ai-devstudio★ 1same name
    5. MFaizR77/turnback★ 1same name
    6. hailneed/agent-blackbox★ 0same name
    7. laz3rjenkins/atomic-commits★ 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.

The file

Files
SKILL.md

The user wants an earlier version of their files back. They may not read code, so talk about moments and effects, never about git.

  1. List the saved moments:

    python3 "${CLAUDE_PLUGIN_ROOT}/hooks/vibe.py" undo list

    Each line is <id> <when> <kind> '<label>' [how it differs from now]. Always refer to a moment by its id (first column), never by its position, because new moments are added while you talk. Kinds: "before request" (the label is what the user asked for), "before risky command", "checks passed" (a moment when tests or the build passed), "before an undo".

  2. Pick the moment that matches what the user described: $ARGUMENTS If nothing was described, suggest the newest "before request" entry that is not marked "(start of the current request)" and does not say "same as now": that undoes the latest finished request. If unsure, show at most 3 options in plain words, for example "3분 전, '로그인 고쳐줘' 요청 직전 (파일 4개가 달라요)", and ask which one.
  3. Optionally see which files would change: python3 "${CLAUDE_PLUGIN_ROOT}/hooks/vibe.py" undo show <id>
  4. Restore after the user agrees: python3 "${CLAUDE_PLUGIN_ROOT}/hooks/vibe.py" undo restore <id> This only touches files in the project, never git history, and the current files are saved first, so the undo can itself be undone (the output names the id to restore). If it answers "Not restored", nothing was changed; explain the reason in plain words.
  5. Tell the user in one or two plain sentences what is back, how to check it (for example reload the page), and that they can say "undo" again to return.

Snapshots skip git-ignored files, folders such as node_modules, and files over 5 MB. When a command deleted files the snapshots did not cover, a copy went to the trash (kept 7 days): list it with python3 "${CLAUDE_PLUGIN_ROOT}/hooks/vibe.py" trash and bring files back with python3 "${CLAUDE_PLUGIN_ROOT}/hooks/vibe.py" trash restore <id> (it never overwrites files that exist again). Databases and online services are not part of them; say so if the user expects those to come back.

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.