Skip to content
Development
Skill

/claude-vigil

File checkpoint and recovery — auto-quicksaves before destructive commands, manual checkpoints for safe rollback

From plugin
claude-emporium
806 skills8 commands

Claude Code

$ npx -y skills add Vvkmnn/claude-emporium --skill claude-vigil --agent claude-code

SKILL.md

claude-vigil.SKILL.md
name: claude-vigil
description: File checkpoint and recovery — auto-quicksaves before destructive commands, manual checkpoints for safe rollback
triggers: [PreToolUse]

Vigil Plugin

File recovery. Saves checkpoints before dangerous operations, diffs changes, restores files safely.

Hooks

| Hook | When | Action | |------|------|--------| | **PreToolUse(Bash)** | Destructive command detected | Auto-quicksaves affected files (rm, mv, git reset, etc.) |

Token cost: 0 on safe commands, ~30-50 on destructive. The regex matches: `rm`, `rmdir`, `mv`, `sed -i`, `perl -i`, `git checkout/reset/clean/restore`, output redirects.

Commands

| Command | Description | |---------|-------------| | `/save-vigil <name> [files]` | Create a named file checkpoint | | `/restore-vigil [name]` | Restore files from a checkpoint |

Workflows

Checkpoint (standalone)

1. `vigil_save(name: "before-refactor", files: ["src/auth.ts", "src/middleware.ts"])` 2. Make changes safely 3. If something breaks: `vigil_restore(name: "before-refactor")`

Checkpoint (with siblings)

1. `vigil_save(name: "before-refactor", files: [...])` 2. If **praetorian** active: also `praetorian_compact(type: "decisions", ...)` to save the reasoning 3. Make changes — both files and context are now protected 4. If something breaks:

  • `vigil_restore(name: "before-refactor")` — restore files
  • `praetorian_restore("before-refactor")` — restore context

Recovery (standalone)

1. `vigil_list()` — see available checkpoints 2. `vigil_diff(name: "checkpoint")` — preview what would change 3. `vigil_restore(name: "checkpoint")` — restore files 4. Optionally: `vigil_delete(name: "checkpoint")` — clean up

Recovery (with siblings)

1. `vigil_list()` — see available checkpoints 2. `vigil_diff(name: "checkpoint")` — preview changes 3. If **historian** active: `find_file_context("filename")` to understand what changed and why 4. `vigil_restore(name: "checkpoint")` — restore files 5. If **praetorian** active: restore matching compaction for context

Sibling Synergy

| Sibling | Value | How | |---------|-------|-----| | **Praetorian** | Context saved alongside files | Pair vigil checkpoints with praetorian compactions for full state recovery | | **Historian** | File change context from history | `find_file_context()` explains what happened between checkpoint and now |

MCP Tools Reference

| Tool | Purpose | |------|---------| | `vigil_save` | Create named checkpoint (SHA-256 + gzip dedup) | | `vigil_list` | List available checkpoints with metadata | | `vigil_diff` | Preview changes since checkpoint | | `vigil_restore` | Restore files from checkpoint | | `vigil_delete` | Remove a checkpoint and free storage |

Storage

Content-addressable at `.claude/vigil/`. 3 named slots + 1 rotating `~quicksave`.

Requires

claude mcp add vigil -- npx claude-vigil-mcp
Read more
@vvkmnn
Ships withclaude-emporium

🏛 [UNDER CONSTRUCTION] A (roman) claude plugin marketplace

Stars on GitHub

Momentum

stars in total
80
Star history of Vvkmnn/claude-emporium on GitHub, a chart by star-history.com

Other skills on claude-emporium.

claude-gladiator

claude-gladiator

Continuous learning — hooks observe failures and prompt reflection, sibling synergy deepens analysis with history and tool…

claude-oracle

claude-oracle

Automatic tool discovery across 17 sources — hooks search before planning and after errors, siblings avoid redundant searches

claude-praetorian

claude-praetorian

Context preservation with cross-session memory — hooks prompt compaction at high-impact moments, siblings enrich what gets saved

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc11d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about claude-vigil.

Which coding agents can use claude-vigil?
claude-vigil installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.