generating-smart-commits
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
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
Przygotuj zmiany do commita, dodając je do staging area za pomocą
git add— wybierz pliki, które chcesz uwzględnić w commicie.Poproś Claude'a o wygenerowanie wiadomości commita, używając polecenia
/commit-smartlub/gc, albo po prostu napisz "Wygeneruj wiadomość commita" — umiejętność automatycznie przeanalizuje zmienione pliki.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.
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.Przejrzyj wygenerowaną wiadomość na ekranie — sprawdź, czy dokładnie opisuje Twoje zmiany i czy zawiera wszystkie istotne informacje.
Zatwierdź wiadomość i wykonaj commit za pomocą
git commit -m "[wygenerowana wiadomość]"— Twoje repozytorium będzie miało spójne, profesjonalne historie zmian.