Finishing a Development Branch

Automate Git branch completion with a 5-step workflow.

Updated Dec 30, 2025
One-click install
npx skills add https://github.com/vietlinhh02/cogninote --skill finishing-a-development-branch-vietlinhh02
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Finishing a Development Branch
Source: https://github.com/vietlinhh02/cogninote/tree/main/.claude/skills/methodology/finishing-development-branch
Command: npx skills add https://github.com/vietlinhh02/cogninote --skill finishing-a-development-branch-vietlinhh02

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a structured, repeatable 5-step process to safely and efficiently complete development branches, ensuring code quality and clear next steps.

Core Features & Use Cases

  • Test Verification: Automatically runs tests before proceeding.
  • Branch Strategy Guidance: Helps determine the correct base branch for merging.
  • Actionable Options: Presents clear choices for merging, creating a Pull Request, keeping the branch, or discarding it.
  • Cleanup Automation: Includes steps for cleaning up local and remote branches and worktrees.
  • Use Case: After finishing a new feature, you can use this Skill to ensure all tests pass, then choose to either merge it into main locally, create a Pull Request for review, or safely discard the branch if it's no longer needed.

Quick Start

Use the finishing a development branch skill to verify tests and present options for completing the current branch.

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 automate finishing a Git development branch?

Automate finishing a Git development branch by running a structured 5-step workflow that verifies tests pass, determines the base branch, and presents clear options for merging, creating a pull request, or discarding changes.

What is the best way to ensure tests pass before merging a Git branch?

The best way to ensure tests pass before merging a Git branch is to use an automated workflow that runs test verification as the first step, blocking any merge or pull request creation until checks succeed.

How do I clean up local and remote Git branches after merging a pull request?

Clean up local and remote Git branches after merging a pull request by using a branch completion workflow that includes automated cleanup steps for deleting branches and worktrees once the merge is complete.

Can I choose between creating a pull request or merging locally when finishing a development branch?

Yes, you can choose between creating a pull request or merging locally when finishing a development branch. The workflow presents actionable options including merging, creating a PR, keeping, or discarding the branch.

How do I determine the correct base branch for merging my Git feature branch?

Determine the correct base branch for merging your Git feature branch by using a workflow that provides branch strategy guidance, analyzing your development setup to identify the appropriate target branch.