Imported from majiayu000/claude-skill-registry (
skills/development/draft-commit-message/SKILL.md). Install upstream withnpx skills add majiayu000/claude-skill-registry --skill draft-commit-message. Copyright stays with the author.
Draft Commit Message
Overview
Draft a Conventional Commits message from a provided change summary. Always return the commit message in markdown format.
Workflow
- Read the user's change summary. If missing, ask for it.
- Produce a Conventional Commits message in the format
type(scope): summary. - Keep the summary under 72 characters and use the imperative mood.
- If there are breaking changes, add a
BREAKING CHANGE:footer. - Return the result in markdown (a fenced code block is preferred).
Output Rules
- Always use
type(scope): summary. - Use a short, imperative summary (max 72 characters).
- Include
BREAKING CHANGE:only when applicable. - Keep to the user's requested scope if provided; otherwise infer a reasonable scope from the change summary.
Examples (for internal guidance)
- User: "commit msg?"
- Output in markdown with a Conventional Commit message.
- User: "msg in md for this change"
- Output in markdown only.