finishing-a-development-branch
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup
Author
Category
Development ToolsInstall
Download and extract to your skills directory
Copy command and send to OpenClaw for auto-install:
Finishing a Development Branch - Smart Guide for Completing a Development Branch
Skills Overview
When your development task is complete and all tests pass, the Finishing a Development Branch skill helps you finish the code integration work—using structured options to decide whether to merge locally, create a PR, keep the branch, or abandon the work.
When to Use
Core Features
Before showing any options, the skill automatically runs your project’s test suite (e.g., npm test, cargo test, pytest, go test, etc.) to ensure only code that passes tests can proceed to the merge flow. If tests fail, it displays detailed failure information and blocks you from continuing.
The skill provides four clear options for you to choose from:
Each option includes a clear execution flow description, avoiding uncertainty caused by open-ended decision-making.
Based on your choice, the skill intelligently handles Git worktree cleanup:
Frequently Asked Questions
Do I have to run tests before finishing development?
Yes—this is mandatory. Before any merge options are shown, the skill automatically runs the project’s test suite. If tests fail, you must fix all failing tests before you can continue. This ensures only verified code is allowed into the main branch.
When should I create a Pull Request instead of merging locally?
If you need team code review, or you’re collaborating on a shared project, you should choose to create a PR. If it’s a personal project, or your team uses a “merge first, review later” workflow, local merge may be more efficient. The skill will run the appropriate flow based on your choice.
Can deleting a branch or discarding work be undone?
A normal deletion (
git branch -d) can usually be recovered in Git, but discarding (git branch -D) permanently deletes the branch and all its commits. Therefore, the skill adds a second confirmation step for discard operations—you must type "discard" to proceed. If you think you might need the work in the branch, it’s recommended to choose option 3 (keep the branch) instead of option 4.