git-commit Skill
Erstelle standardisierte Conventional Commits, indem Diffs analysiert und Änderungen gemäß semantischen Spezifikationen gestaged werden.
- GitHub Stars
- 7
- Dateien
- 1
- Letzter Commit
- 6. Nov. 2026
- Lizenz
- MIT
- Erlaubte Tools
- 1
Was macht der git-commit Skill?
git-commit ist ein Agent Skill. Erstelle standardisierte Conventional Commits, indem Diffs analysiert und Änderungen gemäß semantischen Spezifikationen gestaged werden.
Zusammenfassung erzeugt aus der SKILL.md des Skills.
Über den git-commit skill
Diese Skill ermöglicht die Automatisierung der Erstellung standardisierter Git-Commits durch die Analyse von Code-Änderungen. Entwickler nutzen sie, um rohe Diffs in semantische Nachrichten zu verwandeln, die der Conventional Commits Spezifikation entsprechen, einschließlich spezifischer Typen wie feat, fix oder refactor. Wenn ein Agent aufgefordert wird, Änderungen zu committen oder einen /commit Befehl erhält, lädt er diese Skill, um den Working Tree oder die gestagten Dateien mittels Bash-Commands zu inspizieren.
Der Prozess beinhaltet die Analyse des Diffs, um den passenden Typ, den Scope und eine imperative Beschreibung zu ermitteln. Es können spezifische Dateien oder Patterns mittels git add gestaged werden, bevor der finale Commit ausgeführt wird. Die Skill erzwingt strikte Formatierungsregeln, wie zum Beispiel die Begrenzung der Beschreibung auf unter 72 Zeichen und einen minimalistischen Body-Stil, der sich nur auf das 'Warum' statt auf das 'Wie' konzentriert. Zudem ist ein Sicherheitsprotokoll integriert, um das Committen von Secrets oder das Ausführen destruktiver Commands wie hard resets ohne Erlaubnis zu verhindern.
Was ein agent damit machen kann
- 1Semantische Commit-Messages generierenFordere den Agenten auf, einen Commit basierend auf den aktuellen Änderungen unter Einhaltung der Conventional Commit Standards zu erstellen.
- 2Verhindern von AI-Attribution im VerlaufStelle sicher, dass Commit-Messages keine automatisierten Signaturen oder Erwähnungen von KI-Autoren enthalten.
Geschrieben basierend auf dem SKILL.md des skills. Jeder use case wurde gegen ein zitat daraus geprüft.
So installierst du den git-commit Skill
Jeder Befehl kopiert den Skill-Ordner in das Skills-Verzeichnis des Clients. Starte den Client neu oder beginne eine neue Session, um ihn zu laden.Den git-commit Skill in Plugin installieren
/plugin marketplace add HigorAlves/orc /plugin install orc@orc
Den git-commit Skill in Claude Code installieren
~/.claude/skills/git-commit/SKILL.md
$ npx degit HigorAlves/orc/orc/skills/git-commit ~/.claude/skills/git-commitDen git-commit Skill in Claude Code (project) installieren
.claude/skills/git-commit/SKILL.md
$ npx degit HigorAlves/orc/orc/skills/git-commit .claude/skills/git-commitDen git-commit Skill in Codex installieren
~/.agents/skills/git-commit/SKILL.md
$ npx degit HigorAlves/orc/orc/skills/git-commit ~/.agents/skills/git-commitDen git-commit Skill in Gemini CLI installieren
~/.gemini/skills/git-commit/SKILL.md
$ npx degit HigorAlves/orc/orc/skills/git-commit ~/.gemini/skills/git-commitDen git-commit Skill in Claude.ai installieren
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
Automatisierte Checks
Geluften am 15. Nov. 2026Vollständiger Bericht →Noch nicht verifiziert. Ein Skill braucht 80 Punkte, keinen schweren Befund und genug Daten für unsere Prüfung. Wie die Checks funktionieren · Was du für mehr Punkte verbessern kannst
- Source Repository verknüpft und erreichbarhigoralves/orc/orc/skills/git-commit is public and reachablegithub.com/higoralves/orc/tree/HEAD/orc/skills/git-commit ↗Bestanden
- Open Source Lizenz (OSI)MITspdx.org/licenses/MIT.html ↗Bestanden
- Commit oder Release im letzten JahrLast commit 2026-11-06github.com/higoralves/orc/commits ↗Bestanden
- Keine Download-und-Ausführen-Muster oder Zugangsdatendiebstahl in SkriptenNo scripts in the skill folderBestanden
- Keine versteckten Anweisungen in SKILL.mdNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/higoralves/orc/blob/HEAD/orc/skills/git-commit/SK ↗Bestanden
- Vorab erlaubte Tools sind eingeschränktBash lets the agent run any shell command without askinggithub.com/higoralves/orc/blob/HEAD/orc/skills/git-commit/SK ↗Befund
- SKILL.md folgt dem Agent-Skills-Formatthe description does not say when to use the skillgithub.com/higoralves/orc/blob/HEAD/orc/skills/git-commit/SK ↗Befund
SKILL.md
Auf GitHub ansehenGit 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)
Dateien in diesem Skill
1git-commit Skill-Fragen
Wie installiere ich den git-commit Skill in Claude Code?
Führe npx degit HigorAlves/orc/orc/skills/git-commit ~/.claude/skills/git-commit aus. Claude Code lädt Skills aus ~/.claude/skills (alle Projekte) oder .claude/skills (ein Projekt) und nutzt einen Skill, wenn seine Beschreibung zur Aufgabe passt.
Welche Clients können den git-commit Skill nutzen?
Jeder Client, der das Agent Skills-Format liest: Claude Code, Codex, Gemini CLI und claude.ai (als ZIP hochladen). Skripte im Skill laufen nur dort, wo der Client Codeausführung erlaubt.
Welches Format ist für einen Conventional Commit erforderlich?
Das Format folgt <type>[optional scope]: <description>, gefolgt von einem optionalen Body und optionalen Footern.
Was soll ich tun, wenn ich einen Commit-Body einfügen muss?
Halte den Body kurz (maximal drei Zeilen oder Bullet Points) und konzentriere dich nur auf das 'Warum' der Änderung, anstatt den Diff einfach zu wiederholen.