branch-finish

Squash Git commits, run tests, and clean up branches.

1|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/manastalukdar/claude-devstudio --skill branch-finish
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: branch-finish
Source: https://github.com/manastalukdar/claude-devstudio/tree/main/skills/branch-finish
Command: npx skills add https://github.com/manastalukdar/claude-devstudio --skill branch-finish

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the process of finalizing a Git branch by intelligently squashing commits, running tests, verifying PR status, and cleaning up local and remote branches, ensuring a clean and professional commit history.

Core Features & Use Cases

  • Automated Squashing: Consolidates multiple commits into a single, meaningful commit with an auto-generated conventional commit message.
  • Intelligent Rebase: Handles complex rebase scenarios with conflict detection and guidance.
  • Validation: Runs tests and checks PR/MR status before cleanup.
  • Safe Cleanup: Provides options to delete local and remote branches after successful completion, with automatic backups.
  • Use Case: After completing a feature, run /branch-finish to automatically squash your 10 small commits into one clean commit, run your tests, and then delete the feature branch locally and remotely.

Quick Start

Run the branch-finish skill to complete your current Git branch workflow.

Frequently Asked Questions about branch-finish

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

FAQPage Schema
How do I squash commits and generate a conventional commit message before merging a Git branch?

You can squash commits and generate a conventional commit message by automating the branch completion process. This Skill consolidates multiple commits into a single meaningful commit and generates the message automatically.

What's the best way to clean up local and remote Git branches after a pull request is merged?

The best way to clean up Git branches safely is to use an automated workflow that verifies pull request status first. This Skill provides safe local and remote branch deletion with automatic backups after successful integration.

Can I run tests automatically before completing and cleaning up a Git feature branch?

Yes, you can run tests automatically before completing a Git feature branch. This Skill integrates test validation into the workflow, ensuring your code passes checks before branch cleanup occurs.

How does intelligent rebase handle conflict detection when finalizing a Git branch?

Intelligent rebase handles conflict detection by identifying complex rebase scenarios during branch finalization. The Skill detects potential conflicts and provides guidance to resolve them safely before squashing commits.

Do I need an interactive workflow to squash commits, or can the Git branch completion process run automatically?

You do not need an interactive workflow; the Git branch completion process supports automated workflows. This Skill allows you to run safely without interaction, efficiently squashing commits and cleaning up branches.

Why does Git branch cleanup fail if the pull request status is not checked first?

Git branch cleanup fails without PR validation because merging unresolved requests causes history inconsistencies. This Skill checks pull request status before deletion to ensure safe and efficient code integration.