← All skills
Prompt · Slash command✓ Verified

Commit Message

Generate a conventional commit message from staged changes.

What happens when you install it

1

You run the install command

mcp install-skill commit-message

MCPHub CLI downloads this prompt from the registry.

2

Saved as a file in Claude Code

~/.claude/commands/commit-message.md

Claude Code reads all .md files in this folder as slash commands.

3

Use it in any conversation

/commit-messagein Claude Code (after restart)

Claude runs the prompt against your current file or selection — no copy-paste needed.

Content

Commit Message

Generate a conventional commit message for the staged changes.

Format

<type>(<scope>): <short description> [optional body — what and why, not how] [optional footer — Closes #123, BREAKING CHANGE: ...]

Types

TypeUse when
featNew feature or capability
fixBug fix
docsDocumentation only
refactorRestructure without behavior change
testAdding or fixing tests
perfPerformance improvement
choreBuild, tooling, dependencies
ciCI/CD pipeline changes
styleFormatting, whitespace (no logic change)

Rules

  • Scope optional but useful: auth, api, ui, db
  • Short description: imperative mood, lowercase, no period, max 72 chars
  • Add body only if the why isn't obvious from the diff
  • Reference issues in footer: Closes #123

Output

Output only the commit message — no explanation, no markdown wrapper.

Install

mcp install-skill commit-message

After install, restart Claude Code and type:

/commit-message

Requires MCPHub CLI

Looking for Agents?

Agents run with a full system prompt and persistent behavior — not just a one-off command.

Browse agents →