finishing-a-development-branch

Verify tests, then merge, pull request, keep, or discard a development branch.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/subham007ai/share-room --skill finishing-a-development-branch-subham007ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/subham007ai/share-room/tree/main/.agent/skills/finishing-a-development-branch
Command: npx skills add https://github.com/subham007ai/share-room --skill finishing-a-development-branch-subham007ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the process of concluding development work by providing clear, actionable steps for integrating code, managing pull requests, or safely discarding unfinished features, preventing common integration errors.

Core Features & Use Cases

  • Test Verification: Ensures all tests pass before proceeding.
  • Branch Integration: Guides merging back to the base branch or creating a pull request.
  • Worktree Management: Handles the cleanup or preservation of development worktrees.
  • Use Case: After completing a new feature, you can use this Skill to automatically run tests, merge the code into main, and clean up the feature branch and its associated worktree.

Quick Start

Use the finishing-a-development-branch skill to finalize the current development branch.

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 branch and merge it into main after tests pass?

To finalize a git branch, you can use a branch management workflow that verifies test execution, then presents options to merge the code into the base branch with automated cleanup of the feature branch.

What is the safest way to merge a development branch without breaking the base branch?

The safest way to merge a development branch is to enforce test verification first, preventing any integration or pull request creation when tests are failing, and requiring explicit confirmation for destructive actions.

How do I clean up git worktrees after completing a feature branch?

Cleaning up git worktrees after feature completion involves executing an automated cleanup workflow that discards or preserves the development worktree based on your chosen integration path.

Can I discard unfinished git features without accidentally losing stable code?

Yes, you can discard unfinished git features safely by using a workflow that requires explicit confirmation for destructive actions, ensuring stable base branches remain protected during branch disposal.

Does branch management workflow support creating pull requests instead of direct merges?

Yes, branch management workflows support creating pull requests by presenting structured integration options, allowing you to choose between a direct merge, a pull request, keeping, or discarding the branch.

Why does my code integration fail when development branch tests are not passing?

Code integration fails when development branch tests are not passing because standardized integration practices enforce test verification, blocking merges to the base branch to prevent introducing failing code.