create-github-pr
Qué hace
Esta skill permite que la IA abra una pull request en GitHub desde una rama que ya has subido. Es para colaboradores que quieren que su código se revise y se integre.
Cuándo usarla
- ✓Cuando has terminado los cambios de una rama y quieres enviarlos a revisión en GitHub.
- ✓Cuando necesitas una pull request que enlace con el issue que cierra.
- ✓Cuando quieres que tu IA compruebe tu acceso y la aprobación del issue antes de abrir una pull request.
Link de la skill
https://github.com/NVIDIA/OpenShell/blob/main/.agents/skills/create-github-pr/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Abre una pull request para mi rama y enlázala con el issue que corrige.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La IA comprueba la sesión de gh y las normas de contribución del repositorio, y después crea la pull request con un comando que usa el formato de descripción del proyecto.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Create GitHub Pull Request
Create pull requests on GitHub using the gh CLI.
Prerequisites
- The
ghCLI must be authenticated (gh auth status) - You must have commits on a branch that's pushed to the remote
- Every PR must close an existing issue, except automated dependency updates and build or flaky-test fixes from authors with write access, as described in
CONTRIBUTING.md. Follow Branch Names inCONTRIBUTING.mdfor contributor branch names.
Before Creating a PR
Verify Contributor Access and Issue Acceptance
Before pushing or creating a PR (including a draft), verify the author's access
to the target repository, not their fork. For the authenticated gh user:
gh repo view OWNER/REPO --json nameWithOwner,viewerPermission
gh issue view ISSUE_NUMBER --repo OWNER/REPO --json number,url,labels
Authors with verified WRITE, MAINTAIN, or ADMIN access may proceed without
state:accepted; keep the issue link and note the missing label. Everyone else
must link at least one target-repository issue and have state:accepted on each.
Otherwise, preserve local work and report which issue needs acceptance. A direct
request, roadmap placement, other labels, or vouch status does not bypass this gate.
When acting for another author, verify their permissions. Resolve failed lookups before proceeding; retry sandbox network failures outside the sandbox before reporting an authentication problem. Vouch requirements still apply separately.
Check Config Documentation
If the branch changes gateway TOML parsing, [openshell.gateway] fields,
[openshell.drivers.<name>] fields, driver config defaults, or Helm rendering
of gateway.toml, verify that docs/how-it-works/gateways/configuration.mdx is updated
in the same branch. If the change affects user-facing compute-driver setup,
also update docs/how-it-works/sandboxes/runtimes.mdx or the relevant
deployment docs.
Check Agent Infrastructure
Use the sync-agent-infra skill's maintenance map to identify related skill updates when the branch changes behavior, commands, or development workflows. Run its full consistency check when the branch adds, removes, or renames skills or crates; changes workflow relationships or skill coverage; modifies issue or PR templates; or changes agent cross-references. Resolve any drift before creating the PR.
Verify the Affected Areas
Use the verification guidance in CONTRIBUTING.md to select checks for the changed files and behavior. Guidance, skills, and template changes need applicable Markdown, YAML, link, and consistency checks. Run Rust or SDK suites when those components or their dependencies can be affected. Shared APIs, schemas, dependencies, and build changes may require broader checks even when component source files are unchanged.
mise run ci and mise run pre-commit are broad convenience tasks, not blanket PR prerequisites. Broaden validation only for a concrete remaining risk or failed check, and report what actually ran.
Verify Branch State
Before creating a PR, verify:
You're not on main - Never create PRs directly from main:
# Should NOT be "main" git branch --show-currentBranch follows naming convention - Follow Branch Names in
CONTRIBUTING.md, including the exceptions for generated branches and private security work.# Example: feat/1234-add-pagination/octocat git branch --show-current
Push Your Branch
Ensure your branch is pushed to the remote:
git push -u origin HEAD
Creating a PR
Basic PR creation (opens editor for description):
gh pr create
With title and body:
gh pr create --title "PR title" --body "PR description"
PR Title Format
PR titles must follow the conventional commit format:
<type>(<scope>): <description>
Types:
feat- New featurefix- Bug fixdocs- Documentation onlyrefactor- Code change that neither fixes a bug nor adds a featuretest- Adding or updating testschore- Maintenance tasks (CI, build, dependencies)perf- Performance improvement
Scope is typically the component name (e.g., evaluator, cli, sdk, jobs).
Examples:
feat(evaluator): add support for custom rubricsfix(jobs): handle timeout errors gracefullydocs(sdk): update authentication examplesrefactor(models): simplify deployment logic- `chore(ci): update Python version in pip
Preguntas frecuentes
¿Mi rama tiene que estar subida antes?
Sí. Los commits deben estar en una rama que ya exista en el remoto antes de crear la pull request.
¿Cada pull request necesita un issue?
En la mayoría de los casos, sí. La skill indica que cada pull request debe cerrar un issue existente, con algunas excepciones para actualizaciones automáticas o de mantenimiento.
¿Qué pasa si no tengo permiso de escritura en el repositorio?
La skill comprueba primero tu acceso. Los colaboradores sin permiso de escritura necesitan un issue vinculado que ya tenga la etiqueta aceptada.
Detalles
Descripción original del autor
Create GitHub pull requests using the gh CLI. Use when the user wants to create a new PR, submit code for review, or open a pull request. Trigger keywords - create PR, pull request, new PR, submit for review, code review.
repo: NVIDIA/OpenShell
Popularidad
- Estrellas en GitHub
- 21 mil
- Posición en el ranking
- #10361
- Licencia
- Apache-2.0
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
create-github-issue
21 milAyuda a tu agente a crear un issue de GitHub para un error, una petición de función o una tarea, usando la herramienta de línea de comandos gh y la plantilla del proyecto.
review-github-pr
21 milEnseña a tu agente a leer una pull request de GitHub y explicar sus cambios, las decisiones de diseño clave y el código destacado con palabras sencillas.
watch-github-actions
21 milPermite que tu agente revise las ejecuciones de GitHub Actions, las siga hasta que terminen y lea los registros de cualquier trabajo que haya fallado.
openshell-policy-advisor
21 milAyuda a tu agente a recuperarse cuando un sandbox bloquea una petición de red, pidiendo un permiso reducido y reintentando tras la aprobación.
Skills parecidas
diffs
394 milPermite que tu agente genere un diff real y compartible de los cambios, como enlace de visualización o archivo de imagen, en lugar de un resumen escrito a mano.
coding-agent
394 milAyuda a tu agente a pasar un trabajo de programación grande a Codex, Claude Code u OpenCode como trabajador en segundo plano, y después revisar su progreso.
gh-issues
394 milAyuda a tu agente a encontrar incidencias de GitHub, elegir cuáles trabajar y abrir pull requests con correcciones, incluido el seguimiento de los comentarios de revisión.