Skill git-commit
Genera commits convencionales estandarizados analizando diffs y preparando los cambios según especificaciones semánticas.
- Estrellas en GitHub
- 7
- Archivos
- 1
- Último commit
- 6 nov 2026
- Licencia
- MIT
- Herramientas permitidas
- 1
¿Qué hace la skill git-commit?
git-commit es una agent skill. Genera commits convencionales estandarizados analizando diffs y preparando los cambios según especificaciones semánticas.
Resumen generado a partir del SKILL.md de la skill.
Sobre la skill git-commit
Esta SKILL permite automatizar la creación de commits de git estandarizados mediante el análisis de cambios en el código. Los desarrolladores la utilizan para transformar diffs brutos en mensajes semánticos que siguen la especificación de Conventional Commits, incluyendo tipos específicos como feat, fix o refactor. Cuando se le pide a un agente que haga commit de los cambios o recibe un comando /commit, carga esta skill para inspeccionar el working tree o los archivos en el stage usando comandos de bash.
El proceso consiste en analizar el diff para determinar el tipo, el scope y la descripción imperativa adecuados. Puede preparar archivos o patrones específicos usando git add antes de ejecutar el commit final. La skill aplica reglas de formato estrictas, como mantener las descripciones por debajo de los 72 caracteres y usar un estilo de cuerpo tipo 'caveman' que se centra solo en el porqué y no en el cómo. También incluye un protocolo de seguridad para evitar el commit de secretos o la ejecución de comandos destructivos como hard resets sin permiso.
Lo que un agente puede hacer con ella
- 1Generar mensajes de commit semánticosPide al agente que cree un commit basado en los cambios actuales utilizando los estándares de conventional commit.
- 2Evitar la atribución de IA en el historialAsegúrate de que los mensajes de commit no contengan firmas automatizadas ni menciones a autores de IA.
Escrito a partir del SKILL.md de la skill. Cada caso de uso se verifica con una cita del mismo.
Cómo instalar la skill git-commit
Cada comando copia la carpeta de la skill al directorio de skills del cliente. Reinicia el cliente o inicia una nueva sesión para cargarla.Instalar la skill git-commit en Plugin
/plugin marketplace add HigorAlves/orc /plugin install orc@orc
Instalar la skill git-commit en Claude Code
~/.claude/skills/git-commit/SKILL.md
$ npx degit HigorAlves/orc/orc/skills/git-commit ~/.claude/skills/git-commitInstalar la skill git-commit en Claude Code (project)
.claude/skills/git-commit/SKILL.md
$ npx degit HigorAlves/orc/orc/skills/git-commit .claude/skills/git-commitInstalar la skill git-commit en Codex
~/.agents/skills/git-commit/SKILL.md
$ npx degit HigorAlves/orc/orc/skills/git-commit ~/.agents/skills/git-commitInstalar la skill git-commit en Gemini CLI
~/.gemini/skills/git-commit/SKILL.md
$ npx degit HigorAlves/orc/orc/skills/git-commit ~/.gemini/skills/git-commitInstalar la skill git-commit en 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
Verificaciones automáticas
Ejecutado 15 nov 2026Informe completo →Aún sin verificar. Una skill necesita 80 puntos, ningún hallazgo grave y datos suficientes para comprobarla. Cómo funcionan las verificaciones · Qué corregir para obtener más puntos
- Repositorio de origen vinculado y accesiblehigoralves/orc/orc/skills/git-commit is public and reachablegithub.com/higoralves/orc/tree/HEAD/orc/skills/git-commit ↗Aprobado
- Licencia de código abierto (OSI)MITspdx.org/licenses/MIT.html ↗Aprobado
- Commit o lanzamiento en el último añoLast commit 2026-11-06github.com/higoralves/orc/commits ↗Aprobado
- Sin descargar y ejecutar ni robo de credenciales en los scriptsNo scripts in the skill folderAprobado
- Sin instrucciones ocultas en SKILL.mdNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/higoralves/orc/blob/HEAD/orc/skills/git-commit/SK ↗Aprobado
- Las herramientas preaprobadas están acotadasBash lets the agent run any shell command without askinggithub.com/higoralves/orc/blob/HEAD/orc/skills/git-commit/SK ↗Hallazgo
- SKILL.md sigue el formato de Agent Skillsthe description does not say when to use the skillgithub.com/higoralves/orc/blob/HEAD/orc/skills/git-commit/SK ↗Hallazgo
SKILL.md
Ver en 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)
Archivos de esta skill
1Preguntas sobre la skill git-commit
¿Cómo instalo la skill git-commit en Claude Code?
Ejecuta npx degit HigorAlves/orc/orc/skills/git-commit ~/.claude/skills/git-commit. Claude Code carga las skills desde ~/.claude/skills (todos los proyectos) o .claude/skills (un proyecto) y usa una skill cuando su descripción coincide con la tarea.
¿Qué clientes pueden usar la skill git-commit?
Cualquier cliente que lea el formato Agent Skills: Claude Code, Codex, Gemini CLI y claude.ai (subir como ZIP). Los scripts de la skill se ejecutan solo donde el cliente permite la ejecución de código.
¿Cuál es el formato requerido para un conventional commit?
El formato sigue <type>[optional scope]: <description>, seguido de un cuerpo opcional y pies de página opcionales.
¿Qué debo hacer si necesito incluir un cuerpo en el commit?
Mantén el cuerpo en tres líneas cortas o puntos de lista como máximo, enfocándote únicamente en el porqué del cambio en lugar de repetir el diff.