rollback
Skill605 starsChanged 3 months agoApache-2.0View on GitHub
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
10 other projects use a version of this.
Adopted by
Most recently taken up by
- synaptiai/agent-capability-standardtheir own version, first seen Nov 1, 2026
- harshanandak/forge-legacytheir own version, first seen Oct 17, 2026
- elfrost/ai-patchlabtheir own version, first seen Oct 13, 2026
- tejastn10/workbenchtheir own version, first seen Oct 13, 2026
- purpleeddy/claddingtheir own version, first seen Oct 11, 2026
- popup-studio-ai/bkit-claude-codeword for word, first seen Oct 8, 2026
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.
BlockSkillplan
Draft a TDD, PRD, or lightweight plan in the conversation without committing it.
Also in 4 projects that use this
AnthropicSkillstatus
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
AWSSkillship
Finalize dev work on an issue branch — update docs, push, and open a PR.
Also in 3 projects that use this
SentrySkillreview
Fixture review skill.
Also in 3 projects that use this
Other versions10 projects use a version of this.
Word for word · 1
- popup-studio-ai/bkit-claude-code★ 605100% same
Edited · 0
None found.
Wrote their own version · 9
- suboss87/FDEOps★ 940same name
- ww-w-ai/bkit-gemini★ 66same name
- nahid-sparktales/agent-dispatcher★ 59same name
- purpleeddy/cladding★ 16same name
- synaptiai/agent-capability-standard★ 6same name
- harshanandak/forge-legacy★ 4same name
- elfrost/ai-patchlab★ 1same name
- tejastn10/workbench★ 1same name
- kapadias/nonna★ 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 repository45 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- auditSkill
- bkend-authSkill
- bkend-cookbookSkill
- bkend-dataSkill
- bkend-quickstartSkill
- bkend-storageSkill
- bkit-evalsSkill
- bkit-exploreSkill
- bkit-rulesSkill
- bkitSkill
- bkit-templatesSkill
- btwSkill
- cc-version-analysisSkill
- claude-code-learningSkill
- code-reviewSkill
- controlSkill
- deploySkill
- desktop-appSkill
- development-pipelineSkill
- dynamicSkill
- enterpriseSkill
- mobile-appSkill
- pdca-batchSkill
- pdca-fast-trackSkill
- pdcaSkill
- pdca-watchSkill
- phase-1-schemaSkill
- phase-2-conventionSkill
- phase-3-mockupSkill
- phase-4-apiSkill
- phase-5-design-systemSkill
- phase-6-ui-integrationSkill
- phase-7-seo-securitySkill
- phase-8-reviewSkill
- phase-9-deploymentSkill
- plan-plusSkill
- pm-discoverySkill
- qa-phaseSkill
- skill-createSkill
- skill-statusSkill
- sprintSkill
- starterSkill
- zero-script-qaSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
1
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
- Very specific: line 45
Read checkpoint metadata from .bkit/checkpoints/
- Distinctive: line 82
Read the checkpoint metadata and saved state
- Very specific: line 100
Read current feature state from .bkit/state/pdca-status.json
- Very specific: line 103
If current phase is idle, display: "Already at initial state.
“Common” is measured: kept by at least 6 in 10 of the 8 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.
Files
Rollback Skill
User-invocable skill for checkpoint management and PDCA state rollback.
Arguments
| Argument | Description | Example |
| (none) | List available checkpoints (same as list) | /rollback |
list | List all available checkpoints | /rollback list |
to <checkpoint-id> | Restore to a specific checkpoint | /rollback to cp-1710842700000 |
phase | Rollback 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.
- Read checkpoint metadata from
.bkit/checkpoints/ - Filter by current active feature (or show all if no active feature)
- Sort by timestamp (newest first)
- Display formatted checkpoint list
Checkpoint Metadata Schema:
{
"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-1710842700000to <checkpoint-id>
Restore state to a specific checkpoint.
- Validate the checkpoint ID exists in
.bkit/checkpoints/ - Read the checkpoint metadata and saved state
- Display what will be restored (phase, files, status)
- Require user confirmation via AskUserQuestion (always, regardless of automation level)
- On confirmation:
a. Create a safety checkpoint of current state (before rollback)
b. Restore
pdca-status.jsonto the checkpoint's saved state c. Restore any saved file snapshots d. Write audit log:checkpoint_restorede. Display confirmation with restored state - 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.
- Read current feature state from
.bkit/state/pdca-status.json - Determine previous phase using the PDCA phase order:
idle <- pm <- plan <- design <- do <- check <- act <- report <- archived - If current phase is
idle, display: "Already at initial state. Nothing to rollback." - Display the phase transition that will occur
- Require user confirmation via AskUserQuestion
- On confirmation:
a. Create auto-checkpoint of current state
b. Use
state-machine.transition()withROLLBACKevent c. Updatepdca-status.jsonwith previous phase d. Write audit log:phase_rollbacke. Display: "Rolled back from {current} to {previous}"
Phase Rollback Map:
| Current Phase | Rolls Back To |
| pm | idle |
| plan | pm (or idle if PM was skipped) |
| design | plan |
| do | design |
| check | do |
| act | check |
| report | check |
| archived | report |
reset <feature>
Reset a feature to its initial (idle) state.
- Validate the feature exists in
pdca-status.json - Display current feature state and what will be lost
- Require user confirmation via AskUserQuestion with warning: "This will reset ALL PDCA progress for {feature}. Documents in docs/ will NOT be deleted."
- On confirmation:
a. Create auto-checkpoint of current state
b. Use
state-machine.transition()withRESETevent c. Clear feature from active features list d. Reset all metrics (matchRate, iterationCount, etc.) e. Write audit log:feature_resetf. 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
| Type | Trigger | Description |
auto | Phase transition (Design->Do) | Automatic checkpoint at key transitions |
manual | User command | User-created save point |
phase_transition | Any phase change | Lightweight state snapshot |
pre_rollback | Before rollback | Safety checkpoint before destructive operation |
State Files
| File | Purpose |
.bkit/checkpoints/cp-{timestamp}.json | Checkpoint metadata and state snapshot |
.bkit/state/pdca-status.json | Current PDCA status (modified on rollback) |
Module Dependencies
| Module | Function | Usage |
lib/control/checkpoint-manager.js | listCheckpoints() | List available checkpoints |
lib/control/checkpoint-manager.js | createCheckpoint() | Create new checkpoint |
lib/control/checkpoint-manager.js | restoreCheckpoint() | Restore to checkpoint |
lib/pdca/state-machine.js | transition() | Execute ROLLBACK/RESET events |
lib/audit/audit-logger.js | writeAuditLog() | Record rollback operations |
Usage Examples
# List checkpoints
/rollback
# Restore to specific checkpoint
/rollback to cp-1710842700000
# Rollback to previous phase
/rollback phase
# Reset feature completely
/rollback reset user-authDoes 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
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.

