finishing-a-development-branch

Verify tests and execute merge, push-and-PR, preserve, or discard workflows.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides the safe completion and integration of development work by verifying tests, offering structured completion options, executing the chosen workflow, and cleaning up branch worktrees to avoid accidental loss or broken merges.

Core Features & Use Cases

  • Test Verification: Run and require passing test suites before any merge, push, or discard action.
  • Structured Options: Present exactly four concise choices: merge locally, push and create a PR, keep the branch, or discard the work with typed confirmation.
  • Execution & Cleanup: Perform git operations for merging, pushing, PR creation, and explicit worktree removal when appropriate; require typed confirmation for destructive deletes.
  • Use Case: Finalize a completed feature branch by validating tests, choosing to open a PR with a prepared description, or safely discard an experimental branch after confirmation.

Quick Start

Use the finishing-a-development-branch skill to verify tests for branch feature-login, present the four completion options with base branch main, and then execute option 2 to push and create a pull request titled Add login feature.

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 merge a git feature branch after tests pass?

To safely merge a git feature branch, the workflow requires running and verifying passing test suites first, detecting the base branch, then presenting structured options like local merge or push-and-PR before executing the integration.

What is the best way to clean up git worktrees after merging a branch?

Cleaning up git worktrees after merging involves conditional worktree removal executed during the branch finalization process, ensuring no orphaned worktrees remain after a local merge or discard action is completed.

Can I discard a git development branch without accidentally losing changes?

You can discard a git development branch safely by requiring explicit typed confirmation for destructive deletes, ensuring the branch is only removed after intentional user verification during the discard workflow.

Does this branch management workflow support creating pull requests directly?

Yes, the branch management workflow supports creating pull requests directly by offering a push-and-PR option that pushes the branch and creates a pull request with a prepared description after test verification.

When do I need to verify tests before finalizing a development branch?

You need to verify tests before finalizing a development branch whenever the branch has implementation and tests and requires end-of-life actions like local merge, push-and-PR, preserve, or discard to prevent broken merges.

What are the options for finalizing a completed feature branch?

The options for finalizing a completed feature branch are exactly four choices: merge locally, push and create a pull request, keep the branch preserved, or discard the work with typed confirmation.