Imported from woditschka/agentic-coding-reference (
plugins/agent-team-go-copilot/skills/ship/SKILL.md). Install upstream withnpx skills add woditschka/agentic-coding-reference --skill ship. Copyright stays with the author.
Ship (Commit and Push)
Stage tracked changes plus any new feature files, write a single conventional commit, and push to origin.
Instructions
- Run
git status,git diff --stat, andgit log --oneline -10in parallel to assess the change set and match recent commit style. - Run the project's quality gate (see CLAUDE.md) and confirm green. If it fails, stop and report — do not commit broken builds.
- Draft a commit message following the convention in
CLAUDE.md(<type>(<scope>): <subject>, imperative mood, lowercase, no period, ≤50 chars). Reference the REQ-XX-NNN identifier in the subject when applicable. - Stage files explicitly by name. Do not use
git add -Aorgit add .. Skip.scratch/(gitignored) and any file that looks like a secret. - Commit using a HEREDOC so the body formats correctly. Include the
Co-Authored-Byattribution trailer your tool specifies; omit it if the tool specifies none. - Run
git push. If the local branch is ahead by more than one commit, surface that to the user before pushing. - Report the resulting commit SHA and the push destination.
Execution Template
git commit -m "$(cat <<'EOF'
<type>(<scope>): <subject>
<optional body — wrap at ~72 chars, explain why, not what>
<Co-Authored-By trailer as specified by your tool, if any>
EOF
)"
git push
Rules
- Never commit if the quality gate is red.
- Never use
--no-verify,--amend, orgit push --forceunless the user explicitly asks. - Never stage files that look like secrets (
.env, credentials, keys). Warn the user if they are present. - One commit per invocation. If the change set spans unrelated concerns, flag it and ask whether to split before committing.
- If the working tree is clean, report it and stop — do not create empty commits.