🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

smart-git-commit

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smart-git-commit

AI-powered smart commit message generator for Git diffs.

latest
npmnpm
Version
1.0.1
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

smart-git-commit

AI-powered commit message generator for your Git diffs.
Smart, concise, Conventional Commits ready.

📦 Installation

npm install -g smart-git-commit

Usage

git add .
smart-git-commit

It will analyze your staged changes and suggest a commit message like:

💡 Suggested commit message:

  feat(auth): added JWT validation middleware

Use this message? (Y/n)

OpenAI API Key Required

This CLI uses OpenAI's API to generate commit message suggestions. You need an OpenAI API Key to use AI-powered suggestions.

First-time Setup:

When you run it the first time, it will ask for your API Key and save it securely.

If you don't want to use AI suggested feature just put anything in place of the keys

To manually set or update API Key:

smart-git-commit config --api-key

Note: This only supports OpenAI API Keys (https://platform.openai.com/api-keys) for AI suggestions.

More update coming soon

✨ Features

  • AI/Smart Commit Suggestions using OpenAI.

  • Conventional Commit Format (feat(scope): message, fix(scope): message).

  • Supports manual edit flow.

  • API Key management.

  • Works with staged git diffs only (git add . required).

  • other flags coming soon

📄 License

MIT © 2025 Raushan Raj

Keywords

git

FAQs

Package last updated on 05 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts