commit-conventions
Installation
SKILL.md
Commit Conventions
Overview
Plan and execute commits that follow Conventional Commits plus any repository rules in AGENTS.md. Default to multiple commits when changes span more than one logical unit.
Workflow
- Read AGENTS.md (repo root or nearest) and apply any git/commit rules.
- Inspect the working tree:
git status -sb,git diff --stat, and focusedgit diffas needed. - Group changes by logical unit (feature, fix, refactor, docs, build/CI, etc.).
- If more than one logical unit exists, create multiple commits. Propose a brief commit plan before committing.
- Message heuristic: if draft subject wants
and, list separators, or >1 scope/target, split before committing. - Stage per group (
git add -por specific paths), then commit with a Conventional Commit message. - If the user asks for a single commit but changes are multiple logical units, warn and ask for confirmation before combining.