create-github-pr
यह क्या करती है
यह स्किल AI को उस branch से GitHub pull request खोलने देती है जो आप पहले ही push कर चुके हैं। यह उन योगदानकर्ताओं के लिए है जो अपना कोड समीक्षा और merge के लिए चाहते हैं।
कब इस्तेमाल करें
- ✓जब आपकी branch पर बदलाव पूरे हो गए हों और आप उन्हें GitHub पर समीक्षा के लिए भेजना चाहते हों।
- ✓जब आपको ऐसा pull request चाहिए जो उस issue से जुड़ा हो जिसे वह बंद करता है।
- ✓जब आप चाहते हों कि pull request खोलने से पहले आपका AI आपकी पहुँच और issue की मंज़ूरी जाँचे।
Skill का लिंक
https://github.com/NVIDIA/OpenShell/blob/main/.agents/skills/create-github-pr/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरी branch के लिए pull request खोलिए और उसे उस issue से जोड़िए जिसे वह ठीक करता है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
AI gh साइन-इन और प्रोजेक्ट के योगदान नियम जाँचता है, फिर प्रोजेक्ट के विवरण ढाँचे में एक कमांड से pull request बनाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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
अक्सर पूछे जाने वाले सवाल
क्या पहले मेरी branch push होनी चाहिए?
हाँ। pull request बनने से पहले commits उस branch पर होने चाहिए जो पहले से remote पर है।
क्या हर pull request के लिए issue ज़रूरी है?
ज़्यादातर मामलों में हाँ। स्किल कहती है कि हर pull request एक मौजूदा issue बंद करे, कुछ अपवाद स्वचालित या रखरखाव अपडेट के लिए हैं।
अगर मेरे पास repository पर write पहुँच न हो तो?
स्किल पहले आपकी पहुँच जाँचती है। जिन योगदानकर्ताओं के पास write पहुँच नहीं है, उनके लिए एक जुड़ा issue चाहिए जिस पर स्वीकृत label हो।
जानकारी
लेखक का मूल विवरण
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
लोकप्रियता
- GitHub स्टार
- 21k
- रैंकिंग में स्थान
- #10361
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
create-github-issue
21kआपके एजेंट को gh कमांड लाइन टूल और प्रोजेक्ट के टेम्पलेट से बग, फ़ीचर अनुरोध या कार्य के लिए GitHub issue बनाने में मदद करती है।
review-github-pr
21kआपके एजेंट को GitHub pull request पढ़कर उसके बदलाव, मुख्य डिज़ाइन फ़ैसले और ख़ास कोड सरल भाषा में समझाना सिखाती है।
watch-github-actions
21kआपके एजेंट को GitHub Actions runs की स्थिति जाँचने, किसी run के पूरा होने तक उसे देखने और फ़ेल हुए job के लॉग पढ़ने देती है।
openshell-policy-advisor
21kआपके एजेंट को sandbox के नेटवर्क अनुरोध रोकने पर संभलने में मदद करती है: एक सीमित अनुमति माँगकर मंज़ूरी के बाद फिर से कोशिश करती है।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।