finishing-a-development-branch

Verify tests, merge branches, and clean up workspaces with git.

8|1|Updated Apr 20, 2026
One-click install
npx skills add https://github.com/HumanBean17/jrag --skill finishing-a-development-branch-humanbean17
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/HumanBean17/jrag/tree/main/.claude/skills/finishing-a-development-branch
Command: npx skills add https://github.com/HumanBean17/jrag --skill finishing-a-development-branch-humanbean17

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill eliminates the ambiguity and manual overhead of closing out development branches by providing a structured, safe, and repeatable workflow for merging, PR creation, or cleanup.

Core Features & Use Cases

  • Automated Safety Checks: Verifies that all tests pass before allowing any destructive or integration actions.
  • Environment-Aware Workflows: Automatically detects if you are in a standard repository or a managed worktree to determine the correct cleanup strategy.
  • Documentation Lifecycle: Automatically handles the transition of active specs and plans into archived ADRs upon successful merge.

Quick Start

Invoke the finishing-a-development-branch skill to verify your current work and present the appropriate options for merging or cleaning up your 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 merging after feature development?

Automating git branch cleanup requires verifying tests, executing merges, and removing branches safely. This skill standardizes that workflow by applying automated safety checks before integration actions and repository hygiene tasks.

What is the safest workflow for merging a development branch into a base branch?

A safe branch merge workflow mandates passing all tests before integration. This skill enforces automated test verification using standard runners, ensuring code integrity before allowing any destructive git actions or branch removal.

Can I use this branch finishing workflow with git worktrees?

Yes, the branch finishing workflow supports git worktrees. It features environment-aware detection to automatically determine whether you are in a standard repository or a managed worktree, applying the correct cleanup strategy accordingly.

Do I need a specific test runner to verify code integrity before merging?

No specific test runner is mandated; the skill requires standard test runners to verify code integrity. It integrates with your existing software engineering workflow to ensure tests pass before allowing any merge execution.

How does merging a branch affect active specs and development plans?

Merging a branch triggers a documentation lifecycle transition. Upon successful merge, this skill automatically handles archiving active specs and plans into ADRs, maintaining repository documentation hygiene alongside code integration.

What is the best way to discard a development branch safely?

Discarding a branch safely involves automated test verification and environment-aware cleanup. This skill presents appropriate options for removal, ensuring worktree integrity and repository hygiene are maintained when abandoning feature branches.