drafting-conventional-commits
Installation
SKILL.md
Conventional Commit Drafter
Overview
Turn a short change summary into a Conventional Commits message. If the user asks you to infer changes, inspect the local git diff. Ask only for missing essentials like type, scope, or breaking change details.
Workflow
- If the user provides a summary, read it. If they ask you to check changes, inspect
git status -sbandgit diff --stat, then open specific diffs as needed. - Infer a commit type.
- Identify an optional scope (subsystem, module, or area). Omit if unclear.
- Draft a concise subject in imperative mood, lower-case, no trailing period.
- Include a brief body that explains the reason for the change (why, not how). If the reason is not clear from the summary or diff, ask the user for it.
- Add footers for breaking changes or issue references.