finishing-a-development-branch

Automate post-implementation Git branch finishing with test validation and worktree cleanup.

16|9|Updated Nov 6, 2013
One-click install
npx skills add https://github.com/erikstmartin/dotfiles --skill finishing-a-development-branch-erikstmartin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/erikstmartin/dotfiles/tree/main/skills/global/.agents/skills/finishing-a-development-branch
Command: npx skills add https://github.com/erikstmartin/dotfiles --skill finishing-a-development-branch-erikstmartin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides finishing development work by verifying tests, selecting a merge/PR workflow, and cleaning up the worktree.

Core Features & Use Cases

  • Verify tests pass before merging or creating a PR.
  • Determine the base branch and propose four structured options.
  • Clean up worktrees and preserve or delete branches as directed.

Quick Start

Initiate the finishing-a-development-branch workflow to guide post-implementation merge and cleanup 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 finish a git feature branch with clean merge and PR?

To finish a development branch, the workflow verifies tests pass, resolves the base branch, presents four merge or pull-request options, and executes safe worktree cleanup to ensure a clean merge and PR.

What is the best way to automate git worktree cleanup after merging?

Automating git worktree cleanup involves selecting a completion path after merge verification, allowing you to preserve or delete the feature branch while safely removing the associated worktree from your local environment.

Does this branch finishing workflow require running tests before creating a pull request?

Yes, the workflow enforces test verification before merging or creating a pull request, ensuring that all tests pass successfully before presenting the four structured options to finalize your development branch.

Can I use this merge workflow across different programming languages and git platforms?

Yes, the workflow applies to feature branches in Git workflows across languages and platforms, determining the base branch dynamically and integrating with standard git worktrees and PR tooling to finalize merges.

What merge and pull request options are available when finalizing a development branch?

The workflow proposes four structured completion options after determining the base branch, guiding you through selecting the appropriate merge or pull-request path and handling subsequent worktree cleanup automatically.