finishing-a-development-branch

Verify tests, then merge locally, create a GitHub Pull Request, or preserve the branch.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of concluding development work by providing clear, actionable options for integrating changes and cleaning up branches, preventing common merge conflicts and accidental data loss.

Core Features & Use Cases

  • Test Verification: Ensures all tests pass before proceeding with integration.
  • Branch Integration Options: Offers choices for merging locally, creating a Pull Request, or preserving the branch.
  • Worktree Management: Handles the cleanup of associated worktrees based on the chosen integration path.
  • Use Case: After completing a new feature, use this Skill to automatically check tests, present options to merge into main or create a PR, and clean up your local environment.

Quick Start

Use the finishing-a-development-branch skill to complete your current development work.

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 development branch and clean up my local worktree?

Finalizing a development branch involves verifying tests, choosing to merge locally or create a Pull Request, and cleaning up associated worktrees. This structured workflow prevents accidental data loss during branch integration.

What is the best way to merge a feature branch into main after passing tests?

The best way to merge a feature branch is to verify all tests pass first, then execute a local merge or create a Pull Request. This ensures code integration happens safely and preserves branch history.

Do I need the GitHub CLI to create a pull request for my feature branch?

Yes, you need the GitHub CLI to create a Pull Request for your feature branch. The workflow requires both Git and GitHub CLI to manage local merges, PR creation, and worktree cleanup.

Can I preserve my development branch instead of merging it immediately?

Yes, you can preserve your development branch instead of merging it immediately. The workflow presents structured options allowing you to keep the branch intact rather than proceeding with local merge or Pull Request creation.

Why should I verify tests before finishing development work on a branch?

Verifying tests before finishing development work ensures all checks pass before proceeding with integration. This test verification prevents merge conflicts and accidental data loss by validating code stability.

What are the limitations of using this development workflow for git branch management?

Limitations include requiring both Git and GitHub CLI for execution, restricting workflow options to local merge, Pull Request, or branch preservation, and depending on successful test verification before proceeding with worktree cleanup.