finishing-a-development-branch

Verify tests pass, determine the base branch, and present four completion options.

141|20|Updated Dec 19, 2025
One-click install
npx skills add https://github.com/julianromli/opencode-template --skill finishing-a-development-branch-julianromli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/julianromli/opencode-template/tree/main/skill/finishing-a-development-branch
Command: npx skills add https://github.com/julianromli/opencode-template --skill finishing-a-development-branch-julianromli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Finishing a development branch helps teams finalize work after tests pass by providing a clear, auditable path to merge, PR creation, or cleanup decisions.

Core Features & Use Cases

  • Verify tests pass before presenting completion options to ensure safe integration.
  • Present exactly four options: merge locally, push and create PR, keep the branch as-is, or discard the work.
  • Clean up worktrees and branches according to the chosen option, minimizing clutter and risk.

Quick Start

Verify tests pass, determine the base branch, present the fixed set of completion options, and execute the chosen workflow.

Frequently Asked Questions about finishing-a-development-branch

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

FAQPage Schema
What is the best way to finish a git feature branch after tests pass?

You can finalize a git workflow by selecting one of four structured options: local merge, push and create a pull request, keep the branch as-is, or discard the work entirely. Each path ensures explicit base-branch determination and handles optional cleanup.

How do I clean up local git branches after merging a feature?

To clean up local git branches after merging, select the local merge or pull request option. The workflow executes optional worktree and branch cleanup automatically, minimizing clutter and integration risk after finalizing your changes.

Can I discard a development branch safely without losing unrelated work?

Yes, you can discard a development branch safely by choosing the discard option. This workflow path removes the specific feature branch and cleans the worktree, ensuring your base branch remains untouched during the cleanup process.

Does this git workflow require tests to pass before creating a pull request?

Yes, this git workflow requires tests to pass before creating a pull request. It verifies your feature branch against the explicit base branch first, ensuring safe integration before presenting any merge or PR completion options.

When should I keep a git branch as-is instead of merging or discarding it?

You should keep a git branch as-is when you are not ready to finalize changes. This completion option pauses the workflow, preserving your current feature work locally without merging, creating a pull request, or triggering cleanup steps.