finishing-a-development-branch

Complete Git development branches with merge, PR, deferral, or discard options.

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

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 branches, ensuring that work is properly integrated and that no orphaned branches or uncleaned worktrees are left behind.

Core Features & Use Cases

  • Four distinct completion options: Merge Locally, Push + Create PR, Keep As-Is, or Discard.
  • Automated base branch detection.
  • Mandatory test verification before proceeding.
  • Automatic cleanup of worktrees and local branches for merged/discarded options.
  • Explicit confirmation required for discarding work.
  • Use Case: After finishing a feature, use this skill to choose the best way to integrate it into the main codebase, whether that's a direct merge, a pull request, or a deliberate decision to keep the branch for later.

Quick Start

Use the finishing-a-development-branch skill to complete the current feature 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 merge a git development branch and clean up the worktree?

To merge a git development branch and clean up, select a local merge option that automatically removes the local branch and worktree after integration, ensuring no orphaned references remain.

What is the best way to manage git branch completion before creating a pull request?

The best way to manage git branch completion is to enforce mandatory test verification before proceeding, then use an automated process to push the branch and create a pull request with explicit confirmation for any destructive actions.

Can I discard a git branch without leaving orphaned local branches?

Yes, you can discard a git branch by selecting the discard option, which requires explicit confirmation before deleting work and automatically cleans up the associated local branch and worktree to prevent orphans.

Does this git workflow support deferring a feature branch completion?

Yes, the git workflow supports deferring completion by choosing a keep-as-is option, which leaves the current development branch and worktree intact for later integration without triggering automated cleanup.

How do automated base branch detection and test verification work during a git merge?

Automated base branch detection identifies the correct integration target, while mandatory test verification runs checks before allowing any merge or pull request creation to prevent breaking the main codebase.