npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

genai-commit

v1.4.0

Published

AI-powered commit message generator using Claude Code or Cursor CLI

Downloads

564

Readme

genai-commit

AI-powered commit message generator using Claude Code or Cursor CLI.

npm version License: MIT GitHub

Features

  • AI-powered commit messages - Generate meaningful commit messages using Claude Code or Cursor CLI
  • Conventional Commits - Automatically follows the Conventional Commits specification
  • Multi-language support - Generate titles and messages in English or Korean
  • Jira integration - Assign Jira tickets to commits and auto-merge related changes
  • Interactive workflow - Review, provide feedback, and refine before committing
  • Smart file grouping - Intelligently splits changes into logical commits

How It Works

flowchart TD
    A[Start: genai-commit] --> B[Collect Git Changes]
    B --> C{Changes Found?}
    C -->|No| D[Exit: No changes]
    C -->|Yes| E[Generate Tree Summary]
    E --> F[Build AI Prompt]
    F --> G{Select Provider}
    G -->|Claude Code| H[Claude Code CLI]
    G -->|Cursor CLI| I[Cursor CLI]
    H --> J[Parse JSON Response]
    I --> K[Parse Delimiter Response]
    J --> L[Display Proposed Commits]
    K --> L
    L --> M{User Action}
    M -->|y| N[Execute git add + commit]
    M -->|n| O[Cancel]
    M -->|f| P[Get Feedback]
    M -->|t| Q[Assign Jira Tickets]
    P --> F
    Q --> R[Merge Same-Ticket Commits]
    R --> L
    N --> S[Done]

Prerequisites

You need at least one of these AI CLI tools installed:

Installation

# Global installation
npm install -g genai-commit

# Or use directly with npx (no installation required)
npx genai-commit claude-code

Usage

Generate Commit Messages

# Using Claude Code
genai-commit claude-code

# Using Cursor Agent
genai-commit cursor-cli

# With specific model
genai-commit cursor-cli --model claude-4.5-sonnet
genai-commit claude-code --model sonnet

# Set language for both title and message
genai-commit claude-code --lang ko

# Set languages separately
genai-commit claude-code --title-lang en --message-lang ko

Authentication

# Login to Cursor Agent
genai-commit login cursor-cli

# Setup Claude token
genai-commit login claude-code

# Check status
genai-commit status claude-code
genai-commit status cursor-cli

List Supported Models

# List models for Cursor Agent
genai-commit models cursor-cli

# List models for Claude Code
genai-commit models claude-code

Interactive Options

After generating commit messages, you'll see an interactive menu:

| Option | Description | |--------|-------------| | [y] | Commit all proposed commits | | [n] | Cancel | | [f] | Provide feedback to regenerate | | [t] | Assign Jira tickets and regroup commits |

Options

| Option | Description | Default | |--------|-------------|---------| | --lang <lang> | Set both title and message language (en|ko) | - | | --title-lang <lang> | Language for commit title | en | | --message-lang <lang> | Language for commit message | ko | | --model <model> | Model to use | claude-4.5-sonnet (Cursor) / haiku (Claude) |

Examples

Basic Usage

# Navigate to your git repository
cd my-project

# Make some changes
echo "console.log('hello');" >> src/index.js

# Generate and create commits
genai-commit claude-code

With Jira Integration

  1. Run genai-commit claude-code
  2. Review proposed commits
  3. Press t to assign Jira tickets
  4. Enter Jira URLs for each commit
  5. Commits with the same Jira ticket are automatically merged
  6. Press y to commit

Providing Feedback

  1. Run genai-commit cursor-cli
  2. Review proposed commits
  3. Press f to provide feedback
  4. Enter your feedback (e.g., "Split the auth changes into separate commits")
  5. AI regenerates based on your feedback
  6. Press y to commit

Supported Commit Types

Following the Conventional Commits specification:

| Type | Description | |------|-------------| | feat | New feature | | fix | Bug fix | | docs | Documentation | | style | Formatting (no code change) | | refactor | Code restructuring | | test | Adding tests | | chore | Maintenance | | perf | Performance improvement | | ci | CI/CD changes | | build | Build system changes |

Configuration

The tool uses sensible defaults but can be configured:

| Setting | Default | Description | |---------|---------|-------------| | maxInputSize | 30000 | Maximum input size in bytes | | maxDiffSize | 15000 | Maximum diff size in bytes | | timeout | 120000 | AI request timeout in ms | | treeDepth | 3 | Directory depth for tree compression |

Requirements

  • Node.js >= 18.0.0
  • Git repository
  • Claude Code CLI or Cursor CLI installed and authenticated

License

MIT