commit-guidelines
Installation
SKILL.md
Commit guidelines
Apply these rules before creating, amending, squashing, or proposing a Git commit. Loading this skill does not itself grant permission to commit, amend, rewrite history, or push.
Read the repository first
- Read the applicable
AGENTS.md,CLAUDE.md,CONTRIBUTING.md, and commit or release documentation. - Inspect
git status --short, the unstaged diff, the staged diff, and relevant untracked files. - Inspect recent commit subjects with
git log -5 --format=%sto learn local scope and wording conventions. - Identify which changes belong to the current task. If ownership is ambiguous or the worktree contains overlapping user changes, ask before staging or committing.
Repository rules may narrow the allowed types, scopes, validation, or commit boundaries. Keep the Conventional Commit format unless a higher-priority instruction explicitly requires another format. The ban on AI authorship and co-authorship always applies.