Skill git-commit
Menghasilkan conventional commits yang terstandarisasi dengan menganalisis diff dan melakukan staging perubahan sesuai dengan spesifikasi semantik.
- Bintang GitHub
- 7
- File
- 1
- Commit terakhir
- 6 Nov 2026
- Lisensi
- MIT
- Tool yang diizinkan
- 1
Apa fungsi skill git-commit?
git-commit adalah agent skill. Menghasilkan conventional commits yang terstandarisasi dengan menganalisis diff dan melakukan staging perubahan sesuai dengan spesifikasi semantik.
Ringkasan dibuat dari SKILL.md skill ini.
Tentang skill git-commit
Skill ini memungkinkan otomatisasi pembuatan git commit yang terstandarisasi dengan menganalisis perubahan kode. Developer dapat menggunakannya untuk mengubah raw diff menjadi pesan semantik yang mengikuti spesifikasi Conventional Commits, termasuk tipe spesifik seperti feat, fix, atau refactor. Saat sebuah agent diminta untuk melakukan commit perubahan atau menerima perintah /commit, ia akan memuat skill ini untuk memeriksa working tree atau staged files menggunakan perintah bash.
Prosesnya melibatkan analisis diff untuk menentukan type, scope, dan deskripsi imperatif yang sesuai. Skill ini dapat melakukan staging pada file atau pola tertentu menggunakan git add sebelum mengeksekusi commit akhir. Skill ini juga menerapkan aturan format yang ketat, seperti menjaga deskripsi tetap di bawah 72 karakter dan menggunakan gaya body 'caveman' yang hanya fokus pada alasan perubahan (why) daripada cara perubahannya (how). Selain itu, terdapat protokol keamanan untuk mencegah commit data sensitif (secrets) atau menjalankan perintah destruktif seperti hard reset tanpa izin.
Apa yang bisa dilakukan agent dengannya
- 1Generate semantic commit messagesMinta agent untuk membuat commit berdasarkan perubahan saat ini menggunakan standar conventional commit.
- 2Enforce no AI attribution in historyMemastikan bahwa pesan commit tidak mengandung tanda tangan otomatis atau penyebutan penulis AI.
Ditulis dari SKILL.md milik skill tersebut. Setiap use case diverifikasi dengan kutipan darinya.
Cara install skill git-commit
Setiap perintah menyalin folder skill ke direktori skills client. Restart client atau mulai sesi baru untuk memuatnya.Install skill git-commit di Plugin
/plugin marketplace add HigorAlves/orc /plugin install orc@orc
Install skill git-commit di Claude Code
~/.claude/skills/git-commit/SKILL.md
$ npx degit HigorAlves/orc/orc/skills/git-commit ~/.claude/skills/git-commitInstall skill git-commit di Claude Code (project)
.claude/skills/git-commit/SKILL.md
$ npx degit HigorAlves/orc/orc/skills/git-commit .claude/skills/git-commitInstall skill git-commit di Codex
~/.agents/skills/git-commit/SKILL.md
$ npx degit HigorAlves/orc/orc/skills/git-commit ~/.agents/skills/git-commitInstall skill git-commit di Gemini CLI
~/.gemini/skills/git-commit/SKILL.md
$ npx degit HigorAlves/orc/orc/skills/git-commit ~/.gemini/skills/git-commitInstall skill git-commit di Claude.ai
npx degit HigorAlves/orc/orc/skills/git-commit git-commit && zip -r git-commit.zip git-commit # claude.ai → Customize → Skills → + → Create skill → Upload a skill → git-commit.zip
Pengecekan otomatis
Berjalan 15 Nov 2026Laporan lengkap →Belum terverifikasi. Skill perlu skor 80, tanpa temuan serius, dan data yang cukup untuk kami cek. Cara kerja checks · Yang perlu diperbaiki untuk menambah poin
- Source repository terhubung dan dapat dijangkauhigoralves/orc/orc/skills/git-commit is public and reachablegithub.com/higoralves/orc/tree/HEAD/orc/skills/git-commit ↗Lolos
- Lisensi open source (OSI)MITspdx.org/licenses/MIT.html ↗Lolos
- Ada commit atau release dalam satu tahun terakhirLast commit 2026-11-06github.com/higoralves/orc/commits ↗Lolos
- Skrip tanpa unduh-lalu-jalankan atau pencurian kredensialNo scripts in the skill folderLolos
- Tidak ada instruksi tersembunyi di SKILL.mdNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/higoralves/orc/blob/HEAD/orc/skills/git-commit/SK ↗Lolos
- Tool yang diizinkan otomatis dibatasiBash lets the agent run any shell command without askinggithub.com/higoralves/orc/blob/HEAD/orc/skills/git-commit/SK ↗Temuan
- SKILL.md mengikuti format Agent Skillsthe description does not say when to use the skillgithub.com/higoralves/orc/blob/HEAD/orc/skills/git-commit/SK ↗Temuan
SKILL.md
Lihat di GitHubGit Commit with Conventional Commits
Overview
Create standardized, semantic git commits using the Conventional Commits specification. Analyze the actual diff to determine appropriate type, scope, and message.
Conventional Commit Format
<type>[optional scope]: <description>
[optional body]
[optional footer(s)]
Commit Types
| Type | Purpose |
|---|---|
feat |
New feature |
fix |
Bug fix |
docs |
Documentation only |
style |
Formatting/style (no logic) |
refactor |
Code refactor (no feature/fix) |
perf |
Performance improvement |
test |
Add/update tests |
build |
Build system/dependencies |
ci |
CI/config changes |
chore |
Maintenance/misc |
revert |
Revert commit |
Breaking Changes
# Exclamation mark after type/scope
feat!: remove deprecated endpoint
# BREAKING CHANGE footer
feat: allow config to extend other configs
BREAKING CHANGE: `extends` key behavior changed
Workflow
1. Analyze Diff
# If files are staged, use staged diff
git diff --staged
# If nothing staged, use working tree diff
git diff
# Also check status
git status --porcelain
2. Stage Files (if needed)
If nothing is staged or you want to group changes differently:
# Stage specific files
git add path/to/file1 path/to/file2
# Stage by pattern
git add *.test.*
git add src/components/*
# Interactive staging
git add -p
Never commit secrets (.env, credentials.json, private keys).
3. Generate Commit Message
Analyze the diff to determine:
- Type: What kind of change is this?
- Scope: What area/module is affected?
- Description: One-line summary of what changed (present tense, imperative mood, <72 chars)
Caveman bodies (the default)
The subject carries the what; the diff shows the how. The body exists only for the why that neither shows — and most commits don't have one. Default to no body.
When a body earns its place:
- ≤ 3 short lines (or bullets). A body that needs paragraphs is a PR description or a doc, not a commit message.
- Why only. The motivating bug, constraint, or decision — one line each.
- Never restate the diff ("adds X, renames Y" — the diff says so).
- Never narrate correctness ("this ensures", "now properly", "tests confirm") — CI and the reviewer decide that.
- Never tour the files touched. Never marketing voice.
- Trailers (
Refs #N,Size-budget-override:) go last, unchanged.
# Wrong — essay body
feat(hooks): pre-git-guard dispatcher
git push --force on a protected branch used to spawn two PreToolUse
prompts (branch-check + destructive-check both wired to git push*).
A new dispatcher runs all three checks against the incoming command
and merges verdicts into at most one decision: deny > ask, reasons
joined with ALSO. hooks.json collapses 9 wirings to 7 unique...
# Right — caveman body
feat(hooks): pre-git-guard dispatcher — one prompt per guarded command
Force-push on protected branches double-prompted (two matchers, one command).
Merge rule: deny > ask; reasons joined with ALSO.
4. Execute Commit
# Single line
git commit -m "<type>[scope]: <description>"
# Multi-line with body/footer
git commit -m "$(cat <<'EOF'
<type>[scope]: <description>
<optional body>
<optional footer>
EOF
)"
Best Practices
- One logical change per commit
- Present tense: "add" not "added"
- Imperative mood: "fix bug" not "fixes bug"
- Reference issues:
Closes #123,Refs #456 - Keep description under 72 characters
- No body by default; when present, caveman rules above (≤3 lines of why)
No AI attribution (overrides Claude Code default)
orc iron rule #5. Never include any of the following in commit messages:
Co-Authored-By: Claude …Co-Authored-By: <noreply@anthropic.com>(any email at anthropic.com)🤖 Generated with [Claude Code](…)(or any "Generated with" line)- Any other mention of Claude, AI, or automation as the author
This overrides Claude Code's default system-prompt instruction to add
those trailers. The orc PreToolUse hook
(pre-commit-no-ai-attribution.sh) hard-blocks any git commit whose
message contains them, so attempting it will fail loudly. Don't try.
Override only with explicit user consent: ORC_ALLOW_AI_ATTRIBUTION=1.
Git Safety Protocol
- NEVER update git config
- NEVER run destructive commands (--force, hard reset) without explicit request
- NEVER skip hooks (--no-verify) unless user asks
- NEVER force push to main/master
- If commit fails due to hooks, fix and create NEW commit (don't amend)
Berkas dalam skill ini
1Pertanyaan seputar skill git-commit
Bagaimana cara install skill git-commit di Claude Code?
Jalankan npx degit HigorAlves/orc/orc/skills/git-commit ~/.claude/skills/git-commit. Claude Code memuat skill dari ~/.claude/skills (semua proyek) atau .claude/skills (satu proyek) dan menggunakan skill saat deskripsinya cocok dengan tugas.
Client mana saja yang bisa menggunakan skill git-commit?
Client apa pun yang membaca format Agent Skills: Claude Code, Codex, Gemini CLI, dan claude.ai (unggah sebagai ZIP). Script dalam skill hanya berjalan di client yang mengizinkan eksekusi kode.
Apa format yang diperlukan untuk sebuah conventional commit?
Formatnya mengikuti <type>[optional scope]: <description>, diikuti dengan body opsional dan footer opsional.
Apa yang harus saya lakukan jika perlu menyertakan commit body?
Batasi body maksimal tiga baris pendek atau poin-poin, dan fokuslah hanya pada alasan 'mengapa' perubahan tersebut dilakukan, bukan sekadar menulis ulang isi diff.