/git-plugin:upstream-pr-contributionfrom git-plugin
Guides opening pull requests against repos you don't own. Reads CONTRIBUTING.md and PR templates in full to meet bot-enforced gates like issue-first policies and avoid AI-generated description flags.
Ships in git-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Before opening a PR against a repo you don't own, read all of
CONTRIBUTING.md and the PR template, not the first screenful. The
welcoming "here's what we merge" list is at the top; the gates — the
requirements that get a PR auto-closed by a bot — are typically 150+ lines
down, past the local-dev setup. A head -60 read looks like due diligence and
misses them entirely.
| Use this skill when... | Use something else when... |
|---|---|
| About to open a PR against a repo you don't own | Opening a PR in your own repo → git-pr |
| Writing the description for that PR | Scoping the work from the upstream issue thread → git-issue-scoping |
| A bot flagged the PR within a minute of opening | The fork has diverged and the commit won't rebase cleanly → git-upstream-pr-diverged |
| Gate | What it demands | Failure mode |
|---|---|---|
| Issue-first policy | An issue must exist before the PR, linked via Fixes #N / Closes #N in the description | A bot comments "no linked issue"; PR blocked or closed without review |
| Prose-style rules | Short, plain-voiced descriptions written in your own words | "If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED" — no bot catches this; a human just stops reading |
The second is the one that doesn't announce itself. Compliance bots check for a linked issue and for template sections; nothing flags an AI-shaped wall of text. It costs you the maintainer's attention silently, and green checks give false reassurance that the PR is in good shape.
gh api repos/<owner>/<repo>/contents/CONTRIBUTING.md --jq .content | base64 -d
gh api repos/<owner>/<repo>/contents/.github/pull_request_template.md --jq .content | base64 -d
Read both to the end. Grep is not a substitute — you don't know the
section names in advance (Issue First Policy, No AI-Generated Walls of Text, General Requirements are not terms you'd think to search for).
Also check for enforcement automation, which sets the clock you're working against:
gh pr view <n> -R <owner>/<repo> --json comments --jq '.comments[]|"\(.author.login): \(.body[0:200])"'
gh pr checks <n> -R <owner>/<repo>
The contribution gates cover the PR's form; this one covers the evidence for the fix. When the fix changes what a device, service or external system does, name the observable that shows the outcome (a reading, a stored value, an output file, a returned field) and check it before opening the PR. A reaction is not that observable: the device moved, the endpoint returned 200, the command exited 0. Each says the system accepted the input, not that it did the intended thing.
If the outcome cannot be observed yet (no hardware at hand, no access to the
service), open the PR with gh pr create --draft and say in the description
which observable is still unchecked.
Evidence (2026-11,
fablabnbg/inkscape-silhouette#405): a cutter sent a new blade-depth command reportedmovingfor 10 s, which was read as "the command works", and the issue and PR were filed. The blade's own depth indicator later showed it landing at 9, then 6, for a requested 1. The PR went back to draft, and a second commit added the tool-select command the depth needed.
Compliance bots comment within ~60s of opening and frequently carry a hard
timer ("address the above within 2 hours, or it will be automatically
closed"). So check the PR's comments shortly after opening it rather than
walking away — an upstream PR is not done when gh pr create returns.
Fixing compliance re-runs the checks; the original bot comments stay on the
thread and are not retracted. The checks, not the comments, are the live
signal — read gh pr checks, and note the newer run id.
Evidence (2026-07,
anomalyco/opencode#39147): I read the first 60 lines of CONTRIBUTING.md, concluded the PR "fits their bug-fixes category", and opened it. Two bots fired in 60 seconds — missing linked issue, missing template sections, 2-hour auto-close. Line 180 held an Issue First Policy; line 204 held "No AI-Generated Walls of Text", which the original description was a textbook instance of. Recovered by opening issue #39163 and rewriting to the template at roughly half the length, but the style violation would have cost the PR its reading regardless of the green checks.
~/.claude/rules/read-issue-thread-before-contributing.md — read the issue
thread before scoping the work. This rule is the next step: read the
contribution gates before opening the PR. Both are "go to the primary
source, and don't stop at the summary."agent-patterns-plugin:harness-tool-errors (Read refuses >25000 tokens;
page with offset/limit) — the mechanical habit that causes this: truncating a
long doc and treating the excerpt as the whole.github-metadata-hygiene.md — the metadata checklist for repos we own;
upstream repos impose their own, stricter, and enforced by bot.The asymmetry is stark: reading two files to the end costs one minute, and skipping it costs a bot-blocked PR on a countdown, a scramble to open a retroactive issue, and — worse, because nothing reports it — a description written in exactly the register the maintainers said they ignore. The top of CONTRIBUTING.md is marketing; the bottom is the contract.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub laurigates/claude-plugins --plugin git-plugin52 skills in this plugin
/deadbranchdeadbranch CLI for stale-branch cleanup — dry-run preview, TUI or non-interactive delete, protects main/develop/WIP. Use when asked to clean up branches, prune branches, or remove stale branches./external-pr-trustAuthorship as a precondition of merging — bot vs stranger classification, what a merge executes, the merge-guard hook. Use when bulk-merging PRs, or when a merge is denied for a non-self author./gh-cli-agenticgh CLI commands with JSON output for agents. Use when querying PRs, issues, runs, or repo metadata; inspecting PR checks; fetching failed CI logs; or mapping a github.com URL to an API call./git-api-prGitHub API PR creation without local git. Use when submitting file changes as a PR without local commits — quick fixes, typos, config updates, or bypassing local git state./git-branch-namingBranch names: type prefix (feat/, fix/, chore/), issue number, kebab-case. Use when picking a name for a new branch or setting a repo's branch-naming convention./git-branch-pr-workflowBranch management and PR workflows — git switch/restore, GitHub MCP. Use when creating branches, opening PRs, or working with feature branches.Other plugins' skills for the same job