exit-strategy

Verify tests, select a finalization path, and clean up worktrees for development branches.

71|9|Updated Apr 13, 2026
One-click install
npx skills add https://github.com/kucherenko/gangsta --skill exit-strategy-kucherenko
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: exit-strategy
Source: https://github.com/kucherenko/gangsta/tree/main/skills/exit-strategy
Command: npx skills add https://github.com/kucherenko/gangsta --skill exit-strategy-kucherenko

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Finishing development branches often requires a structured, auditable process to verify tests, choose a finalization path, and clean up artifacts. This skill provides a repeatable workflow that ensures stability before merging, PR creation, or discarding work.

Core Features & Use Cases

  • Verify tests and confirm stability before closing or merging work.
  • Determine the base branch and present four explicit finalization options: merge locally, push and create a PR, keep the branch as-is, or discard.
  • Automate or guide safehouse/worktree cleanup to prevent orphaned branches and ensure repository hygiene.

Quick Start

Initiate the exit strategy workflow for this branch and follow the four options to finalize or discard the work.

Frequently Asked Questions about exit-strategy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I finalize a git branch after verifying tests?

To finalize a git branch after verifying tests, the workflow confirms test results, determines the base branch, and presents four explicit options: merge locally, create a pull request, keep as-is, or discard.

What is the best way to clean up git worktrees and orphaned branches?

The best way to clean up git worktrees and orphaned branches is using an automated safehouse management process during branch finalization, which ensures repository hygiene by discarding artifacts after selecting an exit path.

Can I choose between merging locally and creating a pull request for my branch?

Yes, you can choose between merging locally and creating a pull request. The workflow presents four explicit finalization options: merge locally, push and create a PR, keep the branch, or discard the work.

Does the branch finalization process verify test stability before merging?

Yes, the branch finalization process verifies test stability before merging. It automates a disciplined workflow that ensures stability by verifying test results before allowing you to select an exit path or perform cleanup.

When should I discard a development branch instead of keeping it?

You should discard a development branch when the work is no longer needed or fails stability checks. The workflow explicitly offers discarding as one of four finalization paths, followed by optional worktree cleanup.