finishing-a-development-branch

Verify tests and integrate a feature branch via merge, PR, keep, or discard.

Updated Mar 11, 2026
One-click install
npx skills add https://github.com/sartoris-digital/pi-superpowers --skill finishing-a-development-branch-sartoris-digital
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/sartoris-digital/pi-superpowers/tree/main/skills/finishing-a-development-branch
Command: npx skills add https://github.com/sartoris-digital/pi-superpowers --skill finishing-a-development-branch-sartoris-digital

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of finalizing development work by providing clear, structured options for integrating completed code, ensuring a clean and efficient workflow.

Core Features & Use Cases

  • Test Verification: Ensures all tests pass before proceeding with integration.
  • Branch Integration Options: Offers clear choices for merging locally, creating a Pull Request, keeping the branch, or discarding the work.
  • Worktree Management: Handles the cleanup or preservation of worktrees based on the chosen integration method.
  • Use Case: After successfully implementing a new feature and passing all tests, use this Skill to safely merge your changes back into the main branch or prepare a Pull Request for review.

Quick Start

Use the finishing-a-development-branch skill to complete the current development work.

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 feature branch back into the main branch?

To merge a git feature branch, this Skill guides you through verifying test status, determining the base branch, and executing a local merge with necessary cleanup steps for safe integration.

What is the best way to create a pull request after finishing development work?

The best way to create a pull request after finishing development is to use this Skill to verify passing tests, determine the base branch, and push your feature branch to prepare it for review.

How do I clean up a git worktree after completing a feature branch?

To clean up a git worktree after completing a feature branch, this Skill handles worktree management by executing cleanup or preservation actions based on your chosen integration method.

Can I discard git branch changes if my tests fail during development?

You can discard git branch changes by selecting the discard option, which safely removes the work and cleans up the worktree without merging incomplete or failing code into the base branch.

Does this branch integration workflow support TDD principles?

Yes, this branch integration workflow supports TDD principles by verifying that all tests pass before presenting the four distinct integration options, ensuring adherence to test-driven development practices.

When should I keep a git feature branch as-is instead of merging?

You should keep a git feature branch as-is when you need to pause work or preserve changes without integrating them, an option this Skill provides alongside merging, pushing for a PR, or discarding.