Rollback logo

Rollback

Organization
ww-w-ai
rollback

Manage PDCA checkpoints and rollback — create, list, restore for safe recovery. Rollback events are recorded via lib/audit/audit-logger ACTION_TYPES.rollback_executed. For sprint-level recovery, individual feature rollbacks may be triggered from within sprint phases (sprint itself is forward-only — terminal state is `archived`, not rolled back; v2.1.13). Triggers: rollback, checkpoint, restore, undo

Overview

Publisherww-w-ai
Repositorybkit-claude-code
Skill namerollback
Stars
601
Forks
154
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by ww-w-ai on GitHub. Read the source before you install it.

Installation

Install the Rollback AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ww-w-ai/bkit-claude-code.git /tmp/bkit-claude-code
mkdir -p .claude/skills
cp -r /tmp/bkit-claude-code/skills/rollback .claude/skills/rollback
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Rollback in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Rollback on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Rollback is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Rollback Skill

User-invocable skill for checkpoint management and PDCA state rollback.

Arguments

ArgumentDescriptionExample
(none)List available checkpoints (same as list)/rollback
listList all available checkpoints/rollback list
to <checkpoint-id>Restore to a specific checkpoint/rollback to cp-1710842700000
phaseRollback to previous PDCA phase/rollback phase
reset <feature>Reset feature to initial (idle) state/rollback reset user-auth

Action Details

list (Default)

List all available checkpoints for the current or specified feature.

  1. Read checkpoint metadata from .bkit/checkpoints/
  2. Filter by current active feature (or show all if no active feature)
  3. Sort by timestamp (newest first)
  4. Display formatted checkpoint list

Checkpoint Metadata Schema:

json
{
  "id": "cp-1710842700000",
  "feature": "user-auth",
  "phase": "design",
  "type": "auto",
  "timestamp": "2026-03-19T10:30:00.000Z",
  "description": "Auto-checkpoint before Do phase",
  "pdcaStatus": { "phase": "design", "matchRate": 0, "iterationCount": 0 },
  "files": ["docs/02-design/features/user-auth.design.md"]
}

Output Format:

--- Checkpoints: user-auth ------------------------
ID                    Phase    Type   Date                Description
cp-1710842700000      design   auto   2026-03-19 10:30   Before Do phase
cp-1710839100000      plan     auto   2026-03-19 09:25   Before Design phase
cp-1710835500000      idle     manual 2026-03-19 08:15   Manual save point
---------------------------------------------------
Total: 3 checkpoints

Usage: /rollback to cp-1710842700000

to

Restore state to a specific checkpoint.

  1. Validate the checkpoint ID exists in .bkit/checkpoints/
  2. Read the checkpoint metadata and saved state
  3. Display what will be restored (phase, files, status)
  4. Require user confirmation via AskUserQuestion (always, regardless of automation level)
  5. On confirmation: a. Create a safety checkpoint of current state (before rollback) b. Restore pdca-status.json to the checkpoint's saved state c. Restore any saved file snapshots d. Write audit log: checkpoint_restored e. Display confirmation with restored state
  6. On rejection: Cancel and display current state

Safety Rule: Rollback operations ALWAYS require user confirmation, even at L4 (Full-Auto). This is a destructive operation.

phase

Rollback to the previous PDCA phase.

  1. Read current feature state from .bkit/state/pdca-status.json
  2. Determine previous phase using the PDCA phase order: idle <- pm <- plan <- design <- do <- check <- act <- report <- archived
  3. If current phase is idle, display: "Already at initial state. Nothing to rollback."
  4. Display the phase transition that will occur
  5. Require user confirmation via AskUserQuestion
  6. On confirmation: a. Create auto-checkpoint of current state b. Use state-machine.transition() with ROLLBACK event c. Update pdca-status.json with previous phase d. Write audit log: phase_rollback e. Display: "Rolled back from {current} to {previous}"

Phase Rollback Map:

Current PhaseRolls Back To
pmidle
planpm (or idle if PM was skipped)
designplan
dodesign
checkdo
actcheck
reportcheck
archivedreport

reset

Reset a feature to its initial (idle) state.

  1. Validate the feature exists in pdca-status.json
  2. Display current feature state and what will be lost
  3. Require user confirmation via AskUserQuestion with warning: "This will reset ALL PDCA progress for {feature}. Documents in docs/ will NOT be deleted."
  4. On confirmation: a. Create auto-checkpoint of current state b. Use state-machine.transition() with RESET event c. Clear feature from active features list d. Reset all metrics (matchRate, iterationCount, etc.) e. Write audit log: feature_reset f. Display: "Feature {feature} reset to idle state. PDCA documents preserved in docs/."

Important: Reset does NOT delete documents from docs/. It only resets the PDCA status tracking. Use /pdca cleanup to remove archived status entries.

Checkpoint Types

TypeTriggerDescription
autoPhase transition (Design->Do)Automatic checkpoint at key transitions
manualUser commandUser-created save point
phase_transitionAny phase changeLightweight state snapshot
pre_rollbackBefore rollbackSafety checkpoint before destructive operation

State Files

FilePurpose
.bkit/checkpoints/cp-{timestamp}.jsonCheckpoint metadata and state snapshot
.bkit/state/pdca-status.jsonCurrent PDCA status (modified on rollback)

Module Dependencies

ModuleFunctionUsage
lib/control/checkpoint-manager.jslistCheckpoints()List available checkpoints
lib/control/checkpoint-manager.jscreateCheckpoint()Create new checkpoint
lib/control/checkpoint-manager.jsrestoreCheckpoint()Restore to checkpoint
lib/pdca/state-machine.jstransition()Execute ROLLBACK/RESET events
lib/audit/audit-logger.jswriteAuditLog()Record rollback operations

Usage Examples

bash
# List checkpoints
/rollback

# Restore to specific checkpoint
/rollback to cp-1710842700000

# Rollback to previous phase
/rollback phase

# Reset feature completely
/rollback reset user-auth

Frequently asked questions

What does the Rollback AI skill do?

Manage PDCA checkpoints and rollback — create, list, restore for safe recovery. Rollback events are recorded via lib/audit/audit-logger ACTION_TYPES.rollback_executed. For sprint-level recovery, individual feature rollbacks may be triggered from within sprint phases (sprint itself is forward-only — terminal state is `archived`, not rolled back; v2.1.13). Triggers: rollback, checkpoint, restore, undo

Why use Rollback on TypingMind?

Because you install it once and use it with any model. Rollback is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Rollback in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ww-w-ai/bkit-claude-code/tree/main/skills/rollback. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Rollback?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Rollback?

As many as you like. As long as a model supports skills, you can use Rollback with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Rollback AI skill free?

Yes. It is published on GitHub by ww-w-ai under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇