finishing-a-development-branch

Guide teams through merging, PR creation, branch retention, or discard in Git workflows.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill guides you through finalizing completed development work by presenting structured options for merging, creating a PR, keeping the branch, or discarding the work.

Core Features & Use Cases

  • Structured completion options: Decide how to integrate a finished feature branch with the base branch.
  • Safe cleanup guidance: Provide steps to clean up worktrees and branches after the chosen path.
  • Use Case: After implementing a feature and all tests pass, use this skill to determine whether to merge locally, push a PR, keep the branch for later, or discard.

Quick Start

Use the finishing-a-development-branch skill to finalize current work after tests pass and choose a merge strategy.

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 finalize a Git feature branch after all tests pass?

To finalize a Git feature branch, choose between merging locally, pushing a pull request, keeping the branch, or discarding the work. This structured four-option flow provides step-by-step commands and cleanup guidance to ensure safe completion.

What is the best way to merge a completed development branch into the base branch?

The best way to merge a completed development branch is following a fixed four-option flow that determines the base branch and provides explicit execution paths. It guides you through step-by-step merge commands and subsequent worktree cleanup.

How do I clean up Git worktrees and branches after merging a feature?

To clean up Git worktrees and branches after merging, follow the safe cleanup guidance provided upon selecting your branch completion path. This ensures local worktrees and obsolete branches are removed safely after integration.

When should I create a pull request instead of merging a branch locally?

You should create a pull request instead of merging locally when team code review is required before integration. The workflow presents creating a PR as one of four explicit execution paths for finalizing your completed development work.

Can I discard finished Git work safely after a feature is complete?

Yes, you can discard finished Git work safely by selecting the discard option within the four-option branch completion flow. This path provides explicit commands to abandon the changes and clean up the associated worktree.

Does this branch management workflow support keeping a branch for later instead of merging?

Yes, this branch management workflow supports keeping a branch for later instead of merging. Keeping the development branch is one of the four structured options presented after your feature is finished and tests pass.