Toolverse
All skills

generating-smart-commits

by jeremylongshore

This skill generates conventional commit messages using AI analysis of staged Git changes. It automatically determines the commit type (feat, fix, docs, etc.), identifies breaking changes, and formats the message according to conventional commit standards. Use this when asked to

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
DevOps

About this skill

This skill generates conventional commit messages using AI analysis of staged Git changes. It automatically determines the commit type (feat, fix, docs, etc.), identifies breaking changes, and formats the message according to conventional commit standards. Use this when asked to create a commit message, write a Git commit, or when the user uses the /commit-smart or /gc command. It is especially useful after changes have been staged with git add.

How to use

  1. Przygotuj zmiany do commita, dodając je do staging area za pomocą git add — wybierz pliki, które chcesz uwzględnić w commicie.

  2. Poproś Claude'a o wygenerowanie wiadomości commita, używając polecenia /commit-smart lub /gc, albo po prostu napisz "Wygeneruj wiadomość commita" — umiejętność automatycznie przeanalizuje zmienione pliki.

  3. Claude przeanalizuje zmienione linie kodu i określi typ zmian — czy to nowa funkcja (feat), poprawka błędu (fix), zmiana dokumentacji (docs) czy inna kategoria.

  4. Umiejętność wygeneruje gotową wiadomość commita w formacie Conventional Commits, np. feat(auth): Implement user authentication module — wiadomość będzie zawierać typ, zakres i opis zmian.

  5. Przejrzyj wygenerowaną wiadomość na ekranie — sprawdź, czy dokładnie opisuje Twoje zmiany i czy zawiera wszystkie istotne informacje.

  6. Zatwierdź wiadomość i wykonaj commit za pomocą git commit -m "[wygenerowana wiadomość]" — Twoje repozytorium będzie miało spójne, profesjonalne historie zmian.

Related skills