finishing-a-development-branch

Verify tests, detect workspace state, and present Git merge options.

1|Updated Feb 1, 2026
One-click install
npx skills add https://github.com/mouseqiao85/AI-Plat --skill finishing-a-development-branch-mouseqiao85
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/mouseqiao85/AI-Plat/tree/main/agent/skills/finishing-a-development-branch
Command: npx skills add https://github.com/mouseqiao85/AI-Plat --skill finishing-a-development-branch-mouseqiao85

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the process of finishing a development branch in Git workflows, offering structured options for merging, creating pull requests, or discarding work.

Core Features & Use Cases

  • Test Verification: Ensures all tests pass before presenting merge options.
  • Environment Detection: Determines the workspace state to tailor the merge options.
  • Merge Options: Provides clear options for merging locally, pushing to create a pull request, keeping the branch as-is, or discarding the work.
  • Cleanup Automation: Handles cleanup of the worktree based on the chosen option.

Quick Start

Execute the skill with 'finish-branch' and follow the prompts to complete your 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 automate finishing a development branch in Git?

Automating Git development branch completion involves verifying test suites pass, detecting the workspace state, and presenting structured merge options like local merge, pull request, keep, or discard. This workflow handles cleanup automation based on your chosen option.

Can I create a pull request automatically when a Git branch is finished?

Yes, when finishing a Git development branch, the workflow presents a pull request option alongside local merge, keep, and discard. Selecting the pull request option pushes your work and initiates the PR creation process automatically.

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

Structured branch completion workflows enforce test verification before presenting any merge options. This ensures your test suite passes completely, preventing unverified code from entering the main branch through local merges or pull requests.

Does Git branch cleanup automation work with existing continuous integration workflows?

Git branch completion automation integrates with continuous integration workflows by verifying test suites and detecting workspace states. It provides structured merge options and cleanup automation suitable for any workflow requiring structured branch completion decisions.

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

Discarding a Git development branch uses cleanup automation to remove the worktree after you select the discard option. The workflow detects your workspace state and handles the cleanup processes automatically to ensure a clean environment.