skills/rollback/SKILL.md
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, 롤백, 체크포인트, 복원.
npx skillsauth add popup-studio-ai/bkit-claude-code rollbackInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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
testing
Sprint Management — generic sprint capability for ANY bkit user. 16 sub-actions: init, start, status, watch, phase, iterate, qa, report, archive, list, feature, pause, resume, fork, help, master-plan. Triggers: sprint, sprint start, sprint init, sprint status, sprint list, 스프린트, 스프린트 시작, 스프린트 상태, スプリント, スプリント開始, スプリント状態, 冲刺, 冲刺开始, 冲刺状态, sprint, iniciar sprint, estado sprint, sprint, demarrer sprint, statut sprint, Sprint, Sprint starten, Sprint Status, sprint, avviare sprint, stato sprint, master plan, multi-sprint plan, sprint master plan, 마스터 플랜, 멀티 스프린트 계획, 스프린트 마스터 플랜, マスタープラン, マルチスプリント計画, スプリントマスタープラン, 主计划, 多冲刺计划, 冲刺主计划, plan maestro, plan multi-sprint, plan maestro sprint, plan maître, plan multi-sprint, plan maître sprint, Masterplan, Multi-Sprint-Plan, Sprint-Masterplan, piano principale, piano multi-sprint, piano principale sprint.
tools
CC CLI version upgrade impact analysis — research changes, analyze bkit impact, generate report. Triggers: cc-version-analysis, CC upgrade, version analysis, CC 버전 분석, 버전 영향.
testing
QA Phase execution — L1-L5 test planning, generation, execution, and reporting for a single feature. For sprint-level QA (7-Layer dataFlowIntegrity / S1 gate across multiple features) use /sprint qa <sprintId> which delegates to sprint-qa-flow agent (v2.1.13). Triggers: qa phase, QA test, qa run, QA 실행, QAフェーズ, QA阶段, fase QA, phase QA, QA-Phase, fase QA.
data-ai
PM Agent Team — automated product discovery, strategy, and PRD generation with 4 PM agents (for a single feature). For multi-feature initiatives with shared scope/budget/timeline, use /sprint master-plan which generates a sprint-level PRD via sprint-master-planner agent (v2.1.13). Triggers: pm, PRD, product discovery, PM 분석, 제품 기획, PM analysis.