agentleFS
ww-w-aiww-w-ai/bkit-gemini/skills/rollback/SKILL.md

rollback

Skill66 starsChanged 7 months agoApache-2.0View on GitHub

Manage checkpoints and rollback for safe recovery. Create restore points before risky operations and restore to previous states when needed.

10 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use plan, status and 2 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • BlockSkill

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 4 projects that use this

  • AnthropicSkill

    status

    Case status summary by audience — client-facing (plain language), internal (for the professor), or court-ready (formal caption format per local rules). Same facts, different framing and depth. Use when a student needs to update the client, brief the professor, or prepare a court status report.

    Also in 3 projects that use this

  • AWSSkill

    ship

    Finalize dev work on an issue branch — update docs, push, and open a PR.

    Also in 3 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Call bkit_checkpoint with action create

    line 63
  2. Very specific:

    Call bkit_checkpoint with action restore and the checkpoint ID

    line 77
  3. Distinctive:

    Before PDCA iterate phase

    line 125
  4. Distinctive:

    Before bulk file operations (10+ files)

    line 126
  5. Distinctive:

    Always create backup: before restoring (double safety net)

    line 143

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

Rollback Skill

Create, list, and restore checkpoints for safe recovery

Commands

CommandDescriptionExample
/rollback createCreate a new checkpoint/rollback create "before refactor"
/rollback listList all checkpoints/rollback list
/rollback restore [id]Restore to a checkpoint/rollback restore chk-20260409-143000
/rollback diff [id]Show changes since checkpoint/rollback diff chk-20260409-143000

MCP Integration

This skill uses the bkit_checkpoint MCP tool to manage checkpoints.

How to Execute

Create Checkpoint

  1. Call bkit_checkpoint with action create
  2. Optionally include a label for easy identification
  3. The tool snapshots the current state of tracked files
  4. Returns a checkpoint ID (format: chk-YYYYMMDD-HHMMSS)
  5. Display confirmation with the checkpoint ID

List Checkpoints

  1. Call bkit_checkpoint with action list
  2. Display checkpoints in reverse chronological order
  3. Show: ID, timestamp, label, file count, size

Restore Checkpoint

  1. Call bkit_checkpoint with action restore and the checkpoint ID
  2. Important: Automatically create a new checkpoint before restoring (safety net)
  3. Restore files to the checkpoint state
  4. Display list of files changed/restored
  5. Warn about any files that were added after the checkpoint (they will remain)

Show Diff

  1. Call bkit_checkpoint with action diff and the checkpoint ID
  2. Compare current state against the checkpoint
  3. Show added, modified, and deleted files
  4. Display line-level diff for modified files

Checkpoint Storage

Checkpoints are stored in .bkit/checkpoints/:

.bkit/checkpoints/
  chk-20260409-143000/
    manifest.json    # List of files and their hashes
    label.txt        # Optional label
    files/           # Snapshot of tracked files

Manifest Format

{
  "id": "chk-20260409-143000",
  "timestamp": "2026-04-09T14:30:00Z",
  "label": "before refactor",
  "files": [
    {
      "path": "src/api/auth.js",
      "hash": "sha256:abc123...",
      "size": 2456
    }
  ],
  "totalFiles": 12,
  "totalSize": 34567
}

Auto-Checkpoint Triggers

Checkpoints are automatically created by hooks in these situations:

  • Before deployment (/deploy)
  • Before PDCA iterate phase
  • Before bulk file operations (10+ files)

Output Format

## Checkpoint Created

- **ID**: chk-20260409-143000
- **Label**: before refactor
- **Files**: 12 tracked files
- **Size**: 34.5 KB

Use `/rollback restore chk-20260409-143000` to restore.

Safety Rules

  1. Always create backup before restoring (double safety net)
  2. Never delete checkpoints automatically - user must manage
  3. Warn on old checkpoints - flag if restoring to a checkpoint older than 24 hours
  4. Show diff first - recommend /rollback diff before /rollback restore

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.