finishing-a-development-branch
Complete Git Branches with Confidence
Également disponible depuis: CodingCossack,ZhanlinCui,Cycleaddict,davila7,DYAI2025,Cygnusfear,obra
This skill automates the final steps of feature development by verifying tests pass, presenting clear merge/PR options, and executing the chosen workflow safely.
Télécharger le ZIP du skill
Importer dans Claude
Allez dans Paramètres → Capacités → Skills → Importer un skill
Activez et commencez à utiliser
Tester
Utilisation de "finishing-a-development-branch". I'm done with my feature. Can you help me finish this branch?
Résultat attendu:
Running test suite...
✓ All tests pass (42 passed, 0 failed)
Implementation complete. What would you like to do?
1. Merge back to main locally
2. Push and create a Pull Request
3. Keep the branch as-is (I'll handle it later)
4. Discard this work
Which option?
Utilisation de "finishing-a-development-branch". Option 2 - create a PR
Résultat attendu:
✓ Pushed branch 'feature/add-user-auth'
✓ Created PR #42: Add user authentication
✓ Removed worktree at '/Users/dev/project/.git/worktrees/feature-add-user-auth'
Branch complete! Pull request created and worktree cleaned up.
Audit de sécurité
SûrAll static findings are false positives. The 23 external command detections are legitimate git operations (checkout, branch, merge, push, worktree) that form the core functionality of this git workflow skill. The 2 filesystem detections are standard shell redirection and git worktree management. The high-severity crypto flags are false positives from text pattern misidentification.
Facteurs de risque
⚙️ Commandes externes (6)
📁 Accès au système de fichiers (2)
Score de qualité
Ce que vous pouvez construire
Complete a feature branch
After finishing implementation tasks, use this skill to cleanly merge or PR the completed work
Clean up development worktrees
Use after development is done to remove temporary worktrees created during development
Standardize team branch completion
Ensure consistent branch completion workflow across team members
Essayez ces prompts
I'm done with my feature. Can you help me finish this branch?
All tests are passing. I want to create a pull request and clean up my worktree.
Please merge my branch into main locally and verify tests still pass.
I want to discard this work. Please confirm before deleting anything.
Bonnes pratiques
- Always verify tests pass before presenting options to prevent merging broken code
- Present exactly 4 options without additional explanation to keep user choice clear
- Require typed 'discard' confirmation to prevent accidental work loss
Éviter
- Skipping test verification and proceeding directly to merge or PR
- Asking open-ended questions like 'What should I do next?' instead of presenting options
- Automatically cleaning up worktrees for all options (only do for merge and discard)