finishing-a-development-branch

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

Updated Feb 27, 2026
One-click install
npx skills add https://github.com/ZJUxjy/opencode_lite --skill finishing-a-development-branch-zjuxjy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/ZJUxjy/opencode_lite/tree/main/skills/finishing-a-development-branch
Command: npx skills add https://github.com/ZJUxjy/opencode_lite --skill finishing-a-development-branch-zjuxjy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of concluding development work by providing a structured approach to merging, creating pull requests, or discarding changes, ensuring a clean and efficient workflow.

Core Features & Use Cases

  • Test Verification: Automatically checks if tests pass before proceeding.
  • Branch Integration: Guides through merging to base branches or creating pull requests.
  • Worktree Management: Handles the cleanup or preservation of worktrees based on the chosen action.
  • Use Case: After completing a new feature, use this Skill to ensure all tests pass, then choose to merge it locally, push it for a PR, or safely discard it if the work is no longer needed.

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 git development branch after finishing a feature?

To finalize a git development branch, you can verify tests, choose to merge it locally, push it for a pull request, keep it, or discard it, followed by appropriate worktree cleanup.

What is the best way to merge a git branch and clean up the worktree?

The best way to merge a git branch and clean up involves executing structured integration options like merging or pushing, which automatically handles necessary worktree management and cleanup.

Can I create a pull request directly from my local git workflow?

Yes, you can create a pull request from your local git workflow by selecting the PR integration option, which pushes your development branch to the remote repository for review.

How do I verify tests before merging a development branch?

You can verify tests before merging a development branch through automated test verification, ensuring all checks pass before presenting structured options for branch integration.

Does the git branch finishing workflow support discarding changes?

Yes, the git branch finishing workflow supports discarding changes, allowing you to safely discard a development branch if the work is no longer needed while managing cleanup.

When should I keep a development branch instead of merging it?

You should keep a development branch instead of merging when ongoing work is required, utilizing the structured integration options to preserve the branch and its associated worktree without finalizing.