Skip to content
Back to skills

Undo

ASecurity

Show the guard's snapshots of this project and put one back, to bring back files an earlier command deleted or changed.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 24, 2026
ai-agentspythongoshellbashnodegitdatabase

Works with

  • claude code

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add boxdawn/guard --skill undo --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Undo?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Undo
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/boxdawn-undo/badge)](https://www.skillsdirectory.com/skills/boxdawn-undo)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: undo
description: Show the guard's snapshots of this project and put one back, to bring back files an earlier command deleted or changed.
disable-model-invocation: true
allowed-tools: Bash("${CLAUDE_PLUGIN_DATA}/current/bdxguard.exe" undo list *)
---

Boxdawn guard keeps a snapshot of the project's files before each Bash or PowerShell command. Help the person bring files back from one.

The guard's program is `${CLAUDE_PLUGIN_DATA}/current/bdxguard.exe` (the same name on every system). Run it with the Bash tool (or PowerShell, with `&` in front), with the path in double quotes exactly as written here, and give it the folder Claude Code was started in as the last word, in double quotes. Run nothing else on the same line.

1. List the snapshots:
   `"${CLAUDE_PLUGIN_DATA}/current/bdxguard.exe" undo list "<project folder>"`
   Each numbered row is the project as it was just before the command shown on it. `NO SNAPSHOT` rows are commands that ran without one. Show the person the rows that matter, in their language, and say which one you would pick and why. If they named what they lost ($ARGUMENTS), pick the row just before the command that lost it.
2. Ask the person which number to go back to. Do not restore before they answer.
3. Restore it:
   `"${CLAUDE_PLUGIN_DATA}/current/bdxguard.exe" undo restore <n> "<project folder>"`
   The guard asks the person to approve this line; that is expected. If it is refused instead (a mode that does not ask), do not write the line another way: give the person the line to run themselves, with `!` in front. Report what the command printed, in their language. Going back takes a snapshot of the state just before it, so a restore can itself be undone with the number it prints.

If the list says there are no snapshots, or the program is not there, say so plainly. Snapshots are on by default and are turned off with `undo` in `/plugin`; they cover files inside the project folder only, not its .git folder, node_modules and similar folders, Python virtual environments the project does not track, files over 50 MB, databases or anything outside the folder.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.