Back to Skills
📝
Generate Commit Message
Official Skill/commitGenerates a conventional commit message based on your staged changes.
.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.mdGlobal (all projects):
~/.claude/commands/commit.mdRelated 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.