finishing-a-development-branch

Verifies tests and guides Git worktree branch completion with structured integration options.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill eliminates the ambiguity and manual errors associated with closing out development branches, ensuring that tests are verified and worktrees are cleaned up consistently.

Core Features & Use Cases

  • Automated Verification: Enforces mandatory test execution before any merge or PR creation.
  • Structured Workflow: Provides a clear, four-option menu for handling completed work (Merge, PR, Keep, or Discard).
  • Safety Guardrails: Prevents accidental data loss by requiring explicit confirmation for branch deletion and ensuring worktrees are only removed when appropriate.

Quick Start

Invoke the finishing-a-development-branch skill to verify your current test suite and select the appropriate integration path for your completed feature branch.

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 cleanup and enforce tests before merging?

Automate Git branch cleanup by enforcing mandatory test execution before providing a structured integration workflow. This standardizes branch completion by verifying your test suite and guiding you through merge, PR, keep, or discard options.

What is the best way to manage worktree cleanup after finishing a development branch?

Managing worktree cleanup requires explicit confirmation to prevent accidental data loss during branch completion. The workflow ensures worktrees are only removed when appropriate, standardizing the lifecycle completion of development branches.

How does a structured workflow handle completed Git feature branches?

A structured workflow handles completed Git feature branches by presenting a four-option menu for integration. It enforces test verification and applies safety guardrails to prevent accidental deletion before merging or creating a pull request.

Can I use local shell commands to verify tests before creating a Git pull request?

Yes, you can use local shell commands to verify tests before creating a Git pull request. The workflow requires access to local shell commands for Git operations and project-specific test runners to enforce mandatory test execution.

What safety guardrails prevent accidental data loss when discarding a Git branch?

Safety guardrails prevent accidental data loss by requiring explicit confirmation for branch deletion. This ensures that worktrees are only removed when explicitly appropriate, securing your codebase during the branch completion process.