Agent skill
commit
Usar al preparar cualquier commit. Genera mensaje siguiendo Conventional Commits.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/commit-eduardo-lezama-intranet-dashboard
SKILL.md
Cuándo usar esta skill
- Al finalizar una tarea y preparar el commit
- Cuando el usuario pida "commitear" o "preparar commit"
- Después de que todas las validaciones pasen
Contexto necesario antes de empezar
- Verificar que
ruff check .pasa - Verificar que
ruff format --check .pasa - Listar archivos modificados con
git status - Entender qué cambio se hizo y por qué
Pasos
-
Ejecutar validaciones
bashruff check . ruff format --check . python -c "from app import app" -
Revisar cambios
bashgit status git diff --stat -
Determinar tipo de commit
feat: Nueva funcionalidadfix: Corrección de bugdocs: Solo documentaciónstyle: Formato sin cambio de lógicarefactor: Refactorizacióntest: Testschore: Mantenimiento
-
Determinar scope (basado en archivos tocados)
api: blueprints/main.pyenergy,pihole,mealie,settleup: clientes específicosui: templates/, static/css/js: static/js/config: config.py, .envdeps: requirements.txt
-
Generar mensaje
<tipo>(<scope>): <descripción imperativa max 72 chars> [cuerpo opcional explicando el qué y por qué]
<patrones_criticos> SIEMPRE:
- Descripción en imperativo ("añadir", no "añadido")
- Máximo 72 caracteres en primera línea
- Scope en minúsculas
NUNCA:
- Punto final en la descripción
- Commits sin tipo
- Mezclar múltiples cambios no relacionados
PREFERENTEMENTE:
- Un commit por cambio lógico
- Cuerpo si el cambio no es obvio </patrones_criticos>
Ejemplos de commits del proyecto
feat(api): añadir endpoint /api/network para dispositivos WiFi
fix(energy): manejar estado 'unavailable' de sensores HA
refactor(pihole): extraer lógica de auth a método separado
docs(readme): actualizar instrucciones de instalación NAS
chore(deps): actualizar Flask a 3.0.3
test(api): añadir tests para endpoint /api/status
Checklist de validación
-
ruff check .pasa sin errores -
ruff format --check .pasa - La app arranca correctamente
- El mensaje sigue formato Conventional Commits
- La descripción es clara y en imperativo
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?