upstream-pr-contribution
БесплатноБез исполняемых скриптовНе проверенOpening a pull request against a repository you do not own. Use when about to open one, to read CONTRIBUTING.md and the PR template in full and meet the…
от laurigates★ 61 звезда на GitHubОб этом скилле
Read CONTRIBUTING.md in Full Before an Upstream PR — the Gates Live Below the Fold
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.
When to Use This Skill
| 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 |
The two gate classes a truncated read misses
| 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.
The check — two API calls, before writing anything
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>
Check the outcome, not the reaction
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.
Writing the description
- Fill the template verbatim — same headings, same order, checkboxes ticked. Several repos auto-reject on missing sections.
- Halve it, then halve the framing. Keep: what broke, the change, the non-obvious implementation details, and the verification output. Cut: restated context the maintainer already has, bolded lead-ins on every paragraph, exhaustive rationale sections, "Scope"/"Notes" appendices.
- Verification is not optional prose — most templates ask how you verified it works and how a reviewer reproduces it. Paste the actual output (a runner log excerpt, a before/after command), not a claim.
- The house style for a portfolio-internal PR body (detailed, sectioned, evidence-heavy) is wrong for an upstream one. Different audience, different budget for your words.
Bots enforce on a deadline
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 CON
Установить upstream-pr-contribution в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(gh api *)Bash(base64 *)Bash(gh pr view *)Bash(gh pr checks *)Bash(gh pr create *)ReadGrepGlobTodoWriteFAQ
Что делает скилл upstream-pr-contribution?
Opening a pull request against a repository you do not own. Use when about to open one, to read CONTRIBUTING.md and the PR template in full and meet the contribution gates bots enforce.
Как установить скилл upstream-pr-contribution?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл upstream-pr-contribution запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic