Git Ship
Use this skill when the user says "git ship" or asks to publish current branch changes quickly.
Goal
Run a safe one-pass release flow:
- •commit local changes,
- •push branch,
- •create a PR (or update/report existing PR).
Workflow
- •
Inspect git state
- •Run
git status --short - •Run
git diff --staged; git diff - •Run
git log --oneline -8
- •Run
- •
Stage and commit
- •Stage relevant files.
- •Create one concise commit message matching repo style.
- •Never include obvious secret files.
- •
Push branch
- •If no upstream branch, run:
- •
git push --set-upstream origin <current-branch>
- •
- •Else run:
- •
git push
- •
- •If no upstream branch, run:
- •
Create or reuse PR
- •Try
gh pr createwith clear title/body. - •If PR already exists, report existing PR URL instead of failing.
- •Try
- •
Report
- •Include commit hash, branch, and PR URL.
PR Body Template
md
## Summary - <1-3 bullets> ## Files - <key paths> ## Verification - <commands/tests run>
Safety Rules
- •Never force push.
- •Never amend unless explicitly requested.
- •Never skip hooks.
- •Do not push directly to
main/masterunless user explicitly asks.