From cook-es
Automates pull request creation by analyzing Git changes, generating descriptions from templates, and auto-selecting labels. Supports draft PRs and CI-triggered readiness.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cook-es:pr-createThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Crea Pull Requests automáticamente analizando tus cambios Git para un flujo de trabajo más fluido.
Crea Pull Requests automáticamente analizando tus cambios Git para un flujo de trabajo más fluido.
# Auto-crear PR desde tus cambios
git add . && git commit -m "feat: Implementar autenticación de usuario"
"Crear un Draft PR con la descripción y etiquetas correctas"
# Mantener tu plantilla existente
cp .github/PULL_REQUEST_TEMPLATE.md pr_body.md
"Llenar los espacios en blanco pero mantener la estructura de plantilla intacta"
# Marcar como listo cuando termine
gh pr ready
"Cambiar a Ready for Review después de verificar calidad"
# 1. Crear rama y commit
git checkout main && git pull
git checkout -b feat-user-profile
git add . && git commit -m "feat: Implementar característica de perfil de usuario"
git push -u origin feat-user-profile
# 2. Crear PR
"Por favor crear un PR:
1. Verificar qué cambió con git diff --cached
2. Usar la plantilla PR de .github/PULL_REQUEST_TEMPLATE.md
3. Elegir hasta 3 etiquetas que coincidan con los cambios
4. Crearlo como Draft (mantener comentarios HTML)"
# 3. Hacer listo después de que CI pase
"Una vez que CI esté verde, marcar el PR como Ready for Review"
# Nomenclatura de rama: {tipo}-{asunto}
git checkout main
git pull
git checkout -b feat-user-authentication
# Confirmar que estás en la rama correcta
git branch --show-current
# Staged tus cambios
git add .
# Commit con mensaje claro
git commit -m "feat: Implementar API de autenticación de usuario"
# Primer push (establece upstream)
git push -u origin feat-user-authentication
# Pushes posteriores
git push
Paso 1: Analizar Cambios
# Ver qué archivos cambiaron
git diff --cached --name-only
# Revisar los cambios reales (primeras 1000 líneas)
git diff --cached | head -1000
Paso 2: Auto-generar Descripción
# Prioridad de plantilla:
# 1. Mantener descripción PR existente como está
# 2. Usar .github/PULL_REQUEST_TEMPLATE.md
# 3. Recurrir a plantilla por defecto
cp .github/PULL_REQUEST_TEMPLATE.md pr_body.md
# Llenar solo secciones vacías - no tocar comentarios HTML o separadores
Paso 3: Auto-seleccionar Etiquetas
# Obtener etiquetas disponibles (no interactivo)
"Recuperar etiquetas disponibles de .github/labels.yml o repositorio GitHub y seleccionar automáticamente etiquetas apropiadas basadas en cambios"
# Auto-selección por coincidencia de patrones (máx 3)
# - Documentación: *.md, docs/ → documentation|docs
# - Pruebas: test, spec → test|testing
# - Correcciones de errores: fix|bug → bug|fix
# - Nuevas características: feat|feature → feature|enhancement
Paso 4: Crear PR vía GitHub API (Preservar Comentarios HTML)
# Crear PR
"Crear un Draft PR con la siguiente información:
- Título: Auto-generado desde mensaje de commit
- Descripción: Correctamente llenado usando .github/PULL_REQUEST_TEMPLATE.md
- Etiquetas: Auto-seleccionadas desde cambios (máx 3)
- Rama base: main
- Preservar todos los comentarios HTML"
*.md, README, docs/ → documentation|docs|doctest, spec → test|testing.github/, *.yml, Dockerfile → ci|build|infra|opspackage.json, pubspec.yaml → dependencies|depsfix|bug|error|crash|repair → bug|fixfeat|feature|add|implement|new-feature|implementation → feature|enhancement|featrefactor|clean|restructure → refactor|cleanup|cleanperformance|perf|optimize → performance|perfsecurity|secure → security.github/PULL_REQUEST_TEMPLATE.md{tipo}-{asunto}
Ejemplos:
- feat-user-profile
- fix-login-error
- refactor-api-client
{tipo}: {descripción}
Ejemplos:
- feat: Implementar API de autenticación de usuario
- fix: Corregir error de login
- docs: Actualizar README
.github/PULL_REQUEST_TEMPLATE.md<!-- Copilot review rule --><!-- ... --> permanecen como están--- se quedanImportante: GitHub CLI (gh pr edit) automáticamente escapa comentarios HTML, y el procesamiento shell puede causar mezcla de strings inválidos como EOF < /dev/null.
Soluciones Fundamentales:
# Hacer commit de tus correcciones
git add .
git commit -m "fix: Abordar feedback de revisión"
git push
gh pr edit escapa comentarios HTML y puede romper cosas--field de GitHub API para manejo apropiado.github/labels.ymlgh pr checks para ver el estadogh pr ready cuando la calidad se vea biennpx claudepluginhub wasabeef/claude-code-cookbook --plugin cook-esAutomates pull request creation by analyzing Git changes, generating descriptions from templates, and selecting labels. Invoke with 'criar PR' or 'abrir pull request'.
Crée automatiquement des Pull Requests GitHub avec analyse des modifications, modèle et labels, via `gh` et `git`.
Automates PR creation by analyzing git changes, selecting labels, and generating descriptions from templates. Supports draft PRs and CI-ready workflows.