How this skill is triggered — by the user, by Claude, or both
Slash command
/dev-phase-manager:checkpoint-progressThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Update checkpoint during execution, supporting pause and resume at any time.
Update checkpoint during execution, supporting pause and resume at any time.
Read docs/plans/.checkpoint.json:
checkpoint_file="docs/plans/.checkpoint.json"
if [ ! -f "$checkpoint_file" ]; then
echo "⚠️ Checkpoint file not found"
echo ""
echo "Please execute /checkpoint-plan first to create initial checkpoint"
exit 1
fi
Two methods to collect progress information:
Auto-detect completed tasks from git log:
# Get recent commit messages
recent_commits=$(git log --oneline -20 --grep="Task" --grep="feat:" --grep="fix:")
# Parse task numbers
# Example: "feat: complete Task 3 - Implement handlers"
# Extract: Task 3
If auto-detection fails, ask user:
Please provide current progress information:
Completed tasks (comma-separated, e.g., Task 1, Task 2, Task 3):
>
Current task being executed (e.g., Task 4):
>
Execution mode (subagent-driven or executing-plans):
>
Update docs/plans/.checkpoint.json:
{
"plan_file": "docs/plans/2026-02-22-mcp-server.md",
"phase": "execution",
"created_at": "2026-02-22T17:30:00+08:00",
"updated_at": "2026-02-22T18:15:00+08:00",
"completed_tasks": ["Task 1", "Task 2", "Task 3"],
"current_task": "Task 4",
"execution_mode": "subagent-driven",
"phase_name": "Phase 5 - MCP Server",
"notes": "Completed 3/10 tasks, continuing with Task 4"
}
Updated fields:
updated_at: Current timecompleted_tasks: List of completed taskscurrent_task: Current taskexecution_mode: Execution mode (if previously null)phase: Update to execution if startednotes: Update notesDisplay updated progress:
✅ Progress saved
Completed: 3/10 tasks (30%)
- Task 1: Setup MCP server structure
- Task 2: Define tool interfaces
- Task 3: Implement basic handlers
Current: Task 4 - Implement tool handlers
Execution mode: subagent-driven-development
Updated: 2026-02-22 18:15
Suggested next steps:
1. Continue current task
2. /mem-save - Save work memory to index (recommended)
3. /clear - Clean context (if needed)
4. /resume-plan - Resume execution (after clear)
/resume-plan
/subagent-driven-development
# ... executed 3 tasks ...
/checkpoint-progress
# → Auto-detect: Completed Task 1, 2, 3
# → Save progress
# Continue execution
# ... executed 2 more tasks ...
/checkpoint-progress
# → Auto-detect: Completed Task 1, 2, 3, 4, 5
# → Update progress
# During execution...
# Claude warns: Context usage 85%
/checkpoint-progress
# → Save current progress
/clear
/resume-plan
# → Resume from saved progress
# Working on Phase 5
/checkpoint-progress
# → Save Phase 5 progress
# Switch to urgent task
/start-phase "Hotfix - Critical Bug"
# ... handle urgent task ...
/end-phase
# Return to Phase 5
/resume-plan
# → Restore Phase 5 progress
Intelligently parse tasks from git log:
# Supported commit message formats:
# - "feat: complete Task 3 - Implement handlers"
# - "Task 3: Implement handlers"
# - "Complete Task 3"
# - "feat(mcp): Task 3 - handlers"
# Extraction rules:
# 1. Find commits containing "Task N"
# 2. Extract task number N
# 3. Sort by number
# 4. Generate completed task list
Validate progress reasonableness:
⚠️ Progress validation
Detected completed tasks: Task 1, Task 2, Task 4
Missing: Task 3
Possible reasons:
1. Task 3 commit message format is non-standard
2. Task 3 was actually skipped
Accept this progress? (y/n)
If n, will manually input progress
If phase stack exists, update corresponding phase progress:
# Update active phase in docs/dev/.phase_stack.json
{
"active_phases": [
{
"name": "Phase 5 - MCP Server",
"started_at": "2026-02-22T15:00:00+08:00",
"checkpoint": "docs/plans/.checkpoint.json",
"guide": "docs/dev/NEXT_SESSION_GUIDE.md",
"progress": "30%", # Added
"last_updated": "2026-02-22T18:15:00+08:00" # Added
}
]
}
Can create hooks to auto-prompt checkpoint at specific times:
# hooks/auto-checkpoint-reminder.yaml
name: auto-checkpoint-reminder
event: PostToolUse
tool: Bash
prompt: |
If git commit command executed successfully,
and commit message contains "Task" or "feat:" or "fix:",
prompt user to consider executing /checkpoint-progress to save progress.
Prompt format:
"💡 Tip: You can execute /checkpoint-progress to save current progress"
But this is optional, users can fully control when to checkpoint manually.
Does not modify third-party skills, checkpoint-progress runs independently:
subagent-driven-development (superpowers)
↓ Execute tasks
↓ git commit
↓
checkpoint-progress (user-defined)
↓ Read git log
↓ Update checkpoint
↓
Continue execution or clear
docs/plans/.checkpoint.jsondocs/dev/.phase_stack.json (optional).checkpoint.history.jsonnpx claudepluginhub uukuguy/dev-phase-manager --plugin dev-phase-managerSaves and resumes state for multi-phase commands like /debug, /epic, /feature, /implement, and /plan, enabling work to survive session interruptions.
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.