commit

SKILL.md

Git Commit

Pre-loaded context

  • Status: !git status
  • Diff: !git diff HEAD
  • Log: !git log --oneline -10

Message Style

Match repo's existing commit patterns from log.

  • Extreme concision, sacrifice grammar for brevity
  • Focus on "why" not "what"
  • Imperative mood

Workflow

  1. Review status and diff
  2. Analyze recent commit style from log
  3. Stage files explicitly (avoid git add . or -A)
  4. Commit with HEREDOC format matching repo style
  5. Run git status after to verify

Rules

  • NEVER amend unless requested
  • NEVER skip hooks
  • NEVER commit secrets
  • Only commit when requested
  • Match existing commit patterns

Error Handling

  • If pre-commit hook fails → fix the reported issue, re-stage changed files, create a NEW commit (never --amend)
  • If nothing to commit → report clean working tree and stop
  • If staged files contain secrets → abort, warn user, unstage the file
Weekly Installs
14
First Seen
Feb 13, 2026
Installed on
claude-code14
codex14
gemini-cli14
opencode14
trae-cn13
iflow-cli13