finishing-a-development-branch

Coordinate test verification, base-branch selection, and merge, PR, keep, or discard options for Git feature branches.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/erenisiklar/Pusula --skill finishing-a-development-branch-erenisiklar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/erenisiklar/Pusula/tree/main/.claude/skills/finishing-a-development-branch
Command: npx skills add https://github.com/erenisiklar/Pusula --skill finishing-a-development-branch-erenisiklar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamlines the finalization of development work by ensuring tests pass, selecting a base branch, and guiding a structured finish workflow with clear options for merge, pull request, keeping the branch, or discarding the work.

Core Features & Use Cases

  • Verifies tests and validates the integration state before finishing a branch.
  • Determines a suitable base branch (e.g., main or master) and aligns the finish workflow with project conventions.
  • Presents exactly four options to the user and executes the chosen path, including local merge, PR creation, or branch discard.
  • Cleans up local worktrees and temporary artifacts after completion to maintain repository hygiene.

Quick Start

Verify tests pass, determine base, pick an option, and let the skill finish the development work.

Frequently Asked Questions about finishing-a-development-branch

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely finish a Git development branch after completing feature work?

To finish a Git development branch safely, you need a structured workflow that verifies tests pass, selects the correct base branch like main or master, and guides you through deterministic merge, pull request, keep, or discard options before cleaning up local worktrees.

What is the best way to merge or discard a feature branch while keeping the repository clean?

The best way to process a feature branch is using a guided finish workflow that presents clear options for merging, creating a pull request, or discarding work, followed by automated cleanup of local worktrees and temporary artifacts to maintain repository hygiene.

Can I create a pull request directly from a local feature branch finish process?

Yes, a structured branch finalization process can execute a pull request creation path directly. It presents PR creation as one of four explicit options alongside local merge, keeping the branch, or discarding the work entirely.

Do I need to verify tests before merging a Git feature branch into the base branch?

Verifying tests before merging a Git feature branch is essential for an auditable finish process. A structured finalization workflow coordinates test validation and checks the integration state before allowing you to select a base branch and execute any merge options.

When should I keep a development branch instead of discarding or merging it?

You should keep a development branch when finalizing work but the feature is not ready for the base branch. A structured finish workflow allows you to select a keep option, preserving the branch while still cleaning up temporary worktrees and local artifacts.

Why does my Git branch cleanup leave temporary worktrees behind after merging?

Git branch cleanup leaves temporary worktrees behind when a finish process lacks automated artifact removal. A structured finalization workflow ensures local worktrees and temporary artifacts are automatically cleaned up after your chosen merge, pull request, or discard path completes.