finishing-a-development-branch

Verify tests and merge, create a Pull Request, or discard a Git branch.

Updated Feb 5, 2026
One-click install
npx skills add https://github.com/shynlee04/idumb-v2 --skill finishing-a-development-branch-shynlee04
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/shynlee04/idumb-v2/tree/main/.agent/skills%20copy/finishing-a-development-branch
Command: npx skills add https://github.com/shynlee04/idumb-v2 --skill finishing-a-development-branch-shynlee04

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a structured and safe process for completing development work on a branch, ensuring code quality and proper integration before merging or discarding.

Core Features & Use Cases

  • Test Verification: Automatically runs the project's test suite to ensure all tests pass before proceeding.
  • Branch Integration Options: Presents clear, actionable choices for merging locally, creating a Pull Request, keeping the branch, or discarding the work.
  • Worktree Management: Safely cleans up or preserves worktrees based on the chosen completion action.
  • Use Case: After finishing a new feature, use this Skill to automatically test your code, then choose to either merge it into main locally, push it for a PR review, or safely discard it if the work is no longer needed.

Quick Start

Use the finishing-a-development-branch skill to complete the current development 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 safely complete a git branch after finishing development?

To safely complete a git branch, you should verify test passage first, then choose to merge locally, create a pull request, or discard the work. This ensures code quality and proper worktree management throughout the process.

What is the best way to verify code before merging a git branch?

The best way to verify code before merging a git branch is to automatically run the project's test suite. This ensures all tests pass before you proceed with branch integration or worktree cleanup.

What are my options for finishing a development branch?

Options for finishing a development branch include merging it locally into main, pushing it for a pull request review, keeping the branch, or safely discarding the work if it is no longer needed.

How do I discard a git branch and clean up the worktree?

To discard a git branch and clean up the worktree, select the discard option during the branch completion process. This safely removes the work and manages the worktree preservation or cleanup automatically.

When should I create a pull request instead of merging locally?

You should create a pull request instead of merging locally when you need peer code review before integration. The completion process offers both choices after test verification to ensure proper branch integration.