Skip to content
finish-phase logo

Finish Phase

finish-phase

Manually complete a phase and update phase.md. Use when you want to manually review/edit phase completion, or when auto-detection didn't trigger.

SKILL.md

Full skill instructions

Finish Phase

Manually complete a phase by updating its status and scope checklist. Use this when:

  • You want to manually review/​edit scope checklist before marking complete
  • Auto-detection in /​finish-task didn't trigger (e.g., already on main branch)
  • You want to add notes to the phase's Notes section

Usage

/​finish-phase 03              # Complete phase 03
/​finish-phase 03 --dry-run    # Preview changes without applying

Arguments

  • $1 - Phase number (e.g., 03, 3, phase-03)
  • --dry-run - Preview changes without modifying files
  • $ARGUMENTS - Full arguments passed to the skill

Process

Step 1: Parse Arguments

Extract phase number from arguments:

  • Phase number: 03, 3, or phase-03 → normalize to 03
# Extract phase number
PHASE_NUM=$(echo "$ARGUMENTS" | grep -oE '[0-9]+' | head -1)
PHASE_NUM=$(printf "%02d" "$PHASE_NUM")

Step 2: Locate Phase Directory

Find the phase specification file:

PHASE_DIR=$(find specification -maxdepth 1 -type d -name "phase-${PHASE_NUM}-*" | head -1)

If not found, show available phases and exit.

Step 3: Check Task Status

Read all tasks in the phase and check their status:

for task_file in "$PHASE_DIR/​tasks/"task-*.md; do
    # Extract status from each task
done

Report:

  • Total tasks
  • Completed tasks
  • Pending/​in-progress tasks (warn if any)

If there are incomplete tasks, ask user for confirmation:

"Phase has X incomplete tasks. Are you sure you want to mark the phase as complete?"

Step 4: Preview Changes

Show what will be changed:

  1. Phase Status - Current → ✅ completed
  2. Scope Checklist - Which items will be checked off based on task names

Display preview:

📋 Phase XX Completion Preview

Status: ⚪ pending → ✅ completed

Scope checklist updates:
- [x] SharedKernel package (matched: task-01 SharedKernel)
- [x] Contracts package (matched: task-02 Contracts)
- [ ] Some other item (no match found)

Tasks: 5/​5 completed

Apply changes? (y/​n)

Step 5: Apply Changes

If user approves (or --dry-run not specified):

  1. Update phase.md status to ✅ completed
  2. Check off matched scope items
  3. Optionally ask if user wants to add notes

Step 6: Commit Changes

git add "$PHASE_DIR/​phase.md"
git commit -m "[${PHASE_NUM}-00] docs: mark phase as completed" --no-verify

Step 7: Final Report

✅ Phase XX marked as completed!

Updated:
- Status: ✅ completed
- Scope: X/​Y items checked

Git commit: [XX-00] docs: mark phase as completed

Next steps:
- /​task-status - see remaining phases
- /​start-task XX - start next phase's first task

Manual Scope Editing

If scope matching isn't accurate, inform user:

"Some scope items couldn't be automatically matched. You can manually edit the phase.md file to check them off."

Offer to open the file:

"Would you like me to show you the scope section for manual review?"

Error Handling

ErrorMessage
Phase not found"Phase XX not found. Available: phase-01, phase-02..."
Already completed"Phase XX is already marked as completed."
No tasks exist"Phase XX has no tasks. Create tasks first with /​phase-breakdown XX"

Safety Rules

  1. NEVER mark phase complete if user declines after incomplete task warning
  2. ALWAYS show preview before making changes
  3. ALWAYS commit changes after modifying phase.md
  4. NEVER modify task files (only phase.md)

Example Session

User: /​finish-phase 01

Claude: 📂 Found phase: specification/​phase-01-foundation/​phase.md

Checking tasks...
- task-01: ✅ completed
- task-02: ✅ completed
- task-03: ✅ completed
- task-04: ✅ completed
- task-05: ✅ completed

All 5 tasks completed!

📋 Phase 01 Completion Preview

Status: ⚪ pending → ✅ completed

Scope checklist updates:
- [x] SharedKernel package (matched: task-01)
- [x] Contracts package (matched: task-02)
- [x] EShop.Common (matched: task-05)

Apply changes? (y/​n)

User: y

Claude: ✅ Phase 01 marked as completed!

Committed: [01-00] docs: mark phase as completed

Next steps:
- /​task-status - see remaining phases
- /​phase-breakdown 02 - prepare next phase

More Productivity & Planning skills

brainstorming logo
Productivity & Planning

brainstorming

Structured design dialogue that validates ideas before implementation begins.

295.4K 385.7K
View
ui-ux-pro-max logo
Productivity & Planning

ui-ux-pro-max

Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.

133.1K 383.9K
View
writing-plans logo
Productivity & Planning

writing-plans

Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.

295.4K 268K
View
using-superpowers logo
Productivity & Planning

using-superpowers

Introduction to the obra skills system with mandatory skill invocation rules and best practices.

295.4K 259.8K
View
executing-plans logo
Productivity & Planning

executing-plans

Execute a written implementation plan with critical review and task checkpoints.

295.4K 229.1K
View
dispatching-parallel-agents logo
Productivity & Planning

dispatching-parallel-agents

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View
using-git-worktrees logo
Productivity & Planning

using-git-worktrees

Isolated git worktrees with smart directory selection and safety verification.

295.4K 205.2K
View
webapp-testing logo
Productivity & Planning

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

179.7K 170.6K
View
content-strategy logo
Productivity & Planning

content-strategy

Plan searchable and shareable content that drives traffic, builds authority, and generates leads.

53.3K 150.9K
View
repo-intake-and-plan logo
Productivity & Planning

repo-intake-and-plan

README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.

497 139.6K
View
marketing-ideas logo
Productivity & Planning

marketing-ideas

Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.

53.3K 137.2K
View
site-architecture logo
Productivity & Planning

site-architecture

Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.

53.3K 112.8K
View

Productivity AI tools

Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View
SaveDay logo
Productivity

SaveDay

Capture, organize, and utilize your knowledge effortlessly.

Free
View
Any Summary logo
Productivity

Any Summary

Instant Summaries of Audio & Video Interviews with AnySummary

Freemium
View
M
Productivity

Map This

Transform PDFs into engaging mind maps.

Freemium
View
ChatPDF logo
Productivity

ChatPDF

Chat with any PDF instantly

Free
View
I
Productivity

intellisay

Create an optimal daily plan using your voice

Paid
View
A
Productivity

Aurora AI

A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.

Paid
View
AskYourPDF logo
Productivity

AskYourPDF

AskYourPDF Pricing Plans: Tailored to Your Needs

Free
View