What problem does it solve? When implementation work is done, deciding how to integrate a feature branch is error-prone: tests may not have run on the final tree, merges can target the wrong base branch, and worktree cleanup can silently destroy uncommitted files. This Skill enforces a safe, repeatable completion workflow. ## Core Features & Use Cases - Test Verification Gate: Runs the project's full test suite (npm test, cargo test, pytest, go test) before any integration decision and stops on failure. - Environment Detection: Distinguishes normal repos, named-branch worktrees, and detached HEAD states to present the correct integration options. - Structured Integration Menu: Offers merge locally, push and create a pull request, or keep the branch as-is, with discard available only on explicit typed confirmation. - Safe Worktree Cleanup: Removes only self-created worktrees under .worktrees/ or worktrees/, and never force-removes worktrees containing uncommitted files without asking. - Use Case: After finishing a feature on a branch in a git worktree, use this Skill to verify tests pass, merge into the confirmed base branch, re-test the merged result, and clean up the worktree without losing uncommitted notes. ## Quick Start Ask the AI to finish the current development branch using the finishing-a-development-branch skill once all tests pass.