Merge completed plan to main, cleanup feature branch, and mark plan as done
Merge a completed plan to main and cleanup.
Usage: "finish plan <id>"
When the user asks to finish a plan:
ls plan/<id>-*.md
Read the plan file and verify:
[x] completegit status
git branch --show-current
Ensure:
feature/<id>-<title>git checkout main
git pull origin main
Use squash merge to combine all commits:
git merge --squash feature/<id>-<title>
git commit -m "feat: <title> (#<id>)"
Use the plan's objective to write a meaningful commit message.
git branch -d feature/<id>-<title>
Edit the plan file:
**Status**: in-progress to **Status**: doneUser: "finish plan 001"
Assistant:
plan/001-qr-code.md[x]git checkout main
git pull origin main
git merge --squash feature/001-qr-code
git commit -m "feat: add qr code generation support (#001)"
git branch -d feature/001-qr-code
doneIf some tasks are not marked complete:
Plan 001-qr-code has incomplete tasks:
Step 2: Template Integration
- [ ] Add positioning and sizing support
Step 3: Documentation (not started)
- [ ] Add QR code usage examples
- [ ] Update API documentation
Do you want to:
1. Finish anyway (merge current progress)
2. Cancel and complete remaining tasks first
Wait for user decision.
git pull on main firstThis skill merges locally only. The user should push when ready:
git push origin main
Inform the user they can push when ready.
git pulldone