finishing-a-development-branch

Finalize development branches with guarded merge, pull request, retention, or discard options after mandatory test verification.

38|12|Updated Apr 24, 2026
One-click install
npx skills add https://github.com/databrickslabs/coding-agents-databricks-apps --skill finishing-a-development-branch-databrickslabs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/databrickslabs/coding-agents-databricks-apps/tree/main/.claude/skills/finishing-a-development-branch
Command: npx skills add https://github.com/databrickslabs/coding-agents-databricks-apps --skill finishing-a-development-branch-databrickslabs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers often rush to merge feature branches without running tests, accidentally delete committed work when discarding branches, or leave behind unused worktrees that clutter their local development environment. This Skill eliminates those risks by enforcing safe, structured branch completion workflows.

Core Features & Use Cases

  • Mandatory Test Verification: Automatically checks that all project tests pass before allowing any merge, PR creation, or discard actions to prevent broken code from being integrated.
  • Structured Completion Options: Presents exactly 4 clear, unambiguous choices for branch finalization (local merge, PR creation, keep as-is, discard) to eliminate decision fatigue and inconsistent workflows.
  • Safe Destructive Actions: Requires explicit typed confirmation before discarding branch work, and only cleans up worktrees for appropriate completion options to avoid accidental data loss.
  • Use Case: After finishing a feature to add user profile avatars, use this Skill to safely merge the branch to main, create a PR for team review, keep the branch for future work, or discard the experimental changes, all while ensuring your repository stays clean and tests pass.

Quick Start

Invoke the finishing-a-development-branch skill once your feature implementation is complete and all project tests have passed to safely finalize your branch work.

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

To safely merge a git development branch, this workflow enforces mandatory test verification before proceeding and presents structured options for local merging. It prevents broken code integration by requiring all project tests to pass before allowing any branch finalization.

How can I prevent accidentally deleting committed work when discarding a git branch?

To prevent accidentally deleting committed work when discarding a git branch, the workflow requires explicit typed confirmation for destructive discard operations. This safe destructive action guard ensures you cannot accidentally remove committed branch work without deliberate verification.

What is the best way to clean up unused git worktrees after completing a feature branch?

The best way to clean up unused git worktrees after completing a feature branch is to automate worktree cleanup during the branch finalization process. This maintains a clean local repository state by automatically removing worktrees for completed or discarded branches.

Do I need to run tests before creating a pull request for a feature branch?

Yes, you need to run tests before creating a pull request for a feature branch. The workflow enforces mandatory test verification, automatically checking that all project tests pass before allowing any PR creation or merge actions to prevent untested code from being integrated.

Can I keep a development branch as-is without merging or discarding it?

Yes, you can keep a development branch as-is without merging or discarding it. The workflow presents exactly four structured completion options, including keeping the branch for future work, alongside local merge, pull request creation, or discard actions.

What are the options for finishing a git bug fix or refactor branch?

The options for finishing a git bug fix or refactor branch include local merging, pull request creation, keeping the branch as-is, or discarding the work. These four structured choices eliminate decision fatigue and ensure consistent branch finalization workflows.