Commit Message

Write clear conventional commit messages from git diffs or change descriptions. Use when committing, writing commit messages, or summarizing staged changes. Do NOT use for PR descriptions or release notes.

bjg4 6a62f2f 861 B Updated

File contents

Commit Message

Quick start

From the diff or change summary, produce:

  • Subject: imperative, ≤72 chars, conventional type if clear (feat:, fix:, docs:)
  • Body (optional): what and why, wrapped at 72 chars

Conventional commits

Type When
feat New capability
fix Bug fix
docs Documentation only
refactor Behavior-preserving restructure

Default to feat or fix when obvious; otherwise omit prefix and write a clear subject.

Error handling

If no diff or summary provided, ask for git diff --staged output or a one-line change description.

bjg4/bgskillz/tree/main/bakeoff/fixtures/v5/commit-message/commit-message commit 6a62f2fc75

Frequently asked questions

npx skillmds@latest add bjg4/commit-message-4