🌿

crear-rama-git-convenciones skill

Automatización de nomenclatura de ramas Git para Cultiva Labs SaaS — Next.js 14 + tRPC + Prisma

Repositorio
cultiva-labs-app
Rama base
main
Remote
origin
Stack
Next.js 14 • tRPC • Prisma
Convención
Sentry Branch Naming
Casos procesados (5)
1
Añadir indicador de tendencia (trend) al componente MetricCard.tsx del Dashboard
fuente: git diff — cambios locales sin commitear
feat
1.
Contexto detectado — git diff:
diff --git a/src/components/Dashboard/MetricCard.tsx b/... + const [trend, setTrend] = useState<'up' | 'down' | null>(null); + useEffect(() => { + const prev = localStorage.getItem(`metric_${title}`); + if (prev) setTrend(parseFloat(prev) < value ? 'up' : 'down'); + }, [value]);
2.
Clasificación: nueva funcionalidad → feat
3.
Verificar colisiones:
$ git branch --list feat/metric-card-trend-indicator (sin resultados — nombre libre)
4.
Crear rama:
$ git checkout -b feat/metric-card-trend-indicator Switched to a new branch 'feat/metric-card-trend-indicator'
Rama creada:
feat/metric-card-trend-indicator
2
Arreglar el bug en el webhook de Stripe que no procesa pagos cuando el cliente tiene IVA aplicado
fuente: descripción verbal
fix
1.
Descripción recibida como argumento → no es necesario inspeccionar el diff
2.
Clasificación: comportamiento roto que debe funcionar → fix
3.
Crear rama:
$ git checkout -b fix/stripe-webhook-vat-payment Switched to a new branch 'fix/stripe-webhook-vat-payment'
Rama creada:
fix/stripe-webhook-vat-payment
3
Refactorizar el módulo de autenticación para usar el nuevo helper de tokens JWT
fuente: descripción verbal
ref
2.
Clasificación: el comportamiento no cambia, solo la estructura → ref
3.
Crear rama:
$ git checkout -b ref/auth-module-jwt-helper Switched to a new branch 'ref/auth-module-jwt-helper'
Rama creada:
ref/auth-module-jwt-helper
4
Actualizar dependencias de seguridad en package.json (lodash, axios)
fuente: descripción verbal
chore
2.
Clasificación: mantenimiento de dependencias/config → chore
3.
Crear rama:
$ git checkout -b chore/update-security-deps Switched to a new branch 'chore/update-security-deps'
Rama creada:
chore/update-security-deps
5
Añadir tests e2e para el flujo de onboarding de nuevos usuarios
fuente: descripción verbal
test
2.
Clasificación: solo tests, sin cambiar comportamiento de producción → test
3.
Crear rama:
$ git checkout -b test/e2e-user-onboarding-flow Switched to a new branch 'test/e2e-user-onboarding-flow'
Rama creada:
test/e2e-user-onboarding-flow
Tabla de referencia: tipos de rama
Tipo Cuándo usarlo Ejemplo generado
feat Nueva funcionalidad feat/metric-card-trend-indicator
fix Comportamiento roto que debe funcionar fix/stripe-webhook-vat-payment
ref Misma funcionalidad, estructura diferente ref/auth-module-jwt-helper
chore Mantenimiento de tooling / dependencias chore/update-security-deps
test Solo tests, sin cambios en producción test/e2e-user-onboarding-flow
perf Misma funcionalidad, más rápido perf/db-query-cache-indexes
ci Configuración de CI/CD ci/github-actions-deploy-preview
docs Solo documentación docs/api-endpoint-reference