aidlc-finishing-a-development-branch

Finalize a development branch by merging, creating a pull request, keeping, or discarding it.

2|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/bluejayA/devflow-aidlc-like --skill aidlc-finishing-a-development-branch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aidlc-finishing-a-development-branch
Source: https://github.com/bluejayA/devflow-aidlc-like/tree/main/skills/aidlc-finishing-a-development-branch
Command: npx skills add https://github.com/bluejayA/devflow-aidlc-like --skill aidlc-finishing-a-development-branch

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a clear, guided process to decide what to do with a completed development branch, preventing orphaned branches and ensuring a clean Git history.

Core Features & Use Cases

  • Branch Management: Offers four distinct options for handling a finished development branch: merge locally, create a Pull Request, keep the branch for later, or discard it entirely.
  • Guided Decision Making: Prompts the user for explicit choices, ensuring no action is taken without confirmation.
  • Safety Checks: Includes verification steps before proceeding and specific warnings for destructive actions like discarding a branch.
  • Use Case: After successfully implementing a new feature and passing all tests, you need to decide whether to merge the branch into main, open a PR for review, keep it for future work, or delete it. This skill guides you through that decision and executes the chosen action safely.

Quick Start

Use the aidlc-finishing-a-development-branch skill to decide what to do with the current development branch.

Frequently Asked Questions about aidlc-finishing-a-development-branch

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I finalize a development branch after passing all tests?

To finalize a development branch, you can choose to merge it locally, create a Pull Request, keep it for later, or discard it entirely. This skill guides you through these options with explicit prompts and safety checks.

What is the best way to discard a git branch safely?

The best way to discard a git branch safely is by using a workflow that includes specific warnings and confirmation prompts before executing destructive actions like complete branch deletion.

Do I need GitHub CLI installed to create a pull request with this workflow?

Yes, you need the GitHub CLI (gh) installed if you choose the Pull Request creation option to finalize your development branch, as the skill integrates with gh for remote PR operations.

Can I keep a development branch for later work instead of merging it?

Yes, you can choose the branch retention option to keep your development branch for future work, effectively pausing the development lifecycle without merging or deleting it.

How does branch management handle worktrees when discarding a branch?

Branch management handles worktree management dynamically based on your chosen action, ensuring that worktrees are correctly cleaned up or preserved when you discard or merge a development branch.