finishing-a-development-branch

Verify tests and present merge, pull request, or discard options for a development branch.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/maddhruv/cuttlefish --skill finishing-a-development-branch-maddhruv
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/maddhruv/cuttlefish/tree/main/.agents/skills/finishing-a-development-branch
Command: npx skills add https://github.com/maddhruv/cuttlefish --skill finishing-a-development-branch-maddhruv

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of concluding development tasks by providing clear, actionable options for integrating completed work, ensuring a clean and efficient workflow.

Core Features & Use Cases

  • Test Verification: Automatically checks if project tests pass before proceeding.
  • Branch Integration: Guides users through merging locally, creating pull requests, or discarding work.
  • Worktree Management: Handles the cleanup or preservation of development worktrees.
  • Use Case: After finishing a new feature, this Skill will verify your code passes all tests, then ask if you want to merge it to main, create a PR, keep it as-is, or discard it, managing the necessary Git commands for your choice.

Quick Start

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

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 finalize a development branch and verify tests before merging?

To finalize a development branch, this Skill automatically verifies that your project tests pass before proceeding. Once tests pass, it determines the base branch and presents structured options to merge locally, create a pull request, or discard the work.

What is the best way to manage worktree cleanup after completing a feature?

The best way to manage worktree cleanup is by using an integration strategy that handles cleanup or preservation automatically. This Skill manages worktree cleanup based on your chosen branch integration method, whether you merge or create a pull request.

How do I create a pull request or merge code locally after finishing development?

To create a pull request or merge code locally after finishing development, this Skill guides you through structured options for code integration. It ensures tests pass first, then executes the necessary Git commands for your chosen path.

Can I discard my current development work if tests fail or the feature is no longer needed?

Yes, you can discard your current development work if tests fail or the feature is no longer needed. This Skill presents discarding the work as a structured option alongside merging or creating a pull request.

Does this branch management workflow determine the correct base branch automatically?

Yes, this branch management workflow determines the correct base branch automatically. It identifies the appropriate base branch before presenting structured options for merging, pull request creation, or discarding your completed development work.

What are the limitations of automating code integration and branch management?

A limitation of automating code integration is that this Skill requires project tests to pass before allowing you to proceed with any branch management options. You cannot merge, create a pull request, or discard work until test verification is complete.