commit-message-writer
SKILL.md
Commit Message Writer
Overview
Draft commit messages from intent. Explain why the change exists, not just what changed.
Workflow
- Gather the rationale from the user-agent conversation, project docs, explored implementation, or recent git history.
- Infer the most defensible reason when the diff does not state it explicitly.
- Choose the narrowest conventional commit type that fits the change.
- Write a why-first subject line.
- Add a body only when extra context helps.
Subject
Use the form type(scope): why.
Prefer these conventional commit types:
-
feat: introduce user-facing capability -
fix: correct broken or risky behavior -
refactor: improve structure without intended behavior change -
perf: improve performance characteristics -
test: add or fix tests -
docs: change documentation only -
build,ci,chore: repository or tooling maintenance -
Stay at 50 characters or fewer.
-
Focus on intent or effect, not implementation steps or file edits.
-
Use a scope only when it adds meaning.
-
Avoid vague summaries such as
update,change,modifyormove.
Examples:
fix(auth): block expired token reuserefactor(api): simplify pagination flowfeat(billing): support invoice retry recovery
Body
When needed, leave the second line blank and start the body on the third line.
- Wrap every body line at 72 characters.
- Use the body for motivation, constraints, tradeoffs, or follow-up context.
- Do not repeat the diff unless that detail is needed to explain why.
Weekly Installs
6
Repository
stefafafan/skillsFirst Seen
5 days ago
Security Audits
Installed on
opencode6
github-copilot6
codex6
kimi-cli6
gemini-cli6
cursor6