contextual-commit
Qué hace
Esta habilidad escribe mensajes de commit que conservan el razonamiento detrás de los cambios de código, como la intención, las decisiones y las restricciones. Es para desarrolladores que quieren que quien lea después entienda por qué se escribió el código.
Cuándo usarla
- ✓Cuando haces un commit de código o terminas una tarea.
- ✓Cuando le pides al agente que haga commit de los cambios.
- ✓Cuando un cambio fue moldeado por restricciones o compromisos que el diff del código no muestra.
Link de la skill
https://github.com/yamadashy/repomix/blob/main/.agents/skills/contextual-commit/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Haz commit de estos cambios y registra por qué elegimos este enfoque y qué restricción lo definió.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
Tu agente mantiene la línea de asunto del commit estándar y luego añade líneas de acción tipadas en el cuerpo que explican la intención, las decisiones, las restricciones y lo aprendido.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Contextual Commits
You write commits that carry development reasoning in the body — the intent, decisions, constraints, and learnings that the diff alone cannot show.
The Problem You Solve
Standard commits preserve WHAT changed. The diff shows that too. What gets lost is WHY — what the user asked for, what alternatives were considered, what constraints shaped the implementation, what was learned along the way. This context evaporates when the session ends. You prevent that.
Commit Format
The subject line is a standard Conventional Commit. The body contains action lines — typed, scoped entries that capture reasoning.
type(scope): subject line (standard conventional commit)
action-type(scope): description of reasoning or context
action-type(scope): another entry
Subject Line
Follow Conventional Commits exactly. Nothing changes here:
feat(auth): implement Google OAuth providerfix(payments): handle currency rounding edge caserefactor(notifications): extract digest scheduling logic
Action Lines
Each line in the body follows: action-type(scope): description
scope is a human-readable concept label — the domain area, module, or concern. Examples: auth, payment-flow, oauth-library, session-store, api-contracts. Use whatever is meaningful in this project's vocabulary. Keep scopes consistent across commits when referring to the same concept.
Action Types
Use only the types that apply. Most commits need 1-3 action lines. Never pad with noise.
intent(scope): ...
What the user wanted to achieve and why. Captures the human's voice, not your interpretation.
intent(auth): social login starting with Google, then GitHub and Appleintent(notifications): users want batch notifications instead of per-event emailsintent(payment-flow): must support EUR and GBP alongside USD for enterprise clients
When to use: Most feature work, refactoring with a purpose, any change where the motivation isn't obvious from the subject line.
decision(scope): ...
What approach was chosen when alternatives existed. Brief reasoning.
decision(oauth-library): passport.js over auth0-sdk for multi-provider flexibilitydecision(digest-schedule): weekly on Monday 9am, not daily — matches user researchdecision(currency-handling): per-transaction currency over account-level default
When to use: When you evaluated options. Skip for obvious choices with no real alternatives.
rejected(scope): ...
What was considered and explicitly discarded, with the reason. This is the highest-value action type — it prevents future sessions from re-proposing the same thing.
rejected(oauth-library): auth0-sdk — locks into their session model, incompatible with redis storerejected(currency-handling): account-level default — too limiting for marketplace sellersrejected(money-library): accounting.js — lacks support for sub-unit (cents) arithmetic
When to use: Every time you or the user considered a meaningful alternative and chose not to pursue it. Always include the reason.
constraint(scope): ...
Hard limits, dependencies, or boundaries discovered during implementation that shaped the approach.
constraint(callback-routes): must follow /api/auth/callback/:provider pattern per existing conventionconstraint(stripe-integration): currency required at PaymentIntent creation, cannot change afterconstraint(session-store): redis 24h TTL means tokens must refresh within that window
When to use: When non-obvious limitations influenced the implementation. Things the next person working here would need to know.
learned(scope): ...
Something discovered during implementation that would save time in future sessions. API quirks, undocumented behavior, performance characteristics.
learned(passport-google): requires explicit offline_access scope for refresh tokens, undocumented in quickstartlearned(stripe-multicurrency): presentment currency and settlement currency are different conceptslearned(exchange-rates): Stripe handles conversion — do NOT store our own rates
When to use: "I wish I'd known this before I started" moments. Library gotchas, API surprises, non-obvious behaviors.
Before You Write the Commit
Determine the commit scope, then compose action lines:
- Check for staged changes first — run
git diff --cached --stat.- If staged changes exist: these are the commit scope. Do no
Preguntas frecuentes
¿Cambia el formato del asunto del commit?
No. La línea de asunto sigue el formato estándar de Conventional Commits.
¿Qué va en el cuerpo?
Líneas de acción tipadas que describen el razonamiento, como decisiones, restricciones y aprendizajes.
¿Por qué no basta con describir el cambio?
El diff ya muestra qué cambió, mientras que el cuerpo conserva el porqué, que de otra forma se perdería.
Detalles
Descripción original del autor
Write contextual commits that capture intent, decisions, and constraints alongside code changes. Use when committing code, finishing a task, or when the user asks to commit. Extends Conventional Commits with structured action lines in the commit body that preserve WHY code was written, not just WHAT changed.
repo: yamadashy/repomix
Popularidad
- Estrellas en GitHub
- 29 mil
- Posición en el ranking
- #9762
- Licencia
- MIT
- Actualizada
- 1/11/2026
Comentarios
- …
Más skills de este repositorio
repomix
29 milAyuda a tu agente a empaquetar un proyecto de código completo en un solo archivo apto para IA, para explorar su estructura, encontrar patrones y contar tokens.
agent-carnet
29 milPermite que tu agente guarde y organice notas breves que persisten entre sesiones. Cada uso reinicia su plazo de 30 días, y las notas no usadas van a la papelera.
repomix-explorer
29 milAyuda a tu agente a explorar una base de código desconocida, local o remota, empaquetándola y leyendo el resultado para explicar su estructura y encontrar patrones.
Skills parecidas
diffs
394 milPermite que tu agente genere un diff real y compartible de los cambios, como enlace de visualización o archivo de imagen, en lugar de un resumen escrito a mano.
coding-agent
394 milAyuda a tu agente a pasar un trabajo de programación grande a Codex, Claude Code u OpenCode como trabajador en segundo plano, y después revisar su progreso.
gh-issues
394 milAyuda a tu agente a encontrar incidencias de GitHub, elegir cuáles trabajar y abrir pull requests con correcciones, incluido el seguimiento de los comentarios de revisión.