Compétences finishing-a-development-branch
📦

finishing-a-development-branch

Sûr ⚙️ Commandes externes📁 Accès au système de fichiers

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.

Prend en charge: Claude Codex Code(CC)
🥉 75 Bronze
1

Télécharger le ZIP du skill

2

Importer dans Claude

Allez dans Paramètres → Capacités → Skills → Importer un skill

3

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ûr
v1 • 2/25/2026

All 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.

1
Fichiers analysés
206
Lignes analysées
2
résultats
1
Total des audits
Audité par: claude

Score de qualité

38
Architecture
100
Maintenabilité
85
Contenu
50
Communauté
100
Sécurité
100
Conformité aux spécifications

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

Basic branch completion
I'm done with my feature. Can you help me finish this branch?
Create PR and cleanup
All tests are passing. I want to create a pull request and clean up my worktree.
Merge locally with verification
Please merge my branch into main locally and verify tests still pass.
Safe branch discard
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)

Foire aux questions

What happens if tests fail?
The skill stops and displays test failures. It will not proceed to the options step until tests pass.
Can I create a PR without pushing first?
No. Option 2 requires pushing the branch to origin before creating the PR.
What is a worktree?
A git worktree lets you check out multiple branches simultaneously in separate directories.
Does this skill handle merge conflicts?
No. The skill will report conflicts and stop. You must resolve them manually.
Which git hosts are supported?
PR creation requires GitHub and the gh CLI. Other hosts work for local merge only.
What if I choose Option 3 (keep branch)?
The branch and worktree are preserved. No cleanup occurs. You handle it manually later.

Détails du développeur

Structure de fichiers

📄 SKILL.md