From bkit — AI Native Development OS
Creates and restores PDCA checkpoints for safe state rollback. Lists checkpoints, restores to a specific checkpoint or previous PDCA phase, and resets features to idle state.
How this skill is triggered — by the user, by Claude, or both
Slash command
/bkit:rollback [list|to|phase|reset] [target][list|to|phase|reset] [target]This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
> User-invocable skill for checkpoint management and PDCA state rollback.
User-invocable skill for checkpoint management and PDCA state rollback.
| 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 |
List all available checkpoints for the current or specified feature.
.bkit/checkpoints/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-1710842700000
Restore state to a specific checkpoint.
.bkit/checkpoints/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 stateSafety Rule: Rollback operations ALWAYS require user confirmation, even at L4 (Full-Auto). This is a destructive operation.
Rollback to the previous PDCA phase.
.bkit/state/pdca-status.jsonidle <- pm <- plan <- design <- do <- check <- act <- report <- archivedidle, display: "Already at initial state. Nothing to rollback."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 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 a feature to its initial (idle) state.
pdca-status.jsonstate-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.
| 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 |
| File | Purpose |
|---|---|
.bkit/checkpoints/cp-{timestamp}.json | Checkpoint metadata and state snapshot |
.bkit/state/pdca-status.json | Current PDCA status (modified on rollback) |
| 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 |
# List checkpoints
/rollback
# Restore to specific checkpoint
/rollback to cp-1710842700000
# Rollback to previous phase
/rollback phase
# Reset feature completely
/rollback reset user-auth
npx claudepluginhub popup-studio-ai/bkit-claude-code --plugin bkit6plugins reuse this skill
First indexed Jun 3, 2026
Manages a full PDCA (Plan-Do-Check-Act) cycle per feature with 9 phases: pm, plan, design, do, check, act, qa, report, archive. Supports multi-feature grouping via /sprint. Invoke with /pdca [action] [feature].
Rolls back to a previous git checkpoint tag while preserving lessons. Use when a change went wrong and you need to revert.
Saves and resumes state for multi-phase commands like /debug, /epic, /feature, /implement, and /plan, enabling work to survive session interruptions.