finishing-a-development-branch

Verify tests, determine base branch, and present merge, PR, or cleanup options.

2|1|Updated Dec 9, 2025
One-click install
npx skills add https://github.com/ninjasitm/ai-assisted-dev-toolkit --skill finishing-a-development-branch-ninjasitm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/ninjasitm/ai-assisted-dev-toolkit/tree/main/src/monorepo/.agents/skills/finishing-a-development-branch
Command: npx skills add https://github.com/ninjasitm/ai-assisted-dev-toolkit --skill finishing-a-development-branch-ninjasitm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It guides safe integration of completed work by presenting structured options for merge, PR, or cleanup.

Core Features & Use Cases

  • Step 1: Verify tests
  • Step 2: Determine base branch
  • Step 3: Present exactly four options
  • Step 4: Execute the chosen option and perform optional cleanup

Quick Start

Announce the use of this skill, verify tests, determine the base branch, present the four options, then execute the chosen action and perform cleanup.

Frequently Asked Questions about finishing-a-development-branch

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

FAQPage Schema
What's the best way to finish a development branch and integrate my code?

Finishing a development branch involves verifying tests, determining the base branch, and selecting from structured options like merge, pull-request, or cleanup to safely integrate completed work across branches and worktrees.

How do I safely merge a completed development branch into the base branch?

To safely merge a completed development branch, first verify tests pass and determine the base branch, then choose the merge option from the presented choices to integrate your work and optionally clean up the worktree.

Does finishing a development branch require tests to pass before cleanup?

Yes, finishing a development branch enforces test verification before presenting integration options, ensuring tests pass before you can execute a merge, pull-request, or branch cleanup.

Can I create a pull request instead of a direct merge when finishing a development branch?

Yes, finishing a development branch presents explicit options including creating a pull request, allowing you to choose PR creation over a direct merge when integrating completed work into the base branch.

What happens to my git worktree after I finish a development branch?

After finishing a development branch by executing your chosen integration option, the process performs optional worktree cleanup to remove the development branch workspace if no longer needed.

When should I use a development branch finishing workflow instead of merging manually?

Use a development branch finishing workflow when you need structured options for safe integration across multiple branches and worktrees, ensuring test verification and base-branch determination before executing merges or pull requests.