finishing-a-development-branch

Verify test suites and execute integration workflows for git branches.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

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

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 preserve or remove worktrees based on the repository structure and provenance.
  • Structured Workflow: Offers clear, guided options for merging locally, creating pull requests, or discarding work, reducing human error in git operations.

Quick Start

Invoke the finishing-a-development-branch skill to verify your current implementation 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 cleanup after development?

Automating git branch merging and cleanup requires verifying test suites and executing integration workflows based on repository state. This process manages branch merging, pull request creation, and worktree cleanup while ensuring code integrity through mandatory test validation.

Can I integrate a development branch without running tests first?

No, integrating a development branch requires mandatory test validation to prevent broken code from reaching the main branch. The automated verification step ensures all test suites pass before allowing any merging, pushing, or pull request creation workflows to proceed.

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

Cleaning up git worktrees after finishing a branch involves environment-aware detection based on repository structure and provenance. The system intelligently evaluates whether to preserve or remove workspaces, ensuring safe workspace management during the final integration steps.

How does environment-aware branch cleanup handle different repository configurations?

Environment-aware branch cleanup handles different repository configurations by detecting repository state and environment settings to determine safe workspace management. It uses provenance-based logic to decide whether worktrees should be preserved or removed during the integration workflow.

Does this branch finishing workflow support creating pull requests automatically?

Yes, the branch finishing workflow supports creating pull requests automatically as part of its structured integration options. It provides guided choices for merging locally, creating pull requests, or discarding work to reduce human error in git operations.

When should I avoid automated branch integration workflows?

Automated branch integration workflows should be avoided when test suites cannot pass or when repository state is unstable. The mandatory test validation prevents broken code integration, making it unsuitable for branches with incomplete implementations or unresolved test failures.