What problem does it solve?
After completing development work, deciding how to integrate it (merge, PR, discard) and ensuring a clean state can be error-prone. This skill guides you through verifying tests, presenting structured options, and executing the chosen workflow, ensuring a smooth and reliable completion process.
Core Features & Use Cases
- Mandatory Test Verification: Ensures all tests pass before offering integration options, preventing broken merges.
- Structured Options: Presents four clear choices: merge locally, push and create PR, keep as-is, or discard work.
- Automated Cleanup: Handles branch deletion and worktree removal based on your choice.
- Use Case: After finishing a new feature, this skill will run your tests, confirm they pass, then ask if you want to merge to
main, create a Pull Request, or discard the work, and execute your choice.
Quick Start
1. Verify Tests:
npm test
# If tests pass, proceed. If not, fix them.
2. Present Options:
Implementation complete. What would you like to do?
1. Merge back to <base-branch> locally
2. Push and create a Pull Request
3. Keep the branch as-is (I'll handle it later)
4. Discard this work
3. Execute Choice: (e.g., for Option 1)
git checkout <base-branch>
git pull
git merge <feature-branch>
<test command>
git branch -d <feature-branch>
git worktree remove <worktree-path>