finishing-a-development-branch

Verify tests and present four git branch completion options.

4|1|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/jordanhindo/Turtlez --skill finishing-a-development-branch-jordanhindo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/jordanhindo/Turtlez/tree/main/.claude/skills/finishing-a-development-branch
Command: npx skills add https://github.com/jordanhindo/Turtlez --skill finishing-a-development-branch-jordanhindo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents broken or unfinished work from being merged by enforcing a clear “tests first” completion flow and a structured decision about what to do with the branch afterward.

Core Features & Use Cases

  • Test-Gated Completion: Runs the appropriate test suite before you can choose merge, PR, keep, or discard.
  • Explicit Workflow Options: Presents exactly four concise options (merge locally, open a PR, keep as-is, or discard with confirmation).
  • Worktree Cleanup Guardrails: Removes the worktree when appropriate for merge/pr/discard scenarios while preserving it for the “keep as-is” case.

Use case example: Your feature implementation is done and tests pass; you need to quickly decide whether to merge into main, create a PR, preserve the branch for later, or safely discard everything.

Quick Start

Ask your AI to finish this branch by verifying tests, offering the four merge/PR/keep/discard options, and then executing your chosen workflow.

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 finish a git development branch after completing implementation?

The best way to merge a feature branch is to gate the completion flow by verifying tests first, then choosing from four explicit options: merge locally, open a pull request, keep the branch as-is, or discard it with typed confirmation to prevent accidental data loss.

What are my git workflow options when tests pass on a development branch?

When tests pass on a development branch, you have exactly four workflow options: merge locally into the base branch, create a pull request, keep the branch for later work, or discard it. The workflow automatically derives the base branch for your chosen integration strategy.

How does worktree cleanup work when discarding or merging a git branch?

Worktree cleanup removes the worktree automatically for merge, pull request, and discard scenarios. If you choose to keep the branch as-is, the worktree is preserved so you can continue working in that isolated directory without losing your environment setup.

Can I discard a git branch without accidentally losing unmerged changes?

Discarding a git branch requires typed confirmation to prevent accidental loss of unmerged changes. Once confirmed, the workflow safely discards the branch and automatically cleans up the associated worktree to maintain a tidy local environment.

Why should I verify tests before deciding to merge or create a pull request?

You should verify tests before merging or creating a pull request to prevent broken work from being integrated. Enforcing a test-gated completion flow ensures that the codebase remains stable and that only passing implementations are considered for branch integration.