home / skills / vadimcomanescu / codex-skills / finishing-a-development-branch
/skills/.experimental/devtools/finishing-a-development-branch
This skill helps you finish a development branch by syncing with the base, running tests, removing leftovers, and preparing for review.
npx playbooks add skill vadimcomanescu/codex-skills --skill finishing-a-development-branchReview the files below or copy the command above to add this skill to your agents.
---
name: finishing-a-development-branch
description: Use when preparing to finish a development branch. Ensure tests pass, changes are clean, and the branch is ready for review or merge.
---
# Finishing a Development Branch
Prepare a branch for review or merge with a clean, verified state.
## Quick Start
1) Sync with the target base branch.
2) Run relevant tests and linters.
3) Review diff for scope creep or leftovers.
4) Update docs or release notes if needed.
## Guardrails
- Don’t merge without tests or explicit approval.
- Avoid mixing unrelated changes in the same PR.
## References
- Extended examples: `references/examples.md`
This skill streamlines the final checks and cleanup when preparing a development branch for review or merge. It guides you to synchronize with the target base, verify tests and linters, and ensure the branch contains only intended changes. The goal is a high-quality, review-ready branch that can be confidently merged.
The skill inspects the branch state, runs or recommends running the relevant test suites and linters, and prompts a focused diff review to catch scope creep or leftover debug code. It also identifies missing documentation or release-note updates and enforces simple guardrails like requiring tests or explicit approvals before merging.
What if tests are flaky or take too long?
Prioritize fixing flaky tests or isolating slow tests; use targeted test runs for the changed areas and include a note in the PR if longer integration tests are pending.
Can I merge without updating docs?
Avoid merging user-visible changes without documentation. For small internal tweaks, document in follow-up PRs but call that out in the description and ensure reviewers agree.