git-commit-craft
Skill2 starsChanged 8 days agoMITView on GitHub
Automated Conventional Commits generator, Git commit message linter, and changelog orchestrator. Enforces clean, structured, and auditable git history (type, scope, imperative subject, structured body bullet points, breaking change notices, and mandatory pairing co-author trailer). Use whenever preparing, crafting, formatting, validating, or automating Git commits across any repository.
- Reads credentials
- Installs packages
- Commits and pushes
1 other project uses a version of this.
Adopted by
Most recently taken up by
- MANVENDRA-github/agentrytheir own version, first seen Jul 6, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- MANVENDRA-github/agentry★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- templates/AGENTS.mdAGENTS.md
- templates/copilot-instructions.mdCopilot instructions
- clean-code-concise-docsSkill
- data-analysis-explorerSkill
- data-science-workbenchSkill
- diff-reviewSkill
- distinctive-ui-designSkill
- domain-scaffoldingSkill
- github-repo-publishSkill
- laravel-web-studioSkill
- ml-model-engineeringSkill
- professional-report-writerSkill
- readme-github-syncSkill
- release-deploy-checkSkill
- security-auditSkill
- shadcn-admin-design-systemSkill
- verify-and-testSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Every commit message across all repositories MUST strictly follow this tripartite format:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Git Commit Craft: Disciplined Git History & Automation System
A production-grade standard for writing, automating, and verifying Git commits. Every commit must be atomic, descriptive, traceable, and adhere to international engineering standards (Conventional Commits v1.0.0).
1. Commit Structure Standard
Every commit message across all repositories MUST strictly follow this tripartite format:
<type>(<scope>): <subject in lowercase imperative mood>
[optional body: explain WHAT changed and WHY, not how]
- Bullet point detail 1
- Bullet point detail 2
[optional footer: BREAKING CHANGE, Closes #issue]
Co-authored-by: aria sastra <192975116+ariasastra-dev@users.noreply.github.com>1.1 Types Specification
feat: Menambahkan fitur baru bagi pengguna atau sistem (memicu rilis MINOR pada SemVer).fix: Memperbaiki bug atau eror yang terdeteksi (memicu rilis PATCH pada SemVer).refactor: Perubahan struktur kode tanpa mengubah fungsi luar atau memperbaiki bug.perf: Optimasi performa, konsumsi memori, atau penurunan waktu query/eksekusi.test: Penambahan, refaktorisasi, atau perbaikan unit, integrasi, atau E2E test.docs: Perubahan dokumentasi saja (README, panduan kontribusi, spesifikasi OpenAPI).chore: Pembaruan dependensi, konfigurasi build tool, skrip pembantu, atau file.gitignore.style: Penyesuaian format/tata letak kode yang tidak memengaruhi logika (whitespace, koma, formatting).ci: Perubahan konfigurasi CI/CD pipeline (GitHub Actions, Dockerfile, release automation).
1.2 Scope Guidelines
Gunakan nama modul, fitur, atau domain spesifik dalam huruf kecil tanpa spasi:
feat(auth):fix(cart):refactor(database):perf(query):test(order):docs(readme):
1.3 Subject Rules
- Gunakan bentuk kalimat perintah imperatif waktu sekarang (imperative mood):
"add"(bukan "added" atau "adds"),"fix"(bukan "fixed"),"prevent"(bukan "prevented"). - Huruf pertama huruf kecil (kecuali nama class/identitas kapital khusus).
- DILARANG mengakhiri baris subjek dengan titik (
.). - Batasi panjang subjek maksimal 50–72 karakter.
1.4 Mandatory Pairing Trailer (Rule 12.1)
Pada SETIAP commit Git, sertakan trailer co-author akun sekunder pengguna secara mandiri dan otomatis:
Co-authored-by: aria sastra <192975116+ariasastra-dev@users.noreply.github.com>1.5 Mandatory Branch & Pull Request Flow (Rule 12.2 — Pull Shark & YOLO Engine)
Pada setiap repositori yang sudah memiliki cabang utama (main), DILARANG melakukan direct push (git push origin main). Seluruh perubahan wajib dikirim melalui siklus cabang fitur dan Pull Request menggunakan skrip otomatis scripts/ship-pr.ps1:
& "$HOME\.gemini\config\skills\git-commit-craft\scripts\ship-pr.ps1" `
-Type feat `
-Scope ui `
-Subject "align project titles and add preview assets" `
-Body "- Update project metadata`n- Optimize WebP screenshots"Skrip ship-pr.ps1 menjalankan 6 tahapan secara otomatis:
- Memindai staged diff dengan
scan-diff.ps1untuk mencegah kebocoran rahasia/PII. - Membuat cabang fitur baru (
<type>/<scope>-<slug>-<timestamp>). - Melakukan commit dengan format Conventional Commits dan menyematkan trailer
Co-authored-by(Rule 12.1). - Mendorong cabang fitur ke remote dan membuka Pull Request resmi via
gh pr create. - Menggabungkan (merge) Pull Request secara langsung (
gh pr merge --merge --delete-branch) sehingga penghitung lencana Pull Shark, Pair Extraordinaire, dan YOLO bertambah pada setiap perubahan. - Mengembalikan repositori lokal ke cabang
maindan menarik commit hasil merge (git pull).
2. Standar Commit Atomik (Atomic Commits)
- Satu Commit = Satu Perubahan Logis:
- Dilarang menggabungkan perbaikan bug, penambahan fitur baru, dan format ulang kode dalam 1 commit.
- Pisahkan commit refactoring sebelum melakukan penambahan fitur.
- Commit yang Dapat Divalidasi (Always Green Commits):
- Setiap commit di branch
mainatau saat PR harus dalam keadaan dapat di-build dan lulus pengujian (test suite passing). Jangan pernah meng-commit kode dalam kondisi sintaks rusak.
- Setiap commit di branch
- Kebersihan Staged Diffs:
- Selalu tinjau
git diff --stagedsebelum membuat commit. - Cegah masuknya file sementara (
.DS_Store,Thumbs.db,.env, log, cache).
- Selalu tinjau
3. Otomatisasi Penegakan (Enforcement & Tooling)
3.1 Setup Commitlint & Husky (Pre-commit & Commit-msg Guard)
Untuk mencegah commit acak atau tidak rapi masuk ke repositori, pasang guard otomatis:
# 1. Install dependensi
npm install --save-dev @commitlint/config-conventional @commitlint/cli husky lint-staged
# 2. Buat konfigurasi commitlint
cat << 'EOF' > commitlint.config.js
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
2,
'always',
['feat', 'fix', 'refactor', 'perf', 'test', 'docs', 'chore', 'style', 'ci', 'build', 'revert']
],
'subject-case': [2, 'never', ['sentence-case', 'start-case', 'pascal-case', 'upper-case']],
'subject-full-stop': [2, 'never', '.']
}
};
EOF
# 3. Inisialisasi Husky
npx husky init
echo "npx --no -- commitlint --edit \$1" > .husky/commit-msg3.2 Git Commit Template
Gunakan template commit global atau per-repo agar panduan selalu muncul saat mengetik git commit:
git config --local commit.template .gitmessage.txtIsi .gitmessage.txt:
# <type>(<scope>): <subject in lowercase imperative mood>
#
# Line body (explain what and why):
# -
#
# Co-authored-by: aria sastra <192975116+ariasastra-dev@users.noreply.github.com>
# -------------------------------------------------------------
# Types: feat | fix | refactor | perf | test | docs | chore | ci
# -------------------------------------------------------------3.3 Otomatisasi Changelog dengan git-cliff
Buat file CHANGELOG.md rilis resmi secara deterministik:
# Eksekusi pembuatan changelog otomatis
git cliff -o CHANGELOG.md4. Checklist Pra-Commit untuk AI & Developer
Sebelum menjalankan perintah commit:
- Apakah scope perubahan sudah terisolasi dan atomik?
- Apakah semua rahasia, file
.env, dan artefak sementara sudah diabaikan via.gitignore? - Apakah tipe commit sesuai (
feat,fix,refactor,perf,docs,chore,test)? - Apakah subjek menggunakan kata kerja imperatif tanpa titik di akhir?
- Apakah trailer
Co-authored-by: aria sastra <192975116+ariasastra-dev@users.noreply.github.com>sudah terpasang? - Apakah test lokal dan linter lulus sebelum commit dibuat?
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

