Skills Agentes

Deploy Release Test

Valida el paquete de preview de Next.js específico de un commit y dispara manualmente toda la suite de tests de despliegue vía el workflow test_e2e_deploy_release.yml de GitHub Actions.

Oficial

Reemplaza a: pnpm test-deploy para validaciones puntuales de tests de despliegue

Estrellas
142k

en todo el repo

Actividad
61

0–100, la ruta de este skill

Actualizado
hace 10 días

último commit aquí

Commits
2

últimos 90 días

Contexto
1.2k tok

144 tok en reposo

Paquete
2 archivos

5 KB

Instalar

Funciona con cualquier agente que lea SKILL.md

npx -y skills add vercel/next.js --skill deploy-release-test --agent claude-code

Se instala solo en este repositorio.

Este skill makes network requests.

Qué hace

  • Resuelve el último SHA de la rama de un PR y construye la URL del paquete de vercel-packages para ese commit
  • Espera con scripts/wait-for-preview-tarball.mjs a que el tarball redirigido responda antes de continuar
  • Dispara test_e2e_deploy_release.yml vía gh workflow run pasando solo nextVersion, preservando los demás inputs por defecto
  • Verifica con gh run list que el run creado corresponde a la rama y SHA validados

Úsalo cuando

  • Se pide ejecutar manualmente la suite completa de tests de despliegue de Next.js
  • Se pide correr específicamente el workflow test_e2e_deploy_release.yml desde una rama interna de PR de vercel/next.js

No lo uses cuando

  • Para chequeos puntuales de un test de despliegue o un grupo acotado de tests, usar el flujo local con pnpm test-deploy
  • Si la rama del PR es de un fork (cross-repository), ya que no puede ejecutar este workflow con secretos

Qué lo activa

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

  • Ejecuta la suite completa de deploy tests para el PR 12345 de next.js
  • Dispara el workflow test_e2e_deploy_release.yml desde mi rama de PR interna
  • Corre todos los tests de despliegue para el commit actual de esta rama

SKILL.md

En inglés

Deploy Release Test

Use this skill only when manually running the entire Next.js deployment test suite for a pull request. Treat package validation as a hard gate: never dispatch the workflow until the exact commit's redirected tarball responds successfully.

Scope

Do not use this workflow to sanity-check one deployment test or a focused group of tests. Follow Running Deploy Tests Locally instead:

NEXT_TEST_VERSION=https://vercel-packages.vercel.app/next/commits/<commit-sha>/next pnpm test-deploy <path-to-test>

If a request to "run deploy tests" does not explicitly call for the entire suite, prefer the focused local workflow and scope it to the affected tests.

Inputs

  • Accept a PR number or determine the PR from the current branch.
  • Use repository vercel/next.js and workflow .github/workflows/test_e2e_deploy_release.yml.
  • Require the PR head branch to exist in vercel/next.js. A fork branch cannot run this secret-bearing workflow; use the repository's PR adoption process first when appropriate.

Workflow

  1. Resolve the PR branch and its latest commit from GitHub, not merely from the local checkout:

    gh pr view <pr-number> --repo vercel/next.js \
      --json number,url,headRefName,headRefOid,isCrossRepository
    

    If no PR number was supplied, omit <pr-number> to detect the PR from the current branch. Stop if isCrossRepository is true. Record headRefName as the branch and headRefOid as the commit SHA.

  2. Construct the exact package URL:

    https://vercel-packages.vercel.app/next/commits/<commit-sha>/next
    
  3. Wait for the package to become downloadable before dispatching anything:

    node scripts/wait-for-preview-tarball.mjs --commit-sha <commit-sha>
    

    Keep the wait in an ongoing terminal session and poll it so the user still receives progress updates. The helper uses HEAD, follows the redirect to Vercel Blob, and only succeeds when the final artifact is available. Do not substitute a check that accepts the initial redirect: that endpoint can redirect even while the blob still returns 404.

    If the helper times out or reports an authorization or build failure, do not dispatch the workflow. Report the failure and inspect the commit's build-and-deploy / upload-preview-tarballs checks if useful.

  4. Resolve the PR again immediately after validation. Compare the current headRefName and headRefOid with the recorded values. If either changed, return to step 2 and validate the new commit-specific URL. Never reuse the old package URL for a moved branch.

  5. Trigger the workflow from the PR branch and pass only nextVersion:

    gh workflow run test_e2e_deploy_release.yml \
      --repo vercel/next.js \
      --ref <pr-branch> \
      -f nextVersion=https://vercel-packages.vercel.app/next/commits/<commit-sha>/next
    

    Do not pass any other -f values. Leaving them unspecified preserves the workflow defaults, including vercelCliVersion: vercel@latest and empty optional overrides.

  6. Find and verify the newly created run:

    gh run list --repo vercel/next.js \
      --workflow test_e2e_deploy_release.yml \
      --branch <pr-branch> \
      --event workflow_dispatch \
      --limit 5 \
      --json databaseId,url,status,conclusion,headBranch,headSha,displayTitle,createdAt
    

    Confirm that the newest matching run has:

    • headBranch equal to the PR branch
    • headSha equal to the validated commit SHA
    • displayTitle containing the exact commit-specific package URL

    A race can still move the branch between the final check and dispatch. If the run's headSha differs, report the mismatch and do not trigger another run until the new SHA's package has been validated.

Completion Report

Report the PR branch, validated SHA and package URL, workflow run URL, and its current status. Do not wait for the full deployment suite unless the user asks you to monitor it.

Related Skills

  • $pr-status-triage - Inspect failures if the deployment workflow does not pass.
  • $create-pr - Create or update the internal PR branch before deployment testing.

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

Archivos

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

Antes de instalar

Requiere gh CLI configurado con acceso al repo vercel/next.js y que la rama del PR exista en ese repositorio (no en un fork).

Detalles

Creador
vercel
Licencia
MIT
Recursos incluidos
Incluye scripts o referencias
Repositorio
vercel/next.js
Código fuente
Ver SKILL.md

Etiquetas

Más de vercel/next.js

Este repo incluye 24 skills. Si instalas uno, normalmente ya tienes los demás. Ver el pack next.js entero y su comando de instalación

Activa Cache Components en una app de Next.js y resuelve las rutas bloqueantes que surgen: el flag cacheComponents, errores de blocking-prerender/instant validation y el codemod cache-components-instant-false.

Costo de contexto al activarse
8.3k tok
Tamaño del paquete
3 archivos
Última actualización
hace 6 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 10 días
Oficialherramientas desarrollo

Activa Partial Prefetching en una app Next.js y trabaja los insights que surge: flag `partialPrefetching`, `export const prefetch = 'partial'`, auditoría de `Link prefetch={true}` y tests `instant()`.

Costo de contexto al activarse
6.8k tok
Tamaño del paquete
2 archivos
Última actualización
hace 10 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 18 días
Oficialtesting qa

Cómo usar las directivas de test @gate / @force-gate en lugar de it.skip o patrones de skip falso-verde, con las condiciones, el patrón de axis y los comandos de verificación.

Costo de contexto al activarse
2.7k tok
Tamaño del paquete
1 archivo
Última actualización
hace 4 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 25 días
Oficialherramientas desarrollo

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

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.

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