git-commit-smart

AI-powered conventional commit message generator with smart analysis

View on GitHub
Author Jeremy Longshore
Namespace @jeremylongshore/claude-code-plugins-plus
Category devops
Version 1.0.0
Stars 1,193
Downloads 4
self.md verified
Table of content

AI-powered conventional commit message generator with smart analysis

Installation

npx claude-plugins install @jeremylongshore/claude-code-plugins-plus/git-commit-smart

Contents

Folders: commands, skills

Files: LICENSE, README.md

Documentation

AI-powered conventional commit message generator that analyzes your staged changes and creates professional, standardized commit messages automatically.

Features

Installation

# Add this marketplace to Claude Code
/plugin marketplace add jeremylongshore/claude-code-plugins

# Install the plugin
/plugin install git-commit-smart@claude-code-plugins-plus

Usage

Basic Usage

  1. Stage your changes:
git add .
  1. Generate commit message:
/commit-smart
# or use the shortcut:
/gc
  1. Review the generated message and confirm

Example Session

# Stage changes
git add src/auth/login.js src/api/users.js

# Generate commit
/gc

# Claude analyzes and proposes:
feat(auth): add OAuth2 Google login support

Implements Google OAuth2 authentication flow using Passport.js.
Users can now sign in with their Google account instead of
creating a new password.

Closes #123

# Commit with this message? (yes/no/edit)
yes

# Committed! 

Commit Types

The plugin automatically selects the appropriate type:

Requirements

Configuration

No configuration needed! The plugin works out of the box.

Optional Context

You can provide additional context:

/gc - emphasize that this fixes a security vulnerability

Pro Tips

Stage related changes together - Commit logical units, not random files

Use the /gc shortcut - Saves typing and speeds up workflow

Review before committing - Always check the generated message makes sense

Add issue references - Plugin will detect and include “Closes #123” when appropriate

Break up large changes - Multiple focused commits are better than one massive commit

When NOT to Use

Merge commits - Use git’s default merge message instead No staged changes - Stage changes first with git add Emergency hotfixes - When you need to commit immediately without review

Troubleshooting

“No changes staged for commit”

Solution: Run git add <files> first to stage your changes

“Merge in progress detected”

Solution: For merge commits, use git commit --no-edit instead

Commit message too generic

Solution: Add more context when calling the command: /gc - this fixes the login bug

Examples

Bug Fix

fix(api): correct typo in email normalization

Changed tolowerCase() to toLowerCase() to fix TypeError
when processing user emails.

New Feature

feat(search): add global search functionality

Implements full-text search across products, users, and orders.
New SearchBar component provides real-time suggestions as user types.

Closes #45

Breaking Change

refactor(auth)!: change login to use email instead of username

BREAKING CHANGE: login() now requires email parameter instead of username.
Clients must update their authentication calls:
- Before: login(username, password)
- After: login(email, password)

License

MIT License - see LICENSE for details

Contributing

Contributions welcome! See CONTRIBUTING.md for guidelines.

Support


Made with ️ for developers who want better commit messages without the hassle

Included Skills

This plugin includes 1 skill definition:

generating-smart-commits

|

View skill definition

Git Commit Smart

This skill provides automated assistance for git commit smart tasks.

Prerequisites

Before using this skill, ensure:

Instructions

  1. Analyze Staged Changes: Examine git diff output to understand modifications
  2. Determine Commit Type: Classify changes as feat, fix, docs, style, refactor, test, or chore
  3. Identify Scope: Extract affected module or component from file paths
  4. Detect Breaking Changes: Look for API changes, removed features, or incompatible modifications
  5. Format Message: Construct message following pattern: type(scope): description
  6. Present for Review: Show generated message and ask for confirmation before committing

Output

Generates conventional commit messages in this format:

type(scope): brief description

- Detailed explanation of changes
- Why the change was necessary
- Impact on existing functionality

BREAKING CHANGE: description if applicable

Examples:

Error Handling

Common issues and solutions:

No Staged Changes

**Git Not In

…(truncated)

Source

View on GitHub

Tags: devops gitcommitsconventional-commitsautomationdevopsproductivity