branch-finish

Complete branch workflow with squash, rebase, and cleanup

manastalukdar/ai-devstudio5 installsMITSynced Aug 22

Works with

Claude CodeCursorCodex CLIGitHub CopilotGemini CLI
---
name: branch-finish
description: Complete branch workflow with squash, rebase, and cleanup
license: MIT
---

# Branch Finish Workflow

I'll help you complete your branch workflow with intelligent squashing, rebasing, and cleanup.

Arguments: `$ARGUMENTS` - target branch (defaults to main/master)

## Branch Completion Philosophy

Finish branches cleanly:
- Smart commit squashing with meaningful messages
- Intelligent rebase strategy selection
- Local and remote branch cleanup
- PR/MR status verification
- Integration with `/commit` workflow

## Token Optimization

**Expected range**: 2,000–3,000 tokens (initial), 500 tokens (fast-forward)

**Caching**: Caches branch analysis in `.branch-finish-cache/<branch>/` with a 5-minute TTL.

**Early exit**: Returns immediately for single-commit branches or fast-forward merges.

**Patterns used**: Grep-before-Read, early exit, git diff scope default, caching

More Git Workflows skills

← All Git Workflows skills

Check your AI visibility

One URL in, a 0–100 score and the exact fixes out.

RUN THE CHECK

Browse all the tools

15 tools across six categories
13 of them never send your data anywhere

Free · No signup · No trial clock

SEE THE DIRECTORY