git-workflow
Qué hace
Esta skill explica cómo usar Git en un proyecto de equipo, desde escribir mensajes de commit claros hasta gestionar las ramas. Está pensada para desarrolladores que quieren un control de versiones coherente y fácil de seguir.
Cuándo usarla
- ✓Cuando vas a hacer un commit de Git y quieres un mensaje claro y estándar.
- ✓Cuando necesitas crear, nombrar o gestionar ramas para una función o una corrección.
- ✓Cuando gestionas el flujo de un pull request o un conflicto de fusión.
Link de la skill
https://github.com/Galaxy-Dawn/claude-scholar/blob/main/skills/git-workflow/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
“Escribe un mensaje de commit adecuado para mi cambio que corrige el error de refresco del captcha.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente sigue las reglas del proyecto para el tipo, el ámbito y el asunto del commit, y usa prácticas claras de ramas y de fusión para que el historial sea fácil de seguir.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Git Workflow Standards
This document defines the project's Git usage standards, including commit message format, branch management strategy, workflows, merge strategies, and more. Following these standards improves collaboration efficiency, enables traceability, supports automation, and reduces conflicts.
Commit Message Standards
The project follows the Conventional Commits specification:
<type>(<scope>): <subject>
<body>
<footer>
Type Reference
| Type | Description | Example |
|---|---|---|
feat |
New feature | feat(user): add user export functionality |
fix |
Bug fix | fix(login): fix captcha not refreshing |
docs |
Documentation update | docs(api): update API documentation |
refactor |
Refactoring | refactor(utils): refactor utility functions |
perf |
Performance improvement | perf(list): optimize list performance |
test |
Test related | test(user): add unit tests |
chore |
Other changes | chore: update dependency versions |
Subject Rules
- Start with a verb: add, fix, update, remove, optimize
- No more than 50 characters
- No period at the end
For more detailed conventions and examples, see references/commit-conventions.md.
Branch Management Strategy
Branch Types
| Branch Type | Naming Convention | Description | Lifecycle |
|---|---|---|---|
| master | master |
Main branch, releasable state | Permanent |
| develop | develop |
Development branch, latest integrated code | Permanent |
| feature | feature/feature-name |
Feature branch | Delete after completion |
| bugfix | bugfix/issue-description |
Bug fix branch | Delete after fix |
| hotfix | hotfix/issue-description |
Emergency fix branch | Delete after fix |
| release | release/version-number |
Release branch | Delete after release |
Branch Naming Examples
feature/user-management # User management feature
feature/123-add-export # Issue-linked feature
bugfix/login-error # Login error fix
hotfix/security-vulnerability # Security vulnerability fix
release/v1.0.0 # Version release
Branch Protection Rules
master branch:
- No direct pushes allowed
- Must merge via Pull Request
- Must pass CI checks
- Requires at least one Code Review approval
develop branch:
- Direct pushes restricted
- Pull Request merges recommended
- Must pass CI checks
For detailed branch strategies and workflows, see references/branching-strategies.md.
Workflows
Daily Development Workflow
# 1. Sync latest code
git checkout develop
git pull origin develop
# 2. Create feature branch
git checkout -b feature/user-management
# 3. Develop and commit
git add .
git commit -m "feat(user): add user list page"
# 4. Push to remote
git push -u origin feature/user-management
# 5. Create Pull Request and request Code Review
# 6. Merge to develop (via PR)
# 7. Delete feature branch
git branch -d feature/user-management
git push origin -d feature/user-management
Hotfix Workflow
# 1. Create fix branch from master
git checkout master
git pull origin master
git checkout -b hotfix/critical-bug
# 2. Fix and commit
git add .
git commit -m "fix(auth): fix authentication bypass vulnerability"
# 3. Merge to master
git checkout master
git merge --no-ff hotfix/critical-bug
git tag -a v1.0.1 -m "hotfix: fix authentication bypass vulnerability"
git push origin master --tags
# 4. Sync to develop
git checkout develop
git merge --no-ff hotfix/critical-bug
git push origin develop
Release Workflow
# 1. Create release branch
git checkout develop
git checkout -b release/v1.0.0
# 2. Update version numbers and documentation
# 3. Commit version update
git add .
git commit -m "chore(release): prepare release v1.0.0"
# 4. Merge to master
git checkout master
git merge --no-ff release/v1.0.0
git tag -a v1.0.0 -m "release: v1.0.0 official release"
git push origin master --tags
# 5. Sync to develop
git checkout develop
git merge --no-ff release/v1.0.0
git push origin develop
Merge Strategy
Merge vs Rebase
| Feature | Merge | Rebase |
|---|---|---|
| History | Preserves complete history | Linear history |
| Use case | Public branches | Private branches |
| Recommended for | Merging to main branch | Syncing upstream code |
Recommendations
- Feature branch syncing develop: Use
rebase - Feature branch merging to develop: Use
merge --no-ff
Preguntas frecuentes
¿Qué es Conventional Commits?
Es un formato de commits con un tipo, un ámbito opcional y un asunto breve, como fix o feat.
¿Cuál es la regla de longitud del asunto?
El asunto debe empezar por un verbo, tener menos de 50 caracteres y no terminar en punto.
¿Cubre las estrategias de fusión?
Sí. También cubre estrategias de ramificación y enfoques de fusión.
Detalles
Descripción original del autor
This skill should be used when the user asks to "create git commit", "manage branches", "follow git workflow", "use Conventional Commits", "handle merge conflicts", or asks about git branching strategies, version control best practices, pull request workflows. Provides comprehensive Git workflow guidance for team collaboration.
Popularidad
- Estrellas en GitHub
- 6,0 mil
- Posición en el ranking
- #14487
- Licencia
- MIT
- Actualizada
- 19/10/2026
Comentarios
- …
Más skills de este repositorio
agent-identifier
6,0 milEnseña a tu agente a crear agentes de Claude Code, escribiendo correctamente su nombre, su descripción de activación, su prompt de sistema y sus ajustes.
architecture-design
6,0 milEnseña a tu agente la estructura estándar para el código de proyectos de aprendizaje automático, usando patrones de fábrica y registro al añadir piezas registrables.
bug-detective
6,0 milAyuda a tu agente a encontrar y arreglar errores de código con un método claro: entender el problema, reunir pruebas, probar ideas y verificar la solución.
citation-verification
6,0 milEnseña a tu agente a comprobar cada cita de un artículo académico frente a fuentes académicas fiables, detectando referencias falsas o incorrectas.
Skills parecidas
openclaw-update
394 milAyuda a tu agente a actualizar una Gateway de OpenClaw que ya existe, eligiendo el método de actualización que encaja con cómo se instaló y manteniendo tu sesión activa.
diagnose-gateway
394 milAyuda a tu agente a averiguar por qué falla tu Gateway de OpenClaw, revisando ajustes, canales y puertos sin cambiar nada.
crabbox-apps
394 milAyuda a tu agente a abrir y ejecutar una app en una máquina temporal en la nube y mostrar su vista en el panel lateral de tu chat.