sp-finish-branch

Verify tests, present merge or PR options, and clean up the worktree.

Updated Jun 8, 2026
One-click install
npx skills add https://github.com/JZKK720/cubecloud-agentic-os --skill sp-finish-branch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sp-finish-branch
Source: https://github.com/JZKK720/cubecloud-agentic-os/tree/main/.agents/skills/sp-finish-branch
Command: npx skills add https://github.com/JZKK720/cubecloud-agentic-os --skill sp-finish-branch

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the final steps of the development process, ensuring the worktree is ready for merge or PR, and guiding the user through options like merge, PR, keep, or discard.

Core Features & Use Cases

  • Verification: Ensures all tests pass and the worktree is ready for the next step.
  • Options: Provides the user with merge, PR, keep, or discard options for the worktree.
  • Cleanup: Cleans up the worktree after merge or PR, or deletes it if discarded.
  • Use Case: After completing development on a feature branch, use this Skill to automatically verify the work, present merge options, and clean up the worktree.

Quick Start

Use the sp-finish-branch skill to finalize the 'feature-branch' after development is complete.

Frequently Asked Questions about sp-finish-branch

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

FAQPage Schema
How do I automate development branch completion with verification and cleanup?

Automate development branch completion by running verification checks, presenting merge or PR options, and cleaning up the worktree automatically after finalizing the feature branch.

What is the best way to finalize a feature branch for a PR?

The best way to finalize a feature branch is using an automated workflow that ensures all tests pass, presents options to create a PR or merge, and handles the worktree cleanup.

Can I choose to keep or discard my worktree after merge verification?

Yes, you can choose to keep or discard your worktree after merge verification; the automated process presents options to merge, create a PR, keep, or discard the worktree entirely.

Do I need git to automate worktree cleanup and PR options?

Yes, you need git and related tools installed to automate worktree cleanup and PR options, as the Skill relies on these environment dependencies for branch operations.

How do I verify tests pass before merging a development branch?

Verify tests pass before merging a development branch by triggering the automated verification step, which ensures the worktree is fully tested and ready for the next merge action.

When should I not use automated branch finalization?

You should avoid automated branch finalization if your environment lacks git and related tools, or if your specific development branch requires manual intervention outside standard merge, PR, keep, or discard workflows.