finishing-a-development-branch

Verify tests pass and execute one of four branch completion options.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/cookeyholder/django-devcontainer-template --skill finishing-a-development-branch-cookeyholder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/cookeyholder/django-devcontainer-template/tree/main/.agent/skills/finishing-a-development-branch
Command: npx skills add https://github.com/cookeyholder/django-devcontainer-template --skill finishing-a-development-branch-cookeyholder

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guides teams to safely conclude work on a development branch by validating tests and selecting an appropriate integration path.

Core Features & Use Cases

  • Test verification: Ensures all tests pass before proposing merge or cleanup.
  • Structured options: Always presents exactly four options: merge locally, push and create PR, keep the branch as-is, or discard.
  • Cleanup orchestration: Performs post-merge or post-discard cleanup steps, including work tree removal when applicable.

Quick Start

Verify tests pass for the current branch, then select one of four completion options and let the skill execute it.

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 git development branch after tests pass?

To finish a git development branch safely, verify tests pass first, then choose from four structured options: merge locally, push and create a PR, keep the branch, or discard it with cleanup.

What is the best way to clean up a git branch after merging?

The best way to clean up a merged git branch is to use an automated workflow that executes post-merge cleanup steps, including removing any associated work tree and deleting the branch.

Can I create a pull request directly from my current feature branch?

Yes, you can create a pull request from your current feature branch by selecting the push and create PR option after the skill verifies your tests pass and determines the base branch.

What happens if my feature branch tests fail before merging?

If feature branch tests fail, the workflow halts before presenting merge or cleanup options, ensuring that only verified, passing test states proceed to integration or deletion.

How do I discard a git branch and clean up its work tree?

To discard a git branch and clean up its work tree, select the discard option from the four completion paths, which triggers the necessary removal steps for the branch and associated files.

What are the options for integrating a completed feature branch?

The options for integrating a completed feature branch are merging locally into the base branch, pushing to create a PR, keeping the branch as-is for future work, or discarding it entirely.