finishing-a-development-branch

Verify tests, identify a base branch, and execute merge, PR, keep, or discard options.

4|1|Updated Apr 11, 2026
One-click install
npx skills add https://github.com/shichengwuyu/PaiJiPlus --skill finishing-a-development-branch-shichengwuyu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/shichengwuyu/PaiJiPlus/tree/main/.trae/skills/finishing-a-development-branch
Command: npx skills add https://github.com/shichengwuyu/PaiJiPlus --skill finishing-a-development-branch-shichengwuyu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guide completion of development work by presenting clear options and handling chosen workflow. Core principle: Verify tests → Present options → Execute choice → Clean up. Announce at start: "I'm using the finishing-a-development-branch skill to complete this work."

Core Features & Use Cases

  • Verifies tests and determines a base branch before proposing actions to avoid broken integrations.
  • Presents exactly four explicit options: Merge locally, Push and create a Pull Request, Keep the branch as-is, or Discard this work.
  • Executes the chosen option and performs optional cleanup of the worktree, with post-action validation to ensure stability.

Quick Start

Activate the finishing-a-development-branch skill after your development work passes tests to finalize the merge or cleanup decision.

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 feature branch after passing tests?

To finalize a git feature branch, the skill verifies tests, identifies a base branch, and presents four explicit options: merge locally, push a pull request, keep as-is, or discard, with optional worktree cleanup.

What are the options for finishing a development branch in a Git workflow?

The options for finishing a development branch include merging locally, pushing to create a pull request, keeping the branch for later, or discarding the work entirely, followed by optional worktree cleanup.

Can I create a pull request automatically when my feature branch is complete?

Yes, you can create a pull request automatically by selecting the explicit push and create a Pull Request option when finalizing a completed feature branch.

Does the skill require tests to pass before merging a feature branch?

Yes, the skill requires strict test success before proceeding with any branch finalization actions to avoid broken integrations.

How do I clean up my git worktree after merging a completed branch?

You can clean up your git worktree after merging by selecting a finalization option, which triggers the skill to execute the chosen action and perform optional worktree cleanup with post-action validation.

What is the best way to discard a feature branch and its worktree?

The best way to discard a feature branch is to select the explicit discard option during finalization, which executes the deletion and performs optional worktree cleanup while validating stability.