Agent skill
commit-rene-kuhm-opencode-ohmyopencod
Crear commits siguiendo Conventional Commits. Analiza cambios y genera mensajes descriptivos.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/commit-rene-kuhm-opencode-ohmyopencod
SKILL.md
Commit Skill
Eres un experto en git y Conventional Commits. Tu rol es crear commits bien estructurados, descriptivos y siguiendo las mejores prácticas.
Conventional Commits Format
<type>(<scope>): <description>
[optional body]
[optional footer(s)]
Types
| Type | Descripción | Ejemplo |
|---|---|---|
feat |
Nueva funcionalidad | feat(auth): add Google OAuth login |
fix |
Bug fix | fix(cart): resolve quantity calculation error |
docs |
Documentación | docs(readme): update installation steps |
style |
Formato (no afecta código) | style(components): format with Biome |
refactor |
Refactoring | refactor(api): extract validation logic |
perf |
Performance | perf(images): add lazy loading |
test |
Tests | test(auth): add unit tests for login |
build |
Build/dependencies | build(deps): upgrade React to v19 |
ci |
CI/CD | ci(github): add deploy workflow |
chore |
Mantenimiento | chore(scripts): update dev scripts |
revert |
Revert commit | revert: feat(auth): add Google OAuth |
Scopes Comunes
auth, api, ui, db, config, deps, docs, test, ci, build
components, hooks, services, utils, types, styles
Flujo de Trabajo
1. Analizar Cambios
# Ver estado
git status
# Ver cambios unstaged
git diff
# Ver cambios staged
git diff --cached
# Ver archivos modificados
git diff --name-only
# Ver commits recientes (para estilo)
git log --oneline -10
2. Clasificar Cambios
Analizar los cambios y determinar:
- Type: ¿Qué tipo de cambio es?
- Scope: ¿Qué área del código afecta?
- Breaking Change: ¿Rompe compatibilidad?
3. Generar Mensaje
Commit Simple
git commit -m "feat(auth): add password reset functionality"
Commit con Body
git commit -m "$(cat <<'EOF'
feat(auth): add password reset functionality
- Add forgot password page
- Implement email sending service
- Add password reset token validation
- Create new password form
Closes #123
EOF
)"
Breaking Change
git commit -m "$(cat <<'EOF'
feat(api)!: change response format for user endpoints
BREAKING CHANGE: User API now returns nested objects instead of flat structure.
Before: { id, name, email }
After: { id, profile: { name, email } }
Migration: Update all clients to access user.profile.name instead of user.name
EOF
)"
Reglas de Mensajes
DO ✅
# Específico y descriptivo
feat(products): add price filtering by range
# Incluye contexto cuando es útil
fix(checkout): resolve race condition in payment processing
# Breaking changes claros
feat(api)!: remove deprecated v1 endpoints
DON'T ❌
# Muy vago
fix: bug fix
# Muy largo en subject (>72 chars)
feat(authentication-system): implement comprehensive OAuth2.0 authentication...
# Tiempo incorrecto
feat: added new feature # Debería ser "add"
# Sin scope cuando es útil
feat: add login # ¿Login de qué?
Comandos
Commit Normal
# Stage all changes
git add .
# Commit con mensaje generado
git commit -m "type(scope): description"
Commit Amend
# Solo si el commit NO ha sido pusheado
git commit --amend -m "new message"
# Agregar archivos al último commit
git add forgotten-file.ts
git commit --amend --no-edit
Commit Parcial
# Stage archivos específicos
git add src/components/Button.tsx
# Stage partes de un archivo
git add -p src/services/api.ts
Análisis Automático
Cuando analices cambios, busca:
- Archivos nuevos → probablemente
feat - Archivos eliminados → puede ser
feat,refactor, ochore - Tests →
test - package.json →
buildochore - README/docs →
docs - Config files →
choreobuild - Bug fixes →
fix - Performance →
perf
Output Esperado
📝 COMMIT ANALYSIS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Changes Detected:
📁 Modified: 4 files
➕ Added: 2 files
➖ Deleted: 0 files
Files Changed:
M src/components/LoginForm.tsx
M src/services/auth.service.ts
M src/types/auth.types.ts
M src/hooks/useAuth.ts
A src/components/ForgotPassword.tsx
A src/pages/reset-password.tsx
Analysis:
Type: feat
Scope: auth
Breaking: No
Suggested Commit Message:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
feat(auth): add password reset functionality
- Add ForgotPassword component with email input
- Create reset-password page for new password entry
- Implement resetPassword method in auth service
- Add PasswordResetToken type definitions
- Update useAuth hook with reset methods
Closes #234
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Commands to Execute:
git add .
git commit -m "feat(auth): add password reset functionality..."
Proceed? [Y/n]
Footer Conventions
# Cerrar issues
Closes #123
Fixes #456
Resolves #789
# Referencias
Refs #123
See #456
# Co-authors
Co-authored-by: Name <[email protected]>
# Breaking changes
BREAKING CHANGE: description
Integración con Claude Code
El commit siempre termina con:
🤖 Generated with [Claude Code](https://claude.com/code)
Co-Authored-By: Claude <[email protected]>
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?