create-cuda-python-pull-request
Skill3.4k starsChanged 4 months agoApache-2.0View on GitHub
Create a CUDA Python pull request from an approved personal or organization-owned fork, including the GitHub CLI GraphQL fallback for renamed organization-owned forks. Use when the user directly requests creating or opening a CUDA Python pull request. Do not use for local implementation, commits, pushes, branch preparation, PR advice, or general GitHub work without that direct request.
- Commits and pushes
Trending
More talk lately.thin dataabout the whole repository
Who's talking about NVIDIA/cuda-python
- rapidsai/rmm“Replace use of custom CUDA bindings with CUDA-Python”GitHub · Dec 3, 2021 · 12 reactions
- jungwoo-ha/WeeklyArxivTalk“[20210815] Weekly AI ArXiv 만담”GitHub · Aug 14, 2021 · 12 reactions
- A Hacker News story“CUDA Python Low-Level Bindings”Hacker News · Aug 21, 2021 · 4 points
- pytorch/pytorch“RFC: The State of Custom CUDA extensions in PyTorch”GitHub · Apr 23, 2025 · 3 reactions
- apache/arrow“POC: [Python] try out stubgen-pyx for auto-generated typing stubs”GitHub · Oct 1, 2026 · 2 reactions
The biggest 5 of 12 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 12
Talked about on GitHub, Hacker News and Bluesky (12 times).
On GitHub · 10
- Dec 3, 2021Replace use of custom CUDA bindings with CUDA-Python — rapidsai/rmm12 reactions · 16 comments
- Aug 14, 2021[20210815] Weekly AI ArXiv 만담 — jungwoo-ha/WeeklyArxivTalk12 reactions · 3 comments
- Apr 23, 2025RFC: The State of Custom CUDA extensions in PyTorch — pytorch/pytorch3 reactions · 29 comments
- Oct 1, 2026POC: [Python] try out stubgen-pyx for auto-generated typing stubs — apache/arrow2 reactions · 4 comments
- Apr 11, 2026Allow getting `AtenTensorHandle` from the tensor object via AOTI stable C API — pytorch/pytorch2 reactions · 6 comments
5 more on GitHub
- Oct 5, 2026deps: bump the python-minor group with 8 updates — pcalnon/juniper-cascor1 reaction · 1 comment
- Jul 19, 2026chore(deps): bump cuda-bindings from 13.2.0 to 13.3.1 — grisuno/LazyOwn1 reaction · 1 comment
- Mar 2, 2026CuPy fails to auto-detect CUDA when CUDA_PATH is unset in containers (RawKernel / JIT compile) — cupy/cupy1 reaction · 1 comment
- Feb 10, 2026[FEA] Migrate RAPIDS to CCCL `cuda::stream_ref` / `cuda::stream` in C++ and `cuda.core` streams in Python — rapidsai/rmm1 reaction · 1 comment
- Sep 19, 2025RFC: Support CUDA Stream Protocol — rapidsai/rmm1 reaction · 6 comments
On Hacker News · 1
- Aug 21, 2021CUDA Python Low-Level Bindings4 points
On Bluesky · 1
- Apr 9, 2025📦 NVIDIA / cuda-python ⭐ 1,537 (+50) 🗒 Python CUDA Python: Performance meets Productivity — @github-trending.bsky.social2 likes and reposts
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- benchmarks/cuda_bindings/AGENTS.mdAGENTS.md
- benchmarks/cuda_core/AGENTS.mdAGENTS.md
- cuda_bindings/AGENTS.mdAGENTS.md
- cuda_core/AGENTS.mdAGENTS.md
- cuda_core/tests/AGENTS.mdAGENTS.md
- cuda_pathfinder/AGENTS.mdAGENTS.md
- cuda_python/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- cuda_bindings/CLAUDE.mdCLAUDE.md
- cuda_core/CLAUDE.mdCLAUDE.md
- cuda_pathfinder/CLAUDE.mdCLAUDE.md
- cuda_python/CLAUDE.mdCLAUDE.md
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Run git status --short --branch, inspect the branch diff, and confirm the intended base branch.
- Very specific: line 18
Run git remote -v and resolve the complete OWNER/REPOSITORY names of the base repository and intended fork.
- Distinctive: line 29
Run the checks appropriate to the change and review the final diff.
- Very specific: line 42
Use gh pr create when it can identify the fork unambiguously.
- Very specific: line 57
Add --draft when the user requests a draft pull request.
- Very specific: line 66
If gh pr create cannot identify an organization-owned fork whose repository name differs from the base repository, create the pull request …
- Very specific: line 79
Create the pull request. Set draft to match the user's request.
- Distinctive: line 116
After creation, add the required metadata to the returned pull-request number:
- Distinctive: line 126
Verify the resulting URL, base branch, head repository and branch, draft state, body, assignee, label, and milestone before reporting …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Create CUDA Python Pull Request
This skill supplies technical procedure after the user directly asks to create a pull request. It does not define when a pull request should be created or authorize one without that direct request. Do not infer the request from completed work, a local commit, a push request, or the existence of a suitable fork.
Inspect the topology and proposed change
- Run
git status --short --branch, inspect the branch diff, and confirm the intended base branch. - Run
git remote -vand resolve the completeOWNER/REPOSITORYnames of the base repository and intended fork. Do not rely on remote names alone. - Confirm through GitHub that the push target is a fork of the base repository and is not the base repository itself.
- Confirm that the intended push target complies with the repository's remote-write policy and the user's request.
- Inspect the repository's pull-request template, available labels, and open milestones. Do not guess required metadata; ask the user when it is unclear.
Validate and push
Run the checks appropriate to the change and review the final diff. Push the current branch to the approved fork using the explicit remote and branch:
git push <fork-remote> <branch>Create the pull request
Prepare a complete body from the repository's pull-request template. Every
pull request must have at least one assignee, one label, and a milestone; CI
enforces this through pr-metadata-check.
Use gh pr create when it can identify the fork unambiguously. Select the base
repository and branch explicitly and supply the required metadata:
gh pr create \
--repo <base-owner>/<base-repository> \
--base <base-branch> \
--head <fork-owner>:<head-branch> \
--title "<title>" \
--body-file <path-to-pr-body> \
--assignee <assignee> \
--label <label> \
--milestone <milestone>Add --draft when the user requests a draft pull request.
Handle renamed organization-owned forks
GitHub CLI issue cli/cli#10093
tracks gh pr create support for cross-repository pull requests within one
organization. Check whether the issue has been resolved before using the
workaround.
If gh pr create cannot identify an organization-owned fork whose repository
name differs from the base repository, create the pull request with GitHub's
GraphQL API and pass headRepositoryId explicitly.
Resolve the repository node IDs:
BASE_REPO="<base-owner>/<base-repository>"
HEAD_REPO="<fork-owner>/<fork-repository>"
BASE_REPO_ID="$(gh api "repos/${BASE_REPO}" --jq '.node_id')"
HEAD_REPO_ID="$(gh api "repos/${HEAD_REPO}" --jq '.node_id')"Create the pull request. Set draft to match the user's request.
gh api graphql \
-f repositoryId="${BASE_REPO_ID}" \
-f headRepositoryId="${HEAD_REPO_ID}" \
-f baseRefName="<base-branch>" \
-f headRefName="<head-branch>" \
-f title="<title>" \
-F body="@<path-to-pr-body>" \
-F draft=false \
-f query='
mutation CreatePullRequest(
$repositoryId: ID!
$headRepositoryId: ID!
$baseRefName: String!
$headRefName: String!
$title: String!
$body: String!
$draft: Boolean!
) {
createPullRequest(input: {
repositoryId: $repositoryId
headRepositoryId: $headRepositoryId
baseRefName: $baseRefName
headRefName: $headRefName
title: $title
body: $body
draft: $draft
}) {
pullRequest { number url }
}
}' \
--jq '.data.createPullRequest.pullRequest'The GraphQL API does not populate the pull-request template automatically. After creation, add the required metadata to the returned pull-request number:
gh pr edit <pr-number> \
--repo "${BASE_REPO}" \
--add-assignee "<assignee>" \
--add-label "<label>" \
--milestone "<milestone>"Verify the resulting URL, base branch, head repository and branch, draft state, body, assignee, label, and milestone before reporting completion.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

