jeremylongshore

generating-smart-commits

@jeremylongshore/generating-smart-commits
jeremylongshore
1,004
123 forks
Updated 1/18/2026
View on GitHub

Execute use when generating conventional commit messages from staged git changes. Trigger with phrases like "create commit message", "generate smart commit", "/commit-smart", or "/gc". Automatically analyzes changes to determine commit type (feat, fix, docs), identifies breaking changes, and formats according to conventional commit standards.

Installation

$skills install @jeremylongshore/generating-smart-commits
Claude Code
Cursor
Copilot
Codex
Antigravity

Details

Pathplugins/devops/git-commit-smart/skills/generating-smart-commits/SKILL.md
Branchmain
Scoped Name@jeremylongshore/generating-smart-commits

Usage

After installing, this skill will be available to your AI coding assistant.

Verify installation:

skills list

Skill Instructions


name: generating-smart-commits description: | Execute use when generating conventional commit messages from staged git changes. Trigger with phrases like "create commit message", "generate smart commit", "/commit-smart", or "/gc". Automatically analyzes changes to determine commit type (feat, fix, docs), identifies breaking changes, and formats according to conventional commit standards. allowed-tools: Read, Write, Edit, Grep, Glob, Bash(git:*) version: 1.0.0 author: Jeremy Longshore jeremy@intentsolutions.io license: MIT

Git Commit Smart

This skill provides automated assistance for git commit smart tasks.

Prerequisites

Before using this skill, ensure:

  • Git repository is initialized in {baseDir}
  • Changes are staged using git add
  • User has permission to create commits
  • Git user name and email are configured

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:

  • feat(auth): implement JWT authentication middleware
  • fix(api): resolve null pointer exception in user endpoint
  • docs(readme): update installation instructions

Error Handling

Common issues and solutions:

No Staged Changes

  • Error: "No changes staged for commit"
  • Solution: Stage files using git add <files> before generating commit message

Git Not Initialized

  • Error: "Not a git repository"
  • Solution: Initialize git with git init or navigate to repository root

Uncommitted Changes

  • Warning: "Unstaged changes detected"
  • Solution: Stage relevant changes or use git stash for unrelated modifications

Invalid Commit Format

  • Error: "Generated message doesn't follow conventional format"
  • Solution: Review and manually adjust type, scope, or description

Resources

  • Conventional Commits specification: https://www.conventionalcommits.org/
  • Git commit best practices documentation
  • Repository commit history for style consistency
  • Project-specific commit guidelines in {baseDir}/000-docs/007-DR-GUID-contributing.md

Overview

This skill provides automated assistance for the described functionality.

Examples

Example usage patterns will be demonstrated in context.

More by jeremylongshore

View all
rabbitmq-queue-setup
1,004

Rabbitmq Queue Setup - Auto-activating skill for Backend Development. Triggers on: rabbitmq queue setup, rabbitmq queue setup Part of the Backend Development skill category.

model-evaluation-suite
1,004

evaluating-machine-learning-models: This skill allows Claude to evaluate machine learning models using a comprehensive suite of metrics. It should be used when the user requests model performance analysis, validation, or testing. Claude can use this skill to assess model accuracy, precision, recall, F1-score, and other relevant metrics. Trigger this skill when the user mentions "evaluate model", "model performance", "testing metrics", "validation results", or requests a comprehensive "model evaluation".

neural-network-builder
1,004

building-neural-networks: This skill allows Claude to construct and configure neural network architectures using the neural-network-builder plugin. It should be used when the user requests the creation of a new neural network, modification of an existing one, or assistance with defining the layers, parameters, and training process. The skill is triggered by requests involving terms like "build a neural network," "define network architecture," "configure layers," or specific mentions of neural network types (e.g., "CNN," "RNN," "transformer").

oauth-callback-handler
1,004

Oauth Callback Handler - Auto-activating skill for API Integration. Triggers on: oauth callback handler, oauth callback handler Part of the API Integration skill category.