finishing-a-development-branch

Verify tests and execute merge, pull request, keep, or discard actions on Git feature branches.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/withmartian-sandbox-darkside/ghrc-y-3126672651424eddb640ecc81321a665 --skill finishing-a-development-branch-withmartian-sandbox-darkside
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/withmartian-sandbox-darkside/ghrc-y-3126672651424eddb640ecc81321a665/tree/main/default/skills/finishing-a-development-branch
Command: npx skills add https://github.com/withmartian-sandbox-darkside/ghrc-y-3126672651424eddb640ecc81321a665 --skill finishing-a-development-branch-withmartian-sandbox-darkside

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides decisions and safe execution for completing a development branch after implementation verification, preventing merges of failing code and accidental data loss.

Core Features & Use Cases

  • Test verification: Enforces running tests (npm test, cargo test, pytest, go test) and halts on failures.
  • Deterministic outcomes: Presents exactly four choices: merge locally, push and create a pull request, keep the branch, or discard the work with confirmation.
  • Safe cleanup: Determines the base branch, handles git worktree removal when appropriate, and requires typed confirmation before destructive deletes.
  • Use case: Finalizing a feature branch after development and review so the agent can either integrate, publish, preserve, or discard changes in a controlled way.

Quick Start

Use the finishing-a-development-branch skill to verify tests and then choose to merge, create a PR, keep, or discard the current feature 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 feature branch after development?▼

To safely finish a git feature branch, you should run tests for verification, determine the base branch, and then choose to merge locally, create a pull request, keep the branch, or discard it with explicit confirmation.

Does finishing a development branch require running tests before merging?▼

Yes, finishing a development branch requires running tests using npm test, cargo test, pytest, or go test to verify implementation. The process halts on test failures to prevent merging failing code into the base branch.

How do I clean up a git worktree after merging a feature branch?▼

To clean up a git worktree after merging, the branch finishing process determines the base branch, handles worktree removal when appropriate, and requires typed confirmation before executing any destructive deletes to prevent accidental data loss.

What is the best way to create a pull request from a local feature branch?▼

The best way to create a pull request from a local feature branch is to verify tests pass, determine the base branch, and use gh commands to push the branch and publish the pull request directly through the command line interface.

Can I discard local git changes without losing uncommitted work accidentally?▼

Yes, you can discard local git changes safely because the branch finishing workflow explicitly requires typed confirmation before executing destructive actions like discarding work, preventing accidental data loss.

What are the options for finalizing a feature branch in git?▼

The options for finalizing a feature branch in git are deterministic: merge locally, push and create a pull request, keep the branch without changes, or discard the work entirely with explicit confirmation.