branch-finalization

Verify tests, determine base branch, and merge or discard development branches.

39|1|Updated Dec 21, 2025
One-click install
npx skills add https://github.com/qodex-ai/ai-agent-skills --skill branch-finalization
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: branch-finalization
Source: https://github.com/qodex-ai/ai-agent-skills/tree/main/skills/branch-finalization
Command: npx skills add https://github.com/qodex-ai/ai-agent-skills --skill branch-finalization

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of completing development work on a branch, ensuring code quality and proper integration before merging or discarding.

Core Features & Use Cases

  • Automated Testing: Verifies that all project tests pass before proceeding.
  • Branch Management: Offers clear options for merging locally, creating a pull request, keeping the branch, or discarding work.
  • Worktree Cleanup: Manages the removal of temporary worktrees to maintain a clean development environment.
  • Use Case: After finishing a new feature, use this Skill to automatically run tests, then choose to merge it into main, create a PR, or safely discard the changes if the feature is no longer needed.

Quick Start

Use the branch-finalization skill to complete the current development branch.

Frequently Asked Questions about branch-finalization

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

FAQPage Schema
How do I safely merge a git branch after testing?▼

To safely merge a git branch after testing, the branch finalization process runs automated tests to verify code quality, determines the base branch, and then offers clear options to merge locally or create a pull request.

What is the best way to automate git branch finalization and worktree cleanup?▼

Branch finalization automates git workflow cleanup by verifying tests, finalizing code integration through merges or pull requests, and managing the removal of temporary worktrees to maintain a clean development environment.

Can I discard git branch changes if automated testing fails or the feature is no longer needed?▼

Yes, you can discard git branch changes during the branch finalization process, which offers options to safely discard work if a feature is no longer needed or to keep the branch before proceeding with cleanup.

Does branch finalization support creating pull requests instead of local merging?▼

Yes, branch finalization supports creating pull requests by determining the base branch and offering it as a clear integration option alongside local merging or discarding work after tests pass.

When do I need to use a branch finalization workflow for code integration?▼

You need a branch finalization workflow for code integration when you finish developing a feature and need to verify automated tests, determine the correct base branch, and safely merge, pull, or discard the work.

Why does worktree cleanup matter when finalizing development branches?▼

Worktree cleanup matters when finalizing development branches because it manages the removal of temporary worktrees, ensuring a clean development environment after your code integration or branch discarding is complete.