finishing-a-development-branch

Validate tests and execute merge, PR, or cleanup workflows for Git branches.

2|Updated Oct 25, 2025
One-click install
npx skills add https://github.com/robertpelloni/workspace --skill finishing-a-development-branch-robertpelloni
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/robertpelloni/workspace/tree/main/AI_COORDINATION/skills/superpowers-skills-main/skills/collaboration/finishing-a-development-branch
Command: npx skills add https://github.com/robertpelloni/workspace --skill finishing-a-development-branch-robertpelloni

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill standardizes and automates the final stages of software development, ensuring that a feature or bug fix branch is properly tested, reviewed, and integrated into the main codebase. It minimizes errors and enforces best practices.

Core Features & Use Cases

  • Pre-merge Checklist: Automatically verify code quality, test coverage, and documentation.
  • Automated Merging: Facilitate conflict resolution and merge operations.
  • Use Case: After completing a feature, activate this skill to guide you through running all tests, requesting a code review, addressing feedback, and finally merging your branch into main, ensuring a smooth release.

Quick Start

Finish the 'feature/user-profile-edit' branch, ensuring all tests pass and a code review is requested.

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 merge a Git branch after tests pass?

Merging a Git branch after tests pass involves running your project's test suite, computing the base branch, and selecting a merge option. This Skill automates that workflow by validating tests first, then presenting merge, PR, preserve, or discard options to integrate your work into the main codebase.

What's the best way to finish a development branch with code review?

Finish a development branch by running tests, confirming they pass, then choosing to push a PR for code review or merge locally. This Skill guides you through validation and presents exactly four integration paths—including PR creation—so feedback is addressed before merging into main.

Can I automate testing and branch cleanup when finishing development?

Yes. This Skill automates test execution across npm, pytest, go test, and cargo test frameworks, then handles branch cleanup based on your chosen workflow. It runs the full test suite, validates the base branch, and cleans up the worktree after merging, pushing, preserving, or discarding.

How do I resolve merge conflicts when finishing a feature branch?

This Skill standardizes the final integration stage by validating tests and presenting merge options; it facilitates conflict resolution as part of the merge operation. If conflicts arise during merge, the workflow helps you address them before the branch is fully integrated.

What happens to my branch after I finish development?

After you finish development, your branch is cleaned up based on the option you select: merged into main, pushed as a PR, preserved for later, or discarded. This Skill ensures the worktree is cleaned accordingly so your repository stays organized.

Does this work with Git worktrees as well as branches?

Yes. This Skill applies across Git branches and worktrees, so you can finish development work regardless of whether you're using standard branches or worktrees. It handles cleanup for both setups.

Related Skills