What problem does it solve?
This Skill provides a structured process for completing development work, ensuring all tests pass and offering clear options for integrating your changes (merge, PR, discard) while handling necessary cleanup, preventing accidental data loss or broken merges.
Core Features & Use Cases
- Mandatory Test Verification: Ensures all tests pass before any integration options are presented, preventing broken code from entering the main branch.
- Structured Integration Options: Presents 4 clear choices: merge locally, create PR, keep branch, or discard work, guiding you through the final steps.
- Automated Cleanup: Handles Git branch deletion and worktree removal based on the chosen option, keeping your repository tidy.
- Use Case: After completing a feature or bug fix, use this skill to verify your work, choose how to integrate it into the main codebase, and automatically clean up your development environment, ensuring a smooth transition.
Quick Start
1. Verify Tests
npm test # or cargo test, pytest, go test ./...
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 Chosen Option (e.g., Merge Locally)
git checkout main
git pull
git merge feature/my-feature
npm test # verify merged result
git branch -d feature/my-feature