# Finishing A Development Branch

> Use when implementation work is done and you need to decide how to finish it in Cursor, such as keeping the branch, merging locally, creating a pull request, or cleaning up temporary workspaces.

- Skill: `6bnbn/finishing-a-development-branch` (Agent Skill)
- Install (CLI): `npx skillmds@latest add 6bnbn/finishing-a-development-branch`
- Raw SKILL.md: https://api.skillmd.com/api/skills/6bnbn/finishing-a-development-branch/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: 6bnbn (https://skillmd.com/u/6bnbn)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/6bnbn/finishing-a-development-branch

---

# Finishing A Development Branch

## Goal
Close out development work cleanly and safely.

## Workflow
1. Verify the relevant tests, builds, or checks.
2. Confirm the current branch and base branch.
3. Present clear finish options to the user.
4. Execute only the option the user chooses.
5. Clean up temporary branches or worktrees only when appropriate.

## Recommended Options
- merge locally
- push and create a pull request
- keep the branch as-is
- discard the work after explicit confirmation

## Rules
- Do not offer completion options until verification has run.
- Do not discard work without an explicit confirmation step.
- Do not force-push unless the user explicitly asks.
- If a worktree was used, only clean it up when the chosen finish path makes that safe.
