git-shortcuts
Git Shortcuts
SAFEGUARD: This skill must NEVER be invoked autonomously by the assistant. It is exclusively user-invoked — only run when the user explicitly types a
--prefixed shorthand (e.g.--cp,--cppr) in their message. The assistant must never decide on its own to call this skill.
Map each letter to an action and execute them in sequence.
Branch model
Trunk-based: ticket → main, or ticket → epic/<name> → main when a feature spans several tickets. Merging into the trunk ships nothing — --release does that.
First, check the repo has migrated. A repo that still has a staging branch runs the old one-directional model and none of the rules below apply to it:
git ls-remote --exit-code --heads origin staging > /dev/null 2>&1 && echo LEGACY
LEGACY → tell the user, then read LEGACY-STAGING.md next to this file and follow it instead. Never silently target the trunk in such a repo.
Base branch: never hardcode it. Prefer the repo's own helper when it has one: