From rkit
Manage checkpoints and rollback PDCA state. Create, list, and restore checkpoints for safe recovery during PDCA cycles. Use proactively when user wants to undo a phase transition, restore to a checkpoint, or reset a feature to its initial state. Triggers: rollback, checkpoint, undo, restore, revert, reset, recovery, 롤백, 체크포인트, 되돌리기, 복원, 복구, 초기화, ロールバック, チェックポイント, 元に戻す, 復元, 復旧, リセット, 回滚, 检查点, 撤销, 恢复, 还原, 重置, revertir, punto de control, deshacer, restaurar, recuperar, reiniciar, restaurer, point de controle, annuler, retablir, recuperer, reinitialiser, Rollback, Kontrollpunkt, ruckgangig, wiederherstellen, zurucksetzen, rollback, checkpoint, annullare, ripristinare, recuperare, reimpostare Do NOT use for: PDCA phase execution, code review, or automation control.
npx claudepluginhub solitasroh/rkit --plugin rkitThis skill is limited to using the following tools:
> User-invocable skill for checkpoint management and PDCA state rollback.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
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.
.rkit/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.
.rkit/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.
.rkit/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 |
|---|---|
.rkit/checkpoints/cp-{timestamp}.json | Checkpoint metadata and state snapshot |
.rkit/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