About commit
A Git skill for staging selected files and creating a Conventional Commit without pushing. It guides the process from reviewing the diff and history through committing and verifying repository status.
Key features
- 01Review status, diff, and recent history
- 02Stage files by name
- 03Draft Conventional Commit messages
- 04Commit and verify repository status
Use cases
- 01Create a commit after reviewing changes
- 02Avoid including unrelated files in a commit
- 03Verify the repository after committing
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ paulnsorensen/ skillz-that-grillz --skill commitAfter installing, type/commitin Claude Code to confirm it loaded.
Details
From the project READMEcommit
Stage and commit. Conventional commits. No push.
Protocol
Run in parallel first:
git status
git diff HEAD
git log --oneline -5
Then sequentially:
- Understand the why — read the diff, understand what changed and why
- Stage specific files — by name, never
git add -Aorgit add . - Draft the message — see format below
- Commit via heredoc (preserves formatting)
- Verify with
git status
Commit message format
type(scope): short description (≤72 chars)
Optional body if nuance is lost without it.
Co-Authored-By: <agent-name> <agent-email>
The Co-Authored-By trailer is optional — fill in the agent identity your
harness provides, or omit the line entirely if the project doesn't want it.
Types: feat, fix, refactor, chore, docs, test, style
Focus on the why, not the what. The diff already shows what changed.
Use a heredoc to preserve formatting:
git commit -m "$(cat <<'EOF'
type(scope): short description
Co-Authored-By: <agent-name> <agent-email>
EOF
)"
Rules
- Never amend unless explicitly asked — create new commits instead
- Never --no-verify — don't skip hooks
- Never force-push to main/master
- No push, no PR — hand off to the gh skill for that
- Hook fails? Fix the issue, re-stage, create a new commit (not amend)
- Don't commit
.env, credentials, or large binaries — warn the user
Gotchas
- Heredoc commit messages with backticks or
$need single-quoted delimiter (<<'EOF'not<<EOF) - If prek hook fails, the commit did NOT happen — create a new commit after fixing, never amend
- Co-Authored-By trailer is optional — use the agent identity your harness exposes, or drop the line if the project doesn't track agent authorship
- Empty
git diff HEADafter staging means nothing new was added — checkgit diff --cachedinstead
Comments
Markdown supported