pr-overview
БесплатноБез исполняемых скриптовНе проверенPull a PR from GitHub, run parallel review agents (code reuse, quality, efficiency, spec adherence) in read-only mode, surface unresolved comments, and write…
от ArjenSchwarz★ 20 звёзд на GitHubОб этом скилле
PR Overview
Fetch a GitHub PR, review it through multiple specialized agents (read-only), collect any unresolved comments, and produce a self-contained HTML overview at pr-overview.html in the repo root so the user can read it in a browser.
This skill never modifies code, never commits, never pushes, and never resolves comment threads. It only produces an overview. For a workflow that also applies fixes, use pr-review-html; for one that addresses reviewer comments, use pr-review-fixer.
Two caveats to "never touches the repository": when CI has no usable test artifacts and the PR is a same-repo PR in a repository you have cloned, Phase 1b executes the branch's install scripts and tests on this machine, in a throwaway git worktree under the job directory, with your environment and credentials; and fetching the PR head writes a ref into the clone's .git (FETCH_HEAD), which touches no working-tree file and no branch.
Phase 1: Fetch the PR
Resolve which PR to look at, in this order:
- An explicit number, URL, or branch name from the user
- Otherwise the PR for the current branch via
gh pr view --json number
Pull what you need:
gh pr view <pr> -R <owner>/<repo> --json number,title,author,baseRefName,headRefName,headRefOid,isCrossRepository,headRepository,body,url,state,commits,files,createdAt
Pin the snapshot. SHA=<headRefOid> from that JSON is the commit every later step describes — the diffs, the CI lookup, the fetch, the worktree, and the diagram all use it, so a branch that moves mid-review cannot give the page data from two trees. isCrossRepository: true means a fork PR. Every gh api and gh run call in this skill carries -R <owner>/<repo> so it works without a clone, and list endpoints use --paginate.
Working directory. Every generated input — diff fragments, downloaded artifacts, the diagram, the overview JSON itself — lives in $INPUTS, outside any working tree:
INPUTS="${CLAUDE_JOB_DIR:-$(mktemp -d)}/review-inputs"; mkdir -p "$INPUTS"
Both $CLAUDE_JOB_DIR and mktemp -d yield absolute paths; never use a relative one, as the Phase 1b subshell would resolve it into the worktree.
Read the trees without checking out. Do not run gh pr checkout. The user may be on a different branch deliberately, and switching branches risks losing work. Decide whether the current directory is a clone of the PR's repository (git remote get-url origin names <owner>/<repo>):
- With a clone:
git fetch origin refs/pull/<n>/headand verifytest "$(git rev-parse FETCH_HEAD)" = "$SHA"— the pull ref exists for every PR, forks included, and fetching executes nothing. Stop if the SHAs differ (the PR moved betweengh pr viewand the fetch; re-pin and fetch again). Thengit fetch origin <baseRefName>,MERGE_BASE=$(git merge-base origin/<baseRefName> "$SHA"), and take the full diff for the agents fromgit diff "$MERGE_BASE" "$SHA". Per-file fragments (Phase 6 step 1) come fromgit diff "$MERGE_BASE" "$SHA" -- <path>. Code context beyond the diff comes fromgit show "$SHA":<path>. - Without a clone:
gh api -R <owner>/<repo> --paginate repos/<owner>/<repo>/compare/<baseRefName>...$SHAgivesmerge_base_commit.shaasMERGE_BASEand onepatchper entry infiles[]. The API omits patches for binary files and lists at most 300 files; record any file without a patch as a missing fragment rather than fabricating one. Code context comes fromgh api -R <owner>/<repo> "repos/<owner>/<repo>/contents/<path>?ref=$SHA".
Keep the PR body, author, createdAt, and url from the gh pr view JSON — these flow into Phase 6's pr_description section so the reader can see the author's framing verbatim.
Show the user which PR you're about to summarise (number, title, author, head → base, commit count, pinned SHA, fork or not) before doing the heavier work — a cheap sanity check that catches the wrong PR number early.
Phase 1b: Collect test results
Test data comes from GitHub Actions artifacts for the pinned SHA first, and from a local run in a throwaway worktree only when CI has nothing and the trust conditions below hold. Record what happened in the tests block (Phase 6): provenance.ci_state and provenance.fallback_state are separate fields, so "fork PR with expired artifacts" is two facts.
CI artifacts
gh run list -R <owner>/<repo> --commit "$SHA" --json databaseId,status,conclusion,name,url
gh api -R <owner>/<repo> --paginate repos/<owner>/<repo>/actions/runs/<id>/artifacts # name, expired, size_in_bytes
gh api -R <owner>/<repo> --paginate repos/<owner>/<repo>/actions/runs/<id>/jobs # name, conclusion, html_url
gh run download <id> -R <owner>/<repo> -n <artifact> -D "$INPUTS/artifacts/<id>/<artifact>"
Record every job's name, outcome, and URL in tests.jobs. Download only artifacts with expired: false and size_in_bytes at most 100 MB; list larger ones by name and size in `tests.skipped_a
Установить pr-overview в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл pr-overview?
Pull a PR from GitHub, run parallel review agents (code reuse, quality, efficiency, spec adherence) in read-only mode, surface unresolved comments, and write a self-contained HTML overview page to the repo root. Use whenever the user wants a read-only summary of a PR before deciding what to do — phrases like "overview of PR X", "summarise this PR", "what's the state of PR X", "give me an HTML overview", or any time they want a browseable artifact without touching the code.
Как установить скилл pr-overview?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pr-overview запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic