finishing-a-development-branch

Validate tests, detect the base branch, and execute the chosen merge or cleanup workflow.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the uncertainty and manual effort of completing development work by providing a structured, automated process for branch integration and cleanup.

Core Features & Use Cases

  • Test-Driven Completion: Automatically verifies tests pass before proceeding with any integration
  • Structured Decision Making: Presents clear options for merge, PR, or cleanup workflows
  • Safe Cleanup Operations: Handles branch and worktree cleanup with appropriate safeguards
  • Use Case: After implementing a new feature, use this Skill to automatically run tests, present integration options, and execute your chosen workflow with proper cleanup

Quick Start

Use the finishing-a-development-branch skill to complete my current feature implementation and integrate it properly.

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 automatically verify tests pass before merging a Git branch?▼

Test verification runs automatically before any integration step, ensuring your implementation is complete and stable. The Skill validates test results and halts if tests fail, preventing broken code from merging.

What are my options for completing a development branch after tests pass?▼

After tests pass, you get four explicit options: merge locally to your base branch, create a pull request, keep the branch for further work, or discard it. Each option executes the corresponding Git workflow automatically.

How do I detect the correct base branch for merging my feature branch?▼

Base branch detection runs automatically before presenting merge options, identifying the target branch for integration. The Skill determines the correct destination so you merge to the right branch without manual configuration.

Can I clean up worktrees and branches safely after finishing development?▼

Yes, the Skill handles branch and worktree cleanup with safeguards built in. After executing your chosen workflow, cleanup operations remove temporary branches or worktrees without data loss.

When should I use automated branch completion instead of manual Git commands?▼

Use it when your feature implementation is complete and tests pass, eliminating manual decisions about merging, PR creation, or cleanup. Automation reduces integration errors and ensures consistent workflows across your team.