# Commit Message

> Write a conventional commit message from a git diff. Use when the user asks to commit, write a commit message, or summarize staged changes.

- Skill: `archit-13028/commit-message` (Agent Skill)
- Install (CLI): `npx skillmds@latest add archit-13028/commit-message`
- Raw SKILL.md: https://api.skillmd.com/api/skills/archit-13028/commit-message/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Research & Search
- Author: Archit-13028 (https://skillmd.com/u/archit-13028)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/archit-13028/commit-message

---


# Commit Message

## Instructions

1. Run `git diff --staged` or read the provided diff.
2. Pick the type: feat / fix / docs / refactor / test / chore.
3. Subject line: imperative mood, 72 chars max, no trailing period.
4. Add a body only when the why is not obvious from the diff.

## Examples

- `feat: add retry with exponential backoff to http client`
- `fix: prevent duplicate rows when import runs twice`
- `docs: document the --dry-run flag`

