agentleFS
NVIDIAKnown publisherNVIDIA/cuda-python/.agents/skills/create-cuda-python-pull-request/SKILL.md

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

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 1 mentionMar 2026: 1 mentionApr 2026: 1 mentionMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 1 mentionAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 2 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the NVIDIA/cuda-python repository that our weekly crawl found: only 12 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about NVIDIA/cuda-python

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

5 more on GitHub

On Hacker News · 1

On Bluesky · 1

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
  1. Distinctive:

    Run git status --short --branch, inspect the branch diff, and confirm the intended base branch.

    line 16
  2. Very specific:

    Run git remote -v and resolve the complete OWNER/REPOSITORY names of the base repository and intended fork.

    line 18
  3. Distinctive:

    Run the checks appropriate to the change and review the final diff.

    line 29
  4. Very specific:

    Use gh pr create when it can identify the fork unambiguously.

    line 42
  5. Very specific:

    Add --draft when the user requests a draft pull request.

    line 57
  6. Very specific:

    If gh pr create cannot identify an organization-owned fork whose repository name differs from the base repository, create the pull request …

    line 66
  7. Very specific:

    Create the pull request. Set draft to match the user's request.

    line 79
  8. Distinctive:

    After creation, add the required metadata to the returned pull-request number:

    line 116
  9. Distinctive:

    Verify the resulting URL, base branch, head repository and branch, draft state, body, assignee, label, and milestone before reporting …

    line 126

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Run git status --short --branch, inspect the branch diff, and confirm the intended base branch.
  2. Run git remote -v and resolve the complete OWNER/REPOSITORY names of the base repository and intended fork. Do not rely on remote names alone.
  3. Confirm through GitHub that the push target is a fork of the base repository and is not the base repository itself.
  4. Confirm that the intended push target complies with the repository's remote-write policy and the user's request.
  5. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.