finishing-a-development-branch

Validate tests and execute a branch completion workflow with merge, PR, or cleanup options.

Updated May 4, 2026
One-click install
npx skills add https://github.com/fred29910/migra-go --skill finishing-a-development-branch-fred29910
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/fred29910/migra-go/tree/main/.agents/skills/finishing-a-development-branch
Command: npx skills add https://github.com/fred29910/migra-go --skill finishing-a-development-branch-fred29910

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide helps teams finish development work by validating tests, selecting a suitable completion path, and safely cleaning up the branch.

Core Features & Use Cases

  • Validate tests before merging or PR
  • Determine base branch automatically or via prompts
  • Present four structured options: Merge locally, Push PR, Keep branch, Discard
  • Cleanup worktree after operations
  • Safety checks and guardrails to prevent accidental deletions

Quick Start

Guide me through finishing a development branch by validating tests, identifying the base branch, and executing the chosen completion path.

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 finish a development branch and merge it back?

To finish a development branch, you validate tests, detect the base branch, and choose a completion path like local merge, PR creation, keeping, or discarding. Safety checks prevent accidental deletions during branch cleanup.

What is the best workflow for closing a git feature branch after testing?

The best workflow for closing a git feature branch involves verifying tests first, selecting the base branch, and executing an option-driven path. You can merge locally, push a PR, keep the branch, or discard it with optional cleanup.

How does base-branch detection work when completing a development branch?

Base-branch detection for completing a development branch works automatically or via prompts to identify where your changes should merge. This ensures your PR or local merge targets the correct integration branch safely.

Can I create a PR and clean up my local branch in one workflow?

Yes, you can create a PR and clean up your local branch in one workflow by selecting the push PR option. The workflow includes optional worktree cleanup and guardrails to ensure safe completion after operations.

What should I do if I want to discard changes on a development branch safely?

To discard changes on a development branch safely, select the discard option within the structured workflow. Built-in safety checks and guardrails prevent accidental deletions of local and remote branches during the process.