# Commit Message Generator

> This skill should be used when the user asks to "generate commit message", "write commit message", "create git commit", or mentions analyzing staged changes for commits.

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

---


# Commit Message Generator

Generate clear, descriptive commit messages from git diffs.

## Workflow

1. Run `git diff --staged` to see changes
2. Analyze the modifications
3. Generate commit message with:
   - Summary under 50 characters
   - Detailed description
   - Affected components

## Message Format

```
type(scope): brief description

Detailed explanation of changes.
- Change 1
- Change 2
```

## Types

| Type | Description |
|------|-------------|
| feat | New feature |
| fix | Bug fix |
| docs | Documentation |
| style | Formatting |
| refactor | Code restructuring |
| test | Adding tests |
| chore | Maintenance |

## Best Practices

- Use present tense ("Add feature" not "Added feature")
- Explain what and why, not how
- Reference issues when applicable

