finishing-a-development-branch

Automate branch completion by verifying tests and selecting merge, PR, keep, or discard.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guides teams to safely finish development work by validating tests, selecting an integration path, and performing the chosen action.

Core Features & Use Cases

  • Verify tests pass, determine base branch, present four structured options for merging, PR, keeping, or discarding, and perform corresponding cleanup.
  • Ideal for feature branches nearing completion, ensuring safe integration and consistent workflows.

Quick Start

Run the finishing-a-development-branch skill after all tests pass to decide on merge, PR, keep, or discard and perform the chosen cleanup.

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 tests pass?

To finalize a git feature branch after tests pass, the workflow automates test verification, base-branch determination, and presents four structured options: merge locally, push a pull request, keep the branch, or discard the work.

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

The best way to clean up a git worktree after merging is to use an automated cleanup process that coordinates test verification and base-branch determination, ensuring a safe and auditable integration flow before removing the worktree.

When should I keep a development branch instead of merging it?

You should keep a development branch instead of merging when implementation is complete but the feature is not ready for integration, allowing you to defer the merge or pull request while preserving the work.

Can I automate git branch management decisions for pull requests?

Yes, you can automate git branch management decisions by applying a workflow that determines the base branch, verifies tests, and presents structured options for pushing a pull request or merging locally.

Does this branch finalization workflow require any specific git dependencies?

No, this branch finalization workflow does not require any specific dependencies, as it operates natively with git to coordinate test verification, base-branch determination, and worktree cleanup.

Why discard a feature branch instead of creating a pull request?

You discard a feature branch instead of creating a pull request when the implementation is no longer needed, allowing the workflow to safely remove the work and perform corresponding worktree cleanup.