agentleFS
BipBop-LabsBipBop-Labs/bipbop-skills/skills/commit/SKILL.md

commit

Skill3 starsChanged 5 days agoMITView on GitHub

Crea commits atómicos y bien redactados desde un agente: revisa el diff real, elige qué stagear, sigue el estilo del repositorio y respeta los hooks. Úsala cuando la persona pide commitear, dice "haz un commit" o entrega un mensaje como guía.

  • Reads credentials
  • Deletes or force-pushes

186 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use act-on-feedback, generate-run-commands and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    act-on-feedback

    Act on user feedback attached to the current session. Use when the user submits feedback on the session's changes via the Submit Feedback button.

    Also in 4 projects that use this

  • MicrosoftSkill

    generate-run-commands

    Generate or modify run commands for the current session. Use when the user wants to set up or update run commands that appear in the session's Run button.

    Also in 4 projects that use this

  • MindgamesSkill

    branch

    Use when a user asks to create a new local git branch and start issue work (for example, "create branch" or "start working on issue XYZ"). Use this for issue-based branch naming in the `type/scope-short-description` pattern and for always syncing local `main` from `origin/main` before creating the new branch, creating the local tracking `main` branch first when needed.

    Also in 9 projects that use this

  • decocmsSkill

    add-mcp-tools

    Guide for adding new MCP tools with consistent patterns for schemas, tool definitions, registry updates, and Better Auth integration

    Also in 3 projects that use this

  • thoughtbotSkill

    implement-with-tdd

    Implement a SPEC, plan, or feature outside-in, with TDD.

    Also in 3 projects that use this

  • thoughtbotSkill

    multi-lens-review

    Review a change for defects, then against its spec, its codebase's conventions, the domains trying to emerge from it, and whatever still depends on what it replaced.

    Also in 3 projects that use this

  • +1 more from thoughtbot

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 165 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    No uses esta skill para push, PR, rebase, amend de commits ya empujados ni reescritura de historia.

    line 14
  2. Distinctive:

    No dividas cambios que por separado no compilan o no pasan los tests.

    line 30
  3. Distinctive:

    No uses git add -A, git add .

    line 36
  4. Distinctive:

    No agregues atribución de agente ni coautoría, salvo que el repositorio o la persona lo pidan.

    line 43
  5. Very specific:

    Secretos y ruido: No commitees .env, credenciales, tokens, dumps, artefactos de build, logs ni archivos temporales del agente.

    line 50
  6. Distinctive:

    Comandos destructivos: No uses git reset --hard, git checkout ., git clean -fd ni git stash drop para "ordenar" antes de commitear.

    line 51
  7. Very specific:

    Historia publicada: No uses --amend ni force push sobre commits que ya están en el remoto, salvo que la persona lo pida explícitamente.

    line 52
  8. Distinctive:

    Mensaje inflado: No describas intención, impacto ni motivación que el diff no respalde.

    line 53

“Common” is measured: kept by at least 6 in 10 of the 165 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Commit

Esta guía ayuda a un agente a crear commits que otra persona puede leer, revisar y revertir sin sorpresas.

When to use

  • La persona pide commitear los cambios en curso.
  • La persona entrega un mensaje o contexto como base.
  • No uses esta skill para push, PR, rebase, amend de commits ya empujados ni reescritura de historia.

Precondiciones

  • La persona pidió commitear. No commitees por iniciativa propia.
  • La rama no es la principal. Si git branch --show-current devuelve main o master, crea una rama antes de commitear.

Procedure

  1. Lee el estado real, no la memoria de la sesión
    • Usa git status para ver los archivos modificados, staged y sin trackear.
    • Usa git diff y git diff --staged para revisar el contenido, no solo los nombres.
    • Usa git log --oneline -10 para copiar el formato, el idioma y las convenciones del repositorio.
  2. Decide el alcance y divide si hace falta
    • Haz un commit por unidad lógica: los cambios que revertirías juntos van en el mismo commit.
    • Divide cuando el árbol mezcla temas: refactor y feature, formateo masivo y lógica, backend y frontend sin relación, o dependencias nuevas y su uso.
    • No dividas cambios que por separado no compilan o no pasan los tests. Si dudas entre dos commits acoplados, deja uno.
    • Para dividir, repite el ciclo stagear → commitear por tema. Sigue el orden de dependencia: primero lo que el resto necesita (renombres, utilidades, migraciones), después lo que lo usa.
    • Si un archivo tiene cambios de dos temas, usa git add -p para stagear solo los hunks de un tema.
    • Deja fuera lo que no pertenece a ningún commit: experimentos, prints de depuración, archivos de scratch, configuración local.
  3. Stagea explícitamente
    • Usa git add <ruta> archivo por archivo o por directorio acotado.
    • No uses git add -A, git add . ni git commit -a. Estos comandos agregan archivos que nadie revisó.
    • Antes de commitear, relee git diff --staged. Solo ese contenido queda en la historia.
  4. Escribe el mensaje
    • Sigue el formato del repositorio. Si el repositorio usa conventional commits, usa type(scope): descripción, con los tipos feat, fix, refactor, test, docs, style y chore.
    • Escribe la primera línea con menos de 72 caracteres, en imperativo y en el idioma que ya usa el repositorio.
    • En el cuerpo, explica el porqué y las decisiones no obvias. El diff ya muestra el qué.
    • Usa viñetas solo si hay varios cambios significativos.
    • No agregues atribución de agente ni coautoría, salvo que el repositorio o la persona lo pidan.
  5. Commitea
    • Ejecuta git commit con el mensaje que escribiste.

Pitfalls

  • Hooks. Si un hook falla, git no creó el commit. Corrige la causa. Vuelve a stagear los archivos que el hook modificó y commitea de nuevo. Nunca uses --no-verify.
  • Secretos y ruido. No commitees .env, credenciales, tokens, dumps, artefactos de build, logs ni archivos temporales del agente. Si dudas, revisa si el archivo debe estar en .gitignore.
  • Comandos destructivos. No uses git reset --hard, git checkout ., git clean -fd ni git stash drop para "ordenar" antes de commitear. Estos comandos borran trabajo que no es tuyo.
  • Historia publicada. No uses --amend ni force push sobre commits que ya están en el remoto, salvo que la persona lo pida explícitamente.
  • Mensaje inflado. No describas intención, impacto ni motivación que el diff no respalde.
  • Reporte honesto. Si algo quedó sin commitear, si un test falla o si un hook cambió archivos, dilo en la respuesta.

Verification

  • git log -1 --stat muestra el commit con el mensaje esperado y solo los archivos previstos.
  • git status no muestra cambios que querías incluir en el commit.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

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.