@gumuskit/commit
v1.0.1
Published
AI-powered conventional commit generator with provider-agnostic support for OpenAI, Claude, and Ollama.
Downloads
37
Readme
@gumuskit/commit
Staged git diff'i okuyarak conventional commit mesajı öneren AI destekli CLI. Diff'i analiz eder, 3 seçenek sunar, sen seçersin.
Problem
git log --oneline
a3f2c1d fix stuff
b7e9d2a wip
c1a4f3b update
d8b2e1c asdfghÇözüm
git add .
gumuskit commit
# ✦ gumuskit commit
#
# 3 dosya, +47 -12 satır
# Commit mesajları üretiliyor...
#
# ? Commit mesajı seç:
# ● feat(auth): add email validation with zod schema
# ○ refactor(user): improve null handling in auth flow
# ○ fix: resolve type mismatch in user.email fieldKurulum
npm install -g gumuskit-cliAPI key'ini ortam değişkeni olarak ekle:
# .bashrc veya .zshrc'ye ekle
export ANTHROPIC_API_KEY=sk-ant-...Kullanım
# Temel kullanım
git add .
gumuskit commit
# Ollama ile tamamen ücretsiz ve local
gumuskit commit --provider ollama --model llama3Husky Hook Olarak
# Husky kur
pnpm add -D husky
pnpm exec husky init
# .husky/prepare-commit-msg
gumuskit commit --hook $1Maliyet
| Provider | Maliyet | Gizlilik | |----------|---------|----------| | Claude API | Kullanıcı öder (~$0.001/commit) | Anthropic'e gider | | Ollama (local) | Ücretsiz | Tamamen local |
Maliyet sana değil, kullanıcıya aittir. Kullanıcı kendi API key'ini kullanır.
Conventional Commit Formatı
Üretilen mesajlar Conventional Commits standardına uyar:
type(scope): description
feat → yeni özellik
fix → hata düzeltme
refactor → davranış değiştirmeyen kod değişikliği
chore → bağımlılık, config değişiklikleri
docs → dokümantasyon
test → test ekleme/düzenleme
style → formatlama, boşluk