r/CommandCode • u/whoeventhisbruh • 9d ago
I made a mod for git commits
https://github.com/guruela/cmd-mod-commitHey guys,
I've built cmd-mod-commit, a mod that handles git commit for you in small, incremental, clean changes using the commitizen standard format.
This can be done using skills, you might ask.....Well, I'm glad you asked cause this does much more than that, like:
Custom Options:
Switch between standard commitizen standard commits or gitmoji + commitizen standard commits (for the crazy ones).
Live Footer Status: shows branch, dirty files, and sync status on the statusbar - auto refreshes on every tool call.
Alt+C/Option+C shortcut that triggers the commit command instantly.
Guardrails:
Commands like force push, reset --hard, etc. asks for confirmation.
Staging/Committing secret files like .env, secrets.json, etc. is hard blocked, meaning the agent will stop doing the commit process. (Ik the models nowadays are smart enough to infer and add them to the .gitignore files, but they can be a little flaky sometimes....so better safe than sorry).
And much more planned in the future...
The main use case for me is sometimes I start a project and forget to do git init or sometimes git commit to the point where there are many changes done and so I made this cause I'm lazy and it makes my life a little bit easier.
Here is the repo link for anyone interested: https://github.com/guruela/cmd-mod-commit
Feedback and PRs welcome.
(Ps. I know this is a pretty stupid mod, but hey if at all it's useful to others like me, I'm happy.)
Cheers!