finishing-branch

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

11|4|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/wpank/ai --skill finishing-branch-wpank
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-branch
Source: https://github.com/wpank/ai/tree/main/skills/tools/finishing-branch
Command: npx skills add https://github.com/wpank/ai --skill finishing-branch-wpank

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pytest, and includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the process of finalizing a development branch, ensuring code quality and preventing accidental data loss or merge conflicts.

Core Features & Use Cases

  • Test Verification: Automatically runs tests before proceeding with integration.
  • Branch Integration Options: Provides clear choices for merging, creating a Pull Request, keeping the branch, or discarding work.
  • Worktree Cleanup: Manages temporary worktrees to keep your environment tidy.
  • Use Case: After completing a new feature, you can use this Skill to automatically run your test suite, then choose to merge the branch into main, create a PR, or safely discard the changes if the feature is no longer needed.

Quick Start

Use the finishing-branch skill to finalize your current development branch.

Frequently Asked Questions about finishing-branch

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

FAQPage Schema
How do I automate git branch integration and cleanup after finishing a feature?

Automating git branch integration involves running test suites, then selecting to merge, create a pull request, or cleanup the branch. This workflow safely finalizes development branches into main while maintaining a tidy environment.

Can I run pytest automatically before merging a git branch?

Yes, you can run pytest automatically before merging a git branch. The workflow verifies your tests first, ensuring code quality and preventing accidental data loss or merge conflicts before presenting integration options.

What is the best way to manage git worktrees and discard unnecessary changes?

Managing git worktrees and discarding changes requires a cleanup workflow that safely removes temporary worktrees. You can select to discard work entirely, keeping your development environment tidy without losing main branch integrity.

Does this branch finalization workflow require standard Git command-line tools?

Yes, this branch finalization workflow requires Git command-line tools and adherence to standard Git workflows. It is designed for post-implementation scenarios where code is ready for integration into a main branch.

How do I create a pull request after verifying tests on my development branch?

To create a pull request after verifying tests, the workflow automatically runs your suite and presents clear choices. You simply select the PR option from the integration menu to safely finalize your development branch.

Why run tests before choosing to merge or keep a git branch?

Running tests before choosing to merge or keep a git branch ensures code quality and prevents integration failures. This verification step validates your suite before executing the chosen workflow to safely complete your code.