finishing-a-development-branch

Verify passing tests before merging Git branches and cleaning up worktrees or deleting branches.

1|Updated Jul 21, 2026
One-click install
npx skills add https://github.com/dogekiki/SP-test --skill finishing-a-development-branch-dogekiki
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/dogekiki/SP-test/tree/main/skills/finishing-a-development-branch
Command: npx skills add https://github.com/dogekiki/SP-test --skill finishing-a-development-branch-dogekiki

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill eliminates the ambiguity and risk associated with closing out development branches by providing a standardized, safety-checked workflow for merging, pushing, or discarding work.

Core Features & Use Cases

  • Automated Verification: Ensures all tests pass before allowing any destructive or integration actions.
  • Environment Awareness: Detects whether you are in a standard repository or a complex worktree setup to prevent accidental data loss.
  • Use Case: After finishing a feature, use this skill to safely merge your code into the main branch, clean up the temporary worktree, and delete the feature branch without leaving behind orphaned files or broken states.

Quick Start

Invoke the finishing-a-development-branch skill to verify your current test suite and guide you through the process of merging or cleaning up your active development 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 safely merge a git development branch after finishing a feature?

To safely merge a git development branch, the workflow enforces automated test verification first, ensuring all tests pass before guiding you through structured options for merging or creating pull requests.

What is the best way to clean up temporary git worktrees without losing active work?

Cleaning up temporary git worktrees safely requires environment awareness to detect complex setups and validate the current git state, which prevents premature removal of active workspaces and orphaned files.

Can I delete a feature branch before tests pass?

No, automated verification enforces that all tests must pass before allowing any destructive or integration actions like feature branch deletion, ensuring workspace integrity and preventing accidental code loss.

Does this branching workflow support both standard repositories and complex worktree setups?

Yes, the branching workflow uses environment awareness to detect whether you are operating in a standard repository or a complex worktree setup, actively preventing accidental data loss during integration.

Why should I use a standardized workflow for closing development branches?

Using a standardized workflow for closing development branches eliminates ambiguity and risk by validating your git state, ensuring tests pass, and preventing broken states or orphaned files during cleanup.