Claude Code · Comandos slashGit
/update-branch-name
Renombra la rama según los cambios.
por davila7/claude-code-templates
branches
Licencia: MITVer original
Instalación
npx claude-code-templates@latest --command git-workflow/update-branch-nameContenido
Dónde va: .claude/commands/update-branch-name.md
---
description: "Rename the current branch to a descriptive name based on its changes against main"
---
# Update Branch Name
Follow these steps to update the current branch name:
1. Check differences between current branch and main branch HEAD using `git diff main...HEAD`
2. Analyze the changed files to understand what work is being done
3. Determine an appropriate descriptive branch name based on the changes
4. Update the current branch name using `git branch -m [new-branch-name]`
5. Verify the branch name was updated with `git branch`
Más en Comandos slash
/commit
Redacta un commit con Conventional Commits a partir de los cambios en stage.
/review
Revisa el diff actual buscando bugs, casos borde y problemas de seguridad.
/tests
Escribe tests para el archivo o función que indiques.
/changelog
Genera las notas de versión desde el último tag.
/explain
Explica cómo funciona un archivo o módulo, con un diagrama del flujo.
/cleanup
Elimina imports, variables y código muerto sin cambiar el comportamiento.