triage-contributor-pr
БесплатноБез исполняемых скриптовНе проверенTriage open pull requests from external contributors to prisma/orm and produce a per-PR verdict with evidence. Use when a maintainer asks to triage, evaluate…
от prisma★ 47 814 звёзд на GitHubОб этом скилле
Triage external contributor PRs
Decide what happens to unsolicited pull requests from outside the maintainer team, and report each verdict with the evidence behind it.
The criteria are in docs/oss/pr-triage.md. Read that file first — this skill is the procedure for applying it, not a second copy of it. When the two disagree, the doc wins.
When to use
- "Triage the open contributor PRs"
- "Evaluate the PRs from
- "
- "Is it safe to approve CI on #NNNNN?"
- "Which contributor PRs are stale?"
Scope
Report, do not act. Produce verdicts, evidence, and draft replies. Do not close a PR, post a comment, approve a workflow run, or push to a contributor's branch unless the maintainer asks for that as a separate step. Approving CI in particular is the maintainer's call — your job is to give them what they need to make it.
Shell constraint
A PreToolUse hook in agent shells (.claude/scripts/enforce-tools.mjs) rejects any Bash command that contains the word npm or npx followed by a space or a line end, including inside a heredoc body or a search pattern. Write a report or draft reply that mentions either word with the editor tool rather than a heredoc. To search a diff for it, use a pattern such as n[p]m.
Procedure
1. Build the list
GitHub logins are case-sensitive in a jq comparison and users do capitalize unpredictably (Develop-KIM, not Develop-Kim). Lowercase both sides or you will silently drop PRs.
Save the open queue once:
mkdir -p wip/pr-triage
gh pr list --repo prisma/orm --state open --limit 1000 \
--json number,title,author,isCrossRepository,baseRefName,updatedAt,isDraft \
> wip/pr-triage/queue.json
--limit 1000 sits above the current queue size; it is not a guarantee. If queue.json holds exactly that many PRs the list is truncated, so raise the limit and re-run before trusting the result.
A fork PR (isCrossRepository) is always external, but a PR from a branch on prisma/orm itself can be external too: former staff keep branches they pushed while they had write access. The doc's Who counts as external has the rule. When triaging the whole queue, check the permission and profile bio of every same-repo author:
jq -r '[.[] | select((.isCrossRepository | not) and (.author.is_bot | not)) | .author.login] | unique[]' wip/pr-triage/queue.json \
| while read -r login; do
printf '%s\t%s\t%s\n' "$login" \
"$(gh api "repos/prisma/orm/collaborators/$login/permission" 2>/dev/null | jq -r '.permission // "none"')" \
"$(gh api "users/$login" --jq '.bio // ""' | tr '\n' ' ')"
done
admin and write are team. read or none is external. The exception is an agent account that belongs to a team member, but a bio saying so (for example "Belongs to @admin or write. The same applies to a fork author that looks like an agent account. gh pr list does not expose authorAssociation, so do not reach for it.
Set EXTRA to the same-repo authors you found to be external, and TEAM to fork authors the maintainer confirmed as team agents, both lowercased. Set AUTHORS from whoever the maintainer named, lowercased, or leave it as [] to triage the whole external queue. Never leave a list from a previous run in place, and never treat the example list as the scope.
AUTHORS='["snowingfox","wehamed"]' # or '[]' for every external contributor
EXTRA='[]' # same-repo authors found external above
TEAM='[]' # fork authors confirmed as team agents
jq -r --argjson authors "$AUTHORS" --argjson extra "$EXTRA" --argjson team "$TEAM" '.[]
| (.author.login | ascii_downcase) as $login
| select($authors == [] or ($login | IN($authors[])))
| select($authors != [] or ((.isCrossRepository or ($login | IN($extra[]))) and ($login | IN($team[]) | not)))
| "\(.number)\t\(.author.login)\t\(.baseRefName)\t\(.updatedAt)\t\(.title)"' wip/pr-triage/queue.json
Confirm the count against a per-author query before you rely on the list. A user with one PR that never appeared is the failure mode to rule out:
gh pr list --repo prisma/orm --state all --author <login> --limit 20 --json number,state,title
Note any PR that replaces a previously closed one, and find out why the first was closed — the reason usually still applies.
2. Fetch each PR once
Save to wip/pr-triage/ and work from the files. Do not re-run gh to answer each question; these artifacts are working notes and never get committed.
for n in <numbers>; do
gh pr view "$n" --repo prisma/orm \
--json number,title,author,baseRef
Установить triage-contributor-pr в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл triage-contributor-pr?
Triage open pull requests from external contributors to prisma/orm and produce a per-PR verdict with evidence. Use when a maintainer asks to triage, evaluate, assess, or review the queue of incoming contributor PRs, to decide whether a fork PR is safe to run CI on, to check whether a PR is in scope for its version line, or to find stale contributor PRs. Applies the criteria in docs/oss/pr-triage.md. Read-only by default — it reports verdicts and does not close PRs, post comments, or approve workflow runs unless the maintainer asks for that separately.
Как установить скилл triage-contributor-pr?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл triage-contributor-pr запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub