squash-commits
Qué hace
Esta skill reorganiza los commits de tu rama actual en un conjunto pequeño de commits lógicos. Está pensada para desarrolladores que quieren un historial limpio antes de compartir su trabajo.
Cuándo usarla
- ✓Cuando tu rama tiene muchos commits pequeños o desordenados y quieres un historial más limpio.
- ✓Cuando quieres agrupar cambios relacionados en unos pocos commits con sentido antes de abrir un pull request.
- ✓Cuando necesitas quitar commits de fusión de main que se incorporaron a tu rama.
Link de la skill
https://github.com/pipecat-ai/pipecat/blob/main/.claude/skills/squash-commits/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
“¿Puedes ordenar los commits de mi rama en unos pocos commits claros sin cambiar nada del código?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente comprueba que tu trabajo está guardado, hace una copia de seguridad de la rama y reinicia los commits conservando todos los cambios. Después propone grupos y te pide confirmación antes de hacer los commits.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Reorganize the commits on the current branch into a small number of logical commits. Do NOT change any file content — only the commit structure changes.
Instructions
1. Safety check
git status --short
If there are uncommitted changes, stop and tell the user to commit or stash them first.
2. Inspect the branch
git log main..HEAD --oneline
git diff main..HEAD --name-only
List every file changed vs main and every commit on the branch (excluding merge commits from main).
3. Create a backup branch
git branch backup/<current-branch-name>
Tell the user the backup exists so they can recover if needed.
4. Soft-reset to main and unstage everything
git reset --soft main
git restore --staged .
All branch changes are now in the working tree, unstaged. No content has changed.
5. Plan the logical groups
Read the changed files and the original commit messages to understand what the work covers. Group related files into logical commits. Typical groups:
- Core feature or fix (new source files + modified core files)
- Secondary features or fixes (each as its own commit if distinct)
- Refactoring or renames
- Tests
- Changelogs / docs
Use the changelog files (if any) as a strong hint — each changelog entry often maps to one commit.
Present the proposed grouping to the user and ask for confirmation before committing.
6. Commit in logical groups
For each group, stage only the relevant files and commit with a clear message following the project's conventions:
git add <file1> <file2> ...
git commit -m "..."
Use conventional commit prefixes if the project uses them (feat:, fix:, refactor:, test:, chore:).
7. Verify
git log main..HEAD --oneline
git diff main..HEAD --name-only
git status --short
Confirm:
- Commit count is small and each message is meaningful
- The set of changed files vs
mainis identical to before - Working tree is clean
8. Remind about force-push
The branch history has been rewritten. Tell the user they will need to git push --force-with-lease when they are ready to update the remote. Do NOT push automatically.
Rules
- Never change file contents. If you find yourself editing a file, stop.
- Never skip the backup branch step.
- Never force-push without explicit user instruction.
- If any step fails or the result looks wrong, tell the user and suggest restoring from the backup:
git reset --hard backup/<branch-name>.
Preguntas frecuentes
¿Esto cambiará mi código?
No. La skill solo debe cambiar la forma en que se organizan los commits, no el contenido de ningún archivo.
¿Hay forma de deshacerlo?
Sí. La skill crea primero una rama de copia de seguridad, así que puedes volver a los commits originales si hace falta.
¿Necesito confirmar la agrupación?
Sí. El agente muestra los grupos de commits propuestos y pide tu aprobación antes de hacer cualquier commit.
Detalles
Descripción original del autor
Reorganize messy branch commits into a small set of logical, meaningful commits without changing any content. Drops merge-from-main commits. Safe: creates a backup branch first.
repo: pipecat-ai/pipecat
Popularidad
- Estrellas en GitHub
- 17 mil
- Posición en el ranking
- #10793
- Licencia
- BSD-2-Clause
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
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.