Back to Skills
📝

Generate Commit Message

Official Skill
/commit

Generates a conventional commit message based on your staged changes.

C

by Claude Rules

Skill author

Source
.claude/commands/commit.md
Review the staged git changes and generate a conventional commit message.

Follow the Conventional Commits specification:
- Format: <type>(<scope>): <description>
- Types: feat, fix, docs, style, refactor, test, chore, perf, ci, build
- Keep the subject line under 72 characters
- Use imperative mood
- Include a body if needed

Run git diff --staged to see the changes, then output only the commit message.

How to install this skill

Save the content above as a .md file in your .claude/commands/ directory, then use /commit in Claude Code.

Project-level (current project only):

.claude/commands/commit.md

Global (all projects):

~/.claude/commands/commit.md
View source

Related Skills

Browse by Tag

What are Skills?

Claude Code Skills are reusable slash commands stored as .md files in your .claude/commands/ directory. Type /commit in Claude Code to run this skill.

Learn more in the docs