create-github-pr
Fungsinya
Skill ini memungkinkan AI membuka pull request di GitHub dari branch yang sudah Anda push. Skill ini ditujukan untuk kontributor yang ingin kode mereka ditinjau dan digabungkan.
Kapan dipakai
- ✓Saat Anda sudah menyelesaikan perubahan di sebuah branch dan ingin mengajukannya untuk ditinjau di GitHub.
- ✓Saat Anda memerlukan pull request yang menautkan ke issue yang ditutupnya.
- ✓Saat Anda ingin AI memeriksa akses dan persetujuan issue Anda sebelum pull request dibuka.
Link skill
https://github.com/NVIDIA/OpenShell/blob/main/.agents/skills/create-github-pr/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
“Buka pull request untuk branch saya dan tautkan ke issue yang diperbaikinya.”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill ini memeriksa status login gh dan aturan kontribusi repositori, lalu membuat pull request dari branch dengan perintah yang menggunakan format deskripsi proyek.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apakah branch saya harus sudah di-push terlebih dahulu?
Ya. Commit harus berada di branch yang sudah ada di remote sebelum pull request dapat dibuat.
Apakah setiap pull request memerlukan issue?
Pada sebagian besar kasus, ya. Skill ini menyatakan bahwa setiap pull request harus menutup issue yang sudah ada, dengan beberapa pengecualian untuk pembaruan otomatis atau pemeliharaan.
Bagaimana jika saya tidak memiliki akses tulis ke repositori?
Skill ini memeriksa akses Anda terlebih dahulu. Kontributor tanpa akses tulis memerlukan issue tertaut yang sudah memiliki label accepted.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 21k
- Peringkat
- #10361
- Lisensi
- Apache-2.0
- Diperbarui
- 2/11/2026
Komentar
- …
Skill lain dari repositori ini
create-github-issue
21kMembantu agent Anda membuat issue GitHub untuk bug, permintaan fitur, atau tugas, menggunakan alat baris perintah gh dan template proyek.
review-github-pr
21kMengajari agent Anda membaca pull request GitHub dan menjelaskan perubahannya, pilihan desain utama, dan kode penting dengan bahasa yang sederhana.
watch-github-actions
21kMembantu agent Anda memeriksa eksekusi GitHub Actions, mengikutinya sampai selesai, dan membaca log dari pekerjaan mana pun yang gagal.
openshell-policy-advisor
21kMembantu agent Anda pulih saat sandbox memblokir permintaan jaringan, dengan meminta izin yang sempit dan mencoba lagi setelah disetujui.
Skill serupa
diffs
394kMemungkinkan agent Anda menghasilkan diff perubahan yang nyata dan dapat dibagikan sebagai tautan viewer atau file gambar, bukan ringkasan yang ditulis manual.
coding-agent
394kMembantu agent Anda menyerahkan pekerjaan pemrograman besar ke Codex, Claude Code, atau OpenCode di latar belakang, lalu memeriksa kemajuannya.
gh-issues
394kMembantu agent Anda menemukan issue GitHub, memilih yang dikerjakan, dan membuka pull request perbaikan, termasuk tindak lanjut komentar tinjauan.