finishing-a-development-branch

Verify tests, merge branches, create pull requests, and clean up Git workspaces.

Updated May 9, 2026
One-click install
npx skills add https://github.com/duongbui234/ag-skills-pro --skill finishing-a-development-branch-duongbui234
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/duongbui234/ag-skills-pro/tree/main/template/.agent/skills/finishing-a-development-branch
Command: npx skills add https://github.com/duongbui234/ag-skills-pro --skill finishing-a-development-branch-duongbui234

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill eliminates the ambiguity and manual overhead of closing out development tasks by providing a standardized, safe, and automated workflow for merging, pushing, or cleaning up branches.

Core Features & Use Cases

  • Automated Verification: Ensures all tests pass before allowing any integration steps, preventing broken code from reaching the main branch.
  • Environment-Aware Cleanup: Intelligently detects whether to perform a local merge, push to a PR, or clean up temporary worktrees based on the current Git state.
  • Use Case: After completing a feature, use this skill to verify your tests, merge your changes into the main branch, and automatically remove the temporary worktree, ensuring your workspace remains clean and organized.

Quick Start

Invoke the finishing-a-development-branch skill to verify your current work and guide you through the final integration steps.

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 automate git branch merging and test validation before integration?

Automating git branch merging requires a workflow that runs your test suite and verifies all tests pass before allowing integration steps. This prevents broken code from reaching the main branch by standardizing the merge, push, and cleanup process.

What is the best way to clean up temporary git worktrees after finishing a feature?

The best way to clean up temporary git worktrees is through environment-aware detection that automatically removes them after a successful merge. This ensures your workspace remains clean and organized once development branches are integrated.

Do I need standard Git CLI tools to automate pull request creation and branch cleanup?

Yes, you need standard Git CLI tools and access to the project's test suite to automate pull request creation and branch cleanup. These dependencies ensure repository integrity during the verification and integration workflow.

Can I use an automated workflow to verify tests before merging a development branch?

Yes, you can use an automated workflow to verify tests before merging a development branch. Automated verification ensures all tests pass before allowing any integration steps, preventing broken code from reaching the main branch.

Why does my git workflow not automatically clean up branches after a local merge?

Git workflows often lack automatic cleanup because they do not intelligently detect the current Git state to determine whether to perform a local merge, push to a PR, or clean up temporary worktrees. Environment-aware detection is required for automatic workspace organization.