create-github-pr
하는 일
이 스킬은 이미 푸시한 브랜치에서 AI가 GitHub 풀 리퀘스트를 열도록 합니다. 코드가 검토되고 병합되기를 원하는 기여자를 위한 스킬입니다.
사용하는 경우
- ✓브랜치의 변경을 끝내고 GitHub에서 검토받고 싶을 때.
- ✓해결할 이슈에 연결된 풀 리퀘스트가 필요할 때.
- ✓풀 리퀘스트를 열기 전에 AI가 접근 권한과 이슈 승인을 확인하기를 원할 때.
스킬 링크
https://github.com/NVIDIA/OpenShell/blob/main/.agents/skills/create-github-pr/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“내 브랜치에 대한 풀 리퀘스트를 열고, 고치는 이슈에 연결해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
AI는 gh 로그인과 저장소의 기여 규칙을 확인한 다음, 프로젝트의 설명 형식을 따라 명령으로 풀 리퀘스트를 만듭니다.
기술 내용 (원본 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
자주 묻는 질문
브랜치를 먼저 푸시해야 하나요?
네. 풀 리퀘스트를 만들려면 커밋이 이미 원격에 있는 브랜치에 있어야 합니다.
모든 풀 리퀘스트에 이슈가 필요한가요?
대부분 그렇습니다. 자동화나 유지 관리 업데이트를 제외하면, 각 풀 리퀘스트는 기존 이슈를 닫아야 한다고 스킬이 설명합니다.
저장소에 쓰기 권한이 없으면 어떻게 하나요?
먼저 접근 권한을 확인합니다. 쓰기 권한이 없는 기여자는 승인된 레이블이 붙은 연결 이슈가 필요합니다.
상세 정보
작성자의 원본 설명
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
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
create-github-issue
21k에이전트가 gh 명령줄 도구와 프로젝트 템플릿을 써서 버그, 기능 요청, 작업에 대한 GitHub 이슈를 만들도록 돕습니다.
review-github-pr
21k에이전트가 GitHub 풀 리퀘스트를 읽고 변경 사항, 주요 설계 결정, 눈에 띄는 코드를 쉬운 말로 설명하도록 돕습니다.
watch-github-actions
21k에이전트가 GitHub Actions 실행 상태를 확인하고, 끝날 때까지 지켜보며, 실패한 작업의 로그를 읽도록 돕습니다.
openshell-policy-advisor
21k샌드박스가 네트워크 요청을 막았을 때, 필요한 가장 좁은 권한을 요청하고 승인 후 다시 시도하도록 에이전트를 돕습니다.