Skills Agentes

Create Pr

Crea ramas, commits, pushes y pull requests de GitHub para Next.js. Cubre la plantilla de PR, el formato de --body, las ramas codex/ y las directivas de git de la app Codex.

Oficial
Estrellas
142k

en todo el repo

Actividad
55

0–100, la ruta de este skill

Actualizado
el mes pasado

último commit aquí

Commits
2

últimos 90 días

Contexto
944 tok

88 tok en reposo

Paquete
1 archivo

4 KB

Instalar

Funciona con cualquier agente que lea SKILL.md

npx -y skills add vercel/next.js --skill create-pr --agent claude-code

Se instala solo en este repositorio.

Qué hace

  • Crea ramas, commits, pushes y pull requests de GitHub para Next.js
  • Distingue entre PR desde fork y PR desde rama del propio repositorio
  • Cubre la plantilla `.github/pull_request_template.md` y el formato del `--body`
  • Incluye la convención de ramas `codex/` y las directivas de git de la app Codex
  • Trae pasos de verificación y de recuperación cuando `gh pr create` falla

Úsalo cuando

  • Crear una rama, hacer commit de los cambios actuales o abrir un PR o un borrador de PR
  • Recuperarse de problemas con `gh pr create` o con la plantilla de PR

No lo uses cuando

    Qué lo activa

    Di cualquiera de estas frases y el agente debería cargar este skill.

    • Abre un PR con estos cambios
    • Crea una rama y haz commit
    • Me falla gh pr create, ¿qué hago?

    SKILL.md

    En inglés

    Create PR

    Use this skill when turning local work into a GitHub pull request.

    Fork PRs vs Branch PRs

    Before writing a PR description, check whether this is a branch PR (the branch lives in vercel/next.js) or a fork PR (an external contribution from a fork). You may write full descriptions for branch PRs, but not for fork PRs — inform the user, offer to review their description or provide technical details, and give them the GitHub URL to create the PR themselves. See "GitHub Pull Requests and Issues" in AGENTS.md for the full policy.

    Workflow

    1. Inspect the current state before mutating Git:

      git status --short
      git branch --show-current
      git diff -- <paths>
      

      Stage only files that belong to the requested change. Preserve unrelated user changes.

    2. Create or confirm the branch:

      git switch -c codex/<short-topic>
      

      Use the codex/ prefix unless the user asks for a different name. If a .git/*lock or Operation not permitted error appears, rerun the same Git command with sandbox escalation. Do not assume a branch namespace conflict until checking refs with git branch --list, git show-ref, or git for-each-ref.

    3. Validate and commit:

      git add <paths>
      git diff --cached --check
      git commit -m "<concise message>"
      

      Keep commit messages concise and do not add generated-tool or co-author footers.

    4. Push the branch:

      git push -u origin <branch>
      
    5. Create the PR as a draft unless the user explicitly asks otherwise:

      gh pr create --draft --base canary --head <branch> --title "<title>" --body '<body>'
      

      For this repo, prefer canary as the base branch. If GitHub network access fails in the sandbox, rerun with escalation.

    PR Body

    Use this PR body format:

    ## Summary
    
    <what changed and why>
    
    ## Verification
    
    - `<command that passed>`
    - Not run: `<command>` (`<reason>`)
    
    <!-- NEXT_JS_LLM -->
    

    The "what" should be explained from the end-user perspective or developer perspective. Only include implementation changes if they're not obvious from the diff.

    A "why" should be included if the change isn't self-explanatory, or if the motivation is not clear from the diff. Omitting the "why" should be used sparingly and only for small changes.

    Do not include trivial verification commands that CI already covers (e.g. pnpm run build), but do include any manual verification steps. If the PR changes a test, you don't need to repeat the command to run that test. But if you used an existing test to validate some behavior didn't change, include that test.

    Use --body with this filled content.

    Recovery

    • If a PR may already exist, check before creating a duplicate:

      gh pr view --head <branch> --json url,isDraft,title
      
    • If approval is denied for gh pr create, report that the branch is pushed but the PR was not created, and provide the exact corrected command.

    • After successful Codex app Git actions, include the appropriate final-response directives for branch creation, staging, committing, pushing, and PR creation.

    Related Skills

    • $pr-status-triage - Analyze CI failures and PR review feedback after the PR exists.
    • $gh-stack - Manage stacked branches and dependent pull requests.

    Reproducido de vercel/next.js bajo licencia MIT. Leer esta página en markdown.

    Archivos

    1 archivo en el paquete. Solo se lee SKILL.md al activarse — las referencias se cargan si el skill decide que las necesita.

    Antes de instalar

    Es un skill interno del repositorio de Next.js y necesita el CLI `gh`.

    Detalles

    Creador
    vercel
    Licencia
    MIT
    Recursos incluidos
    Solo SKILL.md
    Repositorio
    vercel/next.js
    Código fuente
    Ver SKILL.md

    Etiquetas

    Más de vercel/next.js

    Este repo incluye 22 skills. Si instalas uno, normalmente ya tienes los demás.

    Activa Cache Components en una app de Next.js y resuelve las rutas bloqueantes que aparecen. Úsalo para adoptar o migrar, activar el flag cacheComponents o decidir entre excluir rutas y arreglarlas.

    Costo de contexto al activarse
    8.1k tok
    Tamaño del paquete
    3 archivos
    Última actualización
    hace 3 días
    Oficialherramientas desarrollo

    Lleva una ruta de Next.js a navegación instantánea bajo Cache Components o PPR mediante un bucle agéntico: codifica el objetivo como un e2e instant() en rojo y lo trabaja hasta verde, ruta a ruta.

    Costo de contexto al activarse
    6.3k tok
    Tamaño del paquete
    6 archivos
    Última actualización
    hace 5 días
    Oficialherramientas desarrollo

    Activa Partial Prefetching en una app de Next.js y resuelve las insights que surgen: audita los Link con prefetch, activa partialPrefetching y opta por rutas con prefetch = 'partial'.

    Costo de contexto al activarse
    6k tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 3 días
    Oficialherramientas desarrollo

    Verifica el comportamiento en runtime de Next.js tras editar código de la aplicación. Combina /_next/mcp, la visión de Next.js, con agent-browser, la del navegador. Requiere un next dev en marcha.

    Costo de contexto al activarse
    2k tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 5 días
    Oficialtesting qa

    Gestiona PRs apilados y parte el trabajo en ramas revisables con gh-stack: creación, visualización, edición, push, envío, sincronización, rebase, merge y checkout.

    Costo de contexto al activarse
    2.3k tok
    Tamaño del paquete
    4 archivos
    Última actualización
    hace 12 días
    Oficialherramientas desarrollo

    Compara el rendimiento de cambios de React o Next.js en VMs de Vercel Sandbox con estadística A/B pareada: rps, latencia, p95, TTFB, RSS y bytes de documento y Flight.

    Costo de contexto al activarse
    4.1k tok
    Tamaño del paquete
    13 archivos
    Última actualización
    hace 19 días
    Oficialtesting qa

    Skills relacionados

    Cómo crear y mantener skills de agente en .agents/skills/. Úsalo al crear un SKILL.md, escribir descripciones, elegir campos de frontmatter o decidir qué va en un skill y qué en AGENTS.md.

    Costo de contexto al activarse
    1k tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 3 meses
    Oficialherramientas desarrollo

    Lleva un pull request fusionado de Next.js desde canary a una rama de release anterior como next-16-2: localiza el commit, crea la rama, hace cherry-pick, valida y abre el PR.

    Costo de contexto al activarse
    832 tok
    Tamaño del paquete
    1 archivo
    Última actualización
    el mes pasado
    Oficialherramientas desarrollo

    Patrones de require() seguros para eliminación de código muerto y restricciones del runtime edge. Úsalo al escribir require condicionales, proteger imports de Node o editar define-env-plugin.ts.

    Costo de contexto al activarse
    1k tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 3 meses
    Oficialherramientas desarrollo