← ClaudeAtlas

commit-messagelisted

Write a clear Conventional Commits message from the staged changes (or a described change), and split work into sensible commits when a diff mixes unrelated changes. Use when the user says "commit this", "write a commit message", "what should the commit say", "fix my commit message", "squash message", "make this a conventional commit", or asks to clean up commit history before a PR. Reads the actual diff; never invents what changed. For pull request descriptions, use pr-description instead.
CharlieJamesGwapo/claude-work-skills · ★ 0 · Code & Development · score 73
Install: claude install-skill CharlieJamesGwapo/claude-work-skills
# Commit Message Writes the commit message a careful reviewer would want to read six months from now: what changed and *why*, in the project's own style. The usual failure is describing the mechanism ("update utils.ts") instead of the intent ("fix double-charging when a payment retries"). ## Inputs 1. **The diff.** `git diff --staged`. If nothing is staged, use `git diff` and say you're describing unstaged changes (don't stage files unless the user asked you to commit). 2. **The house style.** `git log --oneline -20`. If the repo already uses a style (Conventional Commits, gitmoji, ticket prefixes like `ABC-123:`), match it. Otherwise use Conventional Commits. 3. **The why.** From the conversation, the branch name, or an issue the user mentioned. If the reason isn't knowable, keep the body to *what*; never invent a motivation. ## Format (Conventional Commits) ``` <type>(<optional scope>): <summary> <body: why this change, what it does at a high level, anything surprising> <footer: BREAKING CHANGE: ..., Closes #123, Co-authored-by: ...> ``` - **type:** `feat` (new behaviour), `fix` (bug fix), `refactor` (no behaviour change), `perf`, `docs`, `test`, `build`, `ci`, `chore`, `style`, `revert`. - **scope:** the area touched, as the codebase names it (`auth`, `checkout`, `api`). Omit if it spans everything. - **summary:** imperative mood ("add", not "added"/"adds"), lowercase start, no trailing period, **≤ 72 characters** (aim for ~50). Say the outc