create-github-pr
O que ela faz
Esta skill permite que a IA abra um pull request no GitHub a partir de uma branch que você já enviou. É para contribuidores que querem que o código seja revisado e mesclado.
Quando usar
- ✓Quando você tiver concluído as alterações em uma branch e quiser enviá-las para revisão no GitHub.
- ✓Quando precisar de um pull request que esteja vinculado à issue que ele fecha.
- ✓Quando quiser que sua IA verifique seu acesso e a aprovação da issue antes de abrir um pull request.
Link da skill
https://github.com/NVIDIA/OpenShell/blob/main/.agents/skills/create-github-pr/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Abra um pull request para a minha branch e vincule-o à issue que ele corrige.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A IA verifica o login do gh e as regras de contribuição do repositório e depois cria o pull request a partir de um comando, usando o formato de descrição do projeto.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
Minha branch precisa estar enviada antes?
Sim. Os commits precisam estar em uma branch que já esteja no repositório remoto antes que o pull request possa ser criado.
Todo pull request precisa de uma issue?
Na maioria dos casos, sim. A skill diz que cada pull request deve fechar uma issue existente, com algumas exceções para atualizações automáticas ou de manutenção.
E se eu não tiver acesso de escrita ao repositório?
A skill verifica seu acesso primeiro. Contribuidores sem acesso de escrita precisam de uma issue vinculada que já tenha a label aceita.
Detalhes
Descrição original do 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
Popularidade
- Estrelas no GitHub
- 21 mil
- Posição no ranking
- #10361
- Licença
- Apache-2.0
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
create-github-issue
21 milAjuda seu agente a criar uma issue no GitHub para um bug, pedido de funcionalidade ou tarefa, usando a ferramenta de linha de comando gh e o template do projeto.
review-github-pr
21 milEnsina seu agente a ler um pull request do GitHub e explicar as alterações, as principais decisões de design e os trechos de código relevantes em termos simples.
watch-github-actions
21 milPermite que seu agente verifique execuções do GitHub Actions, acompanhe-as até o fim e leia os logs de qualquer job que tenha falhado.
openshell-policy-advisor
21 milAjuda seu agente a se recuperar quando um sandbox bloqueia uma requisição de rede, pedindo uma permissão restrita e tentando de novo após a aprovação.
Skills parecidas
diffs
394 milPermite que seu agente gere um diff real e compartilhável das edições, como link de visualização ou arquivo de imagem, em vez de um resumo escrito à mão.
coding-agent
394 milAjuda seu agente a passar um trabalho grande de programação para o Codex, Claude Code ou OpenCode em segundo plano e acompanhar o andamento.
gh-issues
394 milAjuda seu agente a encontrar issues do GitHub, escolher quais resolver e abrir pull requests com correções, acompanhando os comentários de revisão.