agentleFS
MFaizR77MFaizR77/turnback/skills/undo/SKILL.md

undo

Skill1 starsChanged 2 months agoMITView on GitHub

Undo the file changes of an agent turn with Turnback, including shell commands and untracked files. Run only when the user invokes /turnback:undo.

4 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions4 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 4

    1. buildomator/buildomator★ 90same name
    2. thettwe/nyann★ 6same name
    3. hereinthehive/kickstart★ 4same name
    4. pravoobi/changelog-claude-plugin★ 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 repository3 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 0

    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
  1. Very specific:

    Call restore with target and, if the user named files, paths.

    line 11
  2. Very specific:

    Ask the user to confirm. Only after a clear yes, call restore again with the same arguments plus token set to confirm_token.

    line 13
  3. Very specific:

    If the MCP tools are unavailable, run node "${CLAUDE_PLUGIN_ROOT}/dist/cli.js" undo --dry-run in the project directory, show the plan, and …

    line 16

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

Restore project files with the turnback MCP tools from this plugin. Always pass workspace set to the current project directory.

  1. Call list_turns with limit 5. If "$ARGUMENTS" names a turn ID, use it; otherwise use the newest turn. Tell the user which turn: its time, agent, prompt, and changed file count. If the user wants to keep part of the turn, call turn_steps and use the ref of the first step to undo as the target; that returns the files to just before that step. If the user only wants one file or folder back (for example one deleted several turns ago), call recover_file with its path and use the returned target and paths instead.
  2. Call restore with target and, if the user named files, paths. This call only returns a plan and a confirm_token; nothing is written yet.
  3. Show the plan: files to rewrite, delete, or recreate. Point out actions marked uncertain; those files may contain the user's own edits.
  4. Ask the user to confirm. Only after a clear yes, call restore again with the same arguments plus token set to confirm_token.
  5. Report restored, skipped, and failed files and the safety snapshot. Files you read earlier in this conversation may have changed: read them again before editing. The user can reverse this with the redo tool.

If the MCP tools are unavailable, run node "${CLAUDE_PLUGIN_ROOT}/dist/cli.js" undo --dry-run in the project directory, show the plan, and after confirmation run it again with --yes.

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.