# Commit Message

> Generates conventional commit messages by analysing staged git changes. Use when the user asks to commit, write a commit message, or mentions git commits.

- Skill: `whyashthakker/commit-message` (Agent Skill)
- Install (CLI): `npx skillmds@latest add whyashthakker/commit-message`
- Raw SKILL.md: https://api.skillmd.com/api/skills/whyashthakker/commit-message/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: whyashthakker (https://skillmd.com/u/whyashthakker)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/whyashthakker/commit-message

---


# Commit Message Generator

Analyse the current staged changes and generate a conventional commit message.

## Workflow
1. Run `git diff --cached --stat` to see which files changed
2. Run `git diff --cached` to see the actual diff content
3. Determine commit type: feat, fix, refactor, docs, test, chore, style, perf
4. Write subject line in imperative mood, max 72 characters
5. Add body paragraph explaining WHY the change was made

## Output Format
Output the commit message as plain text, ready to paste into git commit -m.
Never wrap in a code block.

