git-trunk-branch-and-pr-automation
Installation
SKILL.md
Trunk-based branches + squash-PR automation
A trunk-based workflow where every change is a short-lived branch off main,
merged via squash with a Conventional Commit PR title. That title becomes
the single commit on main that semantic-release
reads — so naming and title hygiene aren't cosmetic, they drive the release.
Templates: templates/ — branch-name validation, the PR-title
normaliser workflow, and the shared normalize-pr-title.js.
The model
- Trunk-based: branch off
main, keep PRs small, merge frequently;mainstays releasable. Don't use long-liveddevelop/release branches unless you must stabilise a release while trunk moves on, or support multiple live versions. - Branch naming:
feature/<desc>,fix/<desc>,hotfix/<desc>— plus AI-agent prefixesclaude/ cursor/ codex/ copilot/ codegen-bot/ dependabot/for agent- and bot-authored branches. Validated bybranch-name-check.yml.