finishing-a-development-branch

Verify tests and execute branch integration options after development.

10|Updated Dec 15, 2014
One-click install
npx skills add https://github.com/baleen37/dotfiles --skill finishing-a-development-branch-baleen37
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finishing-a-development-branch
Source: https://github.com/baleen37/dotfiles/tree/main/modules/shared/config/claude/skills/finishing-a-development-branch
Command: npx skills add https://github.com/baleen37/dotfiles --skill finishing-a-development-branch-baleen37

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

After completing development work, deciding how to integrate it (merge, PR, discard) and ensuring a clean state can be error-prone. This skill guides you through verifying tests, presenting structured options, and executing the chosen workflow, ensuring a smooth and reliable completion process.

Core Features & Use Cases

  • Mandatory Test Verification: Ensures all tests pass before offering integration options, preventing broken merges.
  • Structured Options: Presents four clear choices: merge locally, push and create PR, keep as-is, or discard work.
  • Automated Cleanup: Handles branch deletion and worktree removal based on your choice.
  • Use Case: After finishing a new feature, this skill will run your tests, confirm they pass, then ask if you want to merge to main, create a Pull Request, or discard the work, and execute your choice.

Quick Start

1. Verify Tests:

npm test

# If tests pass, proceed. If not, fix them.

2. Present Options:

Implementation complete. What would you like to do?

1. Merge back to <base-branch> locally

2. Push and create a Pull Request

3. Keep the branch as-is (I'll handle it later)

4. Discard this work

3. Execute Choice: (e.g., for Option 1)

git checkout <base-branch>

git pull

git merge <feature-branch>

<test command>

git branch -d <feature-branch>

git worktree remove <worktree-path>