All skills
Skillintermediate

/git:commit - Conventional Commits

Create well-formatted commits with conventional commit messages and emoji.

Claude Code Knowledge Pack7/10/2026

Overview

/git:commit - Conventional Commits

Create well-formatted commits with conventional commit messages and emoji.

  • Purpose - Standardize commit messages across the team
  • Output - Git commit with conventional format
/git:commit [flags]

Arguments

Optional flags like --no-verify to skip pre-commit checks.

How It Works

  1. Change Analysis: Reviews staged changes to understand what was modified
  2. Type Detection: Determines commit type (feat, fix, refactor, etc.)
  3. Message Generation: Creates descriptive commit message following conventions
  4. Emoji Selection: Adds appropriate emoji for the commit type
  5. Commit Creation: Executes git commit with formatted message

Commit Types with Emoji

EmojiTypeDescription
✨featNew feature
šŸ›fixBug fix
šŸ“docsDocumentation changes
šŸ’„styleCode style changes (formatting)
ā™»ļørefactorCode refactoring
⚔perfPerformance improvements
āœ…testAdding or updating tests
šŸ”§choreMaintenance tasks
šŸ”ØbuildBuild system changes
šŸ‘·ciCI/CD changes

Usage Examples

# Basic commit after making changes
> git add .
> /git:commit

# Skip pre-commit hooks
> /git:commit --no-verify

# After code review
> /review-local-changes
> /git:commit

Best Practices

  • Keep commits focused - One logical change per commit
  • Reference issues - Include issue numbers when applicable
  • Review before commit - Use code review commands first

Conventional Commit Format

The plugin follows the conventional commits specification:

<type>(<scope>): <description>

[optional body]

[optional footer(s)]

Example Commit Messages

Feature Commit

✨ feat(auth): add OAuth2 authentication

Implement OAuth2 with Google and GitHub providers
- Add OAuthController for callback handling
- Implement token exchange and validation
- Add user profile synchronization

Closes #123

Bug Fix Commit

šŸ› fix(cart): prevent duplicate items in shopping cart

Fix race condition when adding items concurrently
- Add distributed lock for cart operations
- Implement idempotency key validation

Fixes #456

Refactoring Commit

ā™»ļø refactor(order): extract order processing logic

Improve code organization and testability
- Extract OrderProcessor from OrderController
- Implement strategy pattern for order types

Related to #789