semantic-commit
Installation
SKILL.md
Semantic Commit
Describe the actual change precisely. Never invent scope, motivation, issue IDs, tests, or breaking changes.
Workflow
- Read repository instructions and inspect
git status, the staged diff, the unstaged diff, and recent commit subjects. - If a commit was requested, verify which files are intended. Do not stage unrelated changes or modifications made by someone else.
- Derive the primary user-visible or engineering intent from the staged diff, not from filenames alone.
- Select the narrowest valid type and an optional scope consistent with repository history.
- Write an imperative, concise subject with no trailing period. Keep it independently understandable.
- Add a body only when the reason, behavior, migration, risk, or non-obvious trade-off needs explanation.
- Add footers for breaking changes, issue references, co-authors, or repository-required metadata only when supported by evidence.
- Validate that the message describes all staged changes. Split unrelated changes into separate commits when explicitly authorized.
Conventional Commit Format
<type>[optional scope][!]: <description>