finishing-a-development-branch

Verify tests and finalize a Git branch with merge, PR, defer, or discard options.

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

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 a structured approach to verifying code, integrating changes, and cleaning up the development environment, preventing common integration errors.

Core Features & Use Cases

  • Automated Test Verification: Ensures all tests pass before proceeding.
  • Guided Integration Options: Offers clear choices for merging, creating pull requests, or deferring work.
  • Safe Cleanup: Manages worktree and branch removal based on the chosen integration path.
  • Use Case: After completing a new feature, you can use this skill to automatically run tests, then choose to merge the branch locally, create a pull request, or safely discard the work if it's 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 safely finish a git development branch and clean up my worktree?

To ensure safe branch finalization, the process verifies all tests pass before presenting structured integration options (merge, PR, defer, or discard) and executing automated worktree cleanup to prevent integration errors.

How do I create a pull request after completing feature development?

You can create a pull request after feature development by selecting the PR integration option, which utilizes GitHub CLI to initiate the request and safely manage the local branch cleanup upon completion.

Do I need GitHub CLI to finalize a development branch?

GitHub CLI is optional for finalizing a development branch; it is only required if you choose to create a pull request. Git is the only required dependency for running tests and local merges.

What is the best way to discard git branch changes after testing?

The best way to discard git branch changes after testing is to select the discard integration option, which safely removes the development work and executes automated branch and worktree cleanup.

Can I defer git branch integration after running tests?

Yes, you can defer git branch integration after tests pass by selecting the defer option, which preserves your development work without merging or discarding, leaving the branch ready for future integration.