Skip to content

A CLI that copies a prompt containing changes for generating commit messages to the clipboard.

Notifications You must be signed in to change notification settings

dayongkr/for-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

for-commit

for-commit is a CLI tool that creates a prompt for generating a commit message using ChatGPT, Claude, or any other LLM or GPT tool.

To use it, simply run the command npx for-commit in a project directory managed by git. Once the command is executed, the tool generates a prompt based on the changes in your staged files, which you can then paste into ChatGPT, Claude, or any other LLM or GPT tool to generate a meaningful commit message.

Note: Since for-commit relies on the git command, you need to have git installed on your machine.

Example

npx for-commit # or pnpx for-commit

After running the command, you'll receive the following confirmation:

Prompt copied to clipboard 📋

At this point, you can paste the prompt into an AI tool to generate a well-structured commit message.

About

A CLI that copies a prompt containing changes for generating commit messages to the clipboard.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published