finishing-a-development-branch

Verify tests, select a merge workflow, and clean up repository artifacts.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guides teams to finish development work on a feature branch by verifying tests, selecting an appropriate merge/PR workflow, and cleaning up artifacts after integration.

Core Features & Use Cases

  • Verify tests pass before offering merge options across mainline integration.
  • Present exactly four structured choices (merge locally, push/PR, keep as-is, discard) to reduce ambiguity.
  • Clean up worktrees and branches after the chosen action, ensuring a clean repository state.

Quick Start

Invoke this skill to guide the completion of development work and decide on merge/PR/cleanup.

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 finish a git feature branch and clean up the repository?

To finish a git feature branch, the skill verifies tests pass, then offers four structured merge options including local merge, push pull-request, keep as-is, or discard, followed by safe cleanup of worktrees and branches to ensure a clean repository state.

What are the best workflow options for merging a development branch into the mainline?

The best workflow options for merging a development branch include four deterministic choices: merge locally, push and create a pull-request, keep the branch as-is, or discard it entirely, reducing ambiguity and ensuring safe repository cleanup after integration.

How does test verification work before creating a pull request?

Test verification before creating a pull request works by ensuring all tests pass on the feature branch before presenting any merge or pull-request workflow options, guaranteeing that only verified code is integrated into the mainline.

Can I use this skill to discard a git branch and clean up worktrees?

Yes, you can use this skill to discard a git branch and clean up worktrees, as it provides an explicit discard option among its four structured choices and executes safe repository cleanup of branches and artifacts after the chosen action.

What should I do if my feature branch is not ready for a pull request?

If your feature branch is not ready for a pull request, you can select the keep as-is option from the four structured choices, preserving your current development state without triggering a merge or discarding your work.

How do I select the correct base branch when finishing development work?

To select the correct base branch when finishing development work, the skill guides base-branch selection during the final steps, ensuring your feature integrates into the appropriate mainline after test verification and before executing the chosen workflow.