[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6990B9KJ2B4RS82CV750TBS":3,"skill-same:01M6990B9KJ2B4RS82CV750TBS":168},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":56,"commitSha":57,"skillDirectory":58,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":61,"ownerHtmlUrl":62,"ownerBlogUrl":63,"ownerDescription":64,"updatedAt":65,"install":66,"resources":79},"01M6990B9KJ2B4RS82CV750TBS","github-pr-review","GitHub PR 代码审查","Review a GitHub pull request and leave inline comments in a natural human reviewing voice, indistinguishable from comments typed by hand on the GitHub web UI. Deliberately bounded to defects a reader can settle by looking at the anchored line, rather than a deep audit, so every comment is cheap for the author to check. Scales to 2-20 comments by PR size, parallelises analysis across sub-agents, drafts for approval, then posts individually with human pacing. Use when the user says \"review this PR\", \"review PR 123\", pastes a github.com\u002F...\u002Fpull\u002FN link, or asks for comments on a pull request. Don't use for reviewing local uncommitted changes or a diff against a branch (use the `review` skill for that).","审查 GitHub pull request，并以自然的人工审查语气留下行内评论，使人无法分辨其是否为在 GitHub 网页界面上手动输入的评论。刻意限定于读者通过查看锚定行即可判断的缺陷，而非深度审计，因此每条评论都便于作者核实。根据 PR 规模扩展到 2-20 条评论，跨子代理并行分析，起草供批准后，再以接近人工的节奏逐条发布。当用户说“审查这个 PR”、“审查 PR 123”、粘贴 github.com\u002F...\u002Fpull\u002FN 链接，或要求对 pull request 发表评论时使用。不用于审查本地未提交的改动或与某个分支的 diff（使用 `review` 技能）。","google\u002Fadk-recipes","google","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1342004?v=4","01M698VYEFDM0VJBZDYYJ2T83S","Google","01M6990124CWS5627VKGSKJXRD",10626,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-recipes\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgithub-pr-review\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"github","github pr review","pr review","pr","review","github pr","when","request","inline","at","hand","posts","line","deep","local","across","human","branch","analysis","audit","2026-11-10 10:12:30",false,"---\nname: github-pr-review\ndescription: Review a GitHub pull request and leave inline comments in a natural human reviewing voice, indistinguishable from comments typed by hand on the GitHub web UI. Deliberately bounded to defects a reader can settle by looking at the anchored line, rather than a deep audit, so every comment is cheap for the author to check. Scales to 2-20 comments by PR size, parallelises analysis across sub-agents, drafts for approval, then posts individually with human pacing. Use when the user says \"review this PR\", \"review PR 123\", pastes a github.com\u002F...\u002Fpull\u002FN link, or asks for comments on a pull request. Don't use for reviewing local uncommitted changes or a diff against a branch (use the `review` skill for that).\n---\n\n# GitHub PR review\n\nReviews a pull request on GitHub and posts inline comments that read as though a\nperson typed them by hand. The style is defined in `reference\u002Fvoice.md`; replace that\nfile to shift it.\n\n## Install\n\nDrop this folder anywhere your agent discovers skills — `~\u002F.agents\u002Fskills\u002F`,\n`~\u002F.config\u002Fcloudcode\u002Fskills\u002F`, or any absolute path registered under `skills.paths`\nin `~\u002F.config\u002Fcloudcode\u002Fcloudcode.json`.\n\n**Set `SKILL_DIR` before running any command below**, to wherever you put it. Every\nscript invocation in this file is relative to it:\n\n```bash\nSKILL_DIR=~\u002F.agents\u002Fskills\u002Fgithub-pr-review     # adjust to your install\n```\n\nRequires `gh` (authenticated) and `python3`. No other dependencies; `pyyaml` is used\nif present and degrades gracefully with a reported warning if not.\n\n\u003Cdetails>\u003Csummary>Living inside the google\u002Fadk-samples checkout\u003C\u002Fsummary>\n\nThis copy is tracked in `google\u002Fadk-samples` at `.agents\u002Fskills\u002Fgithub-pr-review\u002F`,\nwhich has two consequences worth knowing before you edit it.\n\n**Its tests run in that repo's CI.** The root `pyproject.toml` puts `.agents\u002Fskills`\nin `testpaths`, and `tools-tests.yml` fires on any `.agents\u002F**` change, so\n`tests\u002F` here is collected by `uv run pytest` alongside the repo's own tooling\nsuite. A broken test in this skill turns a PR red. Run it before pushing.\n\n`python-format.yml` scopes ruff to `core\u002F`, `contrib\u002F` and `plugins\u002F`, so nothing\nhere is linted — the skill's own style is its own business.\n\n**It is deliberately absent from `docs\u002Frecipe-handbook\u002Fskills-catalog.md`.** That\ncatalog is for skills a recipe contributor should reach for; this one is a\nmaintainer's reviewing tool, and advertising it invites PR authors to run a\nreviewer against their own PR. Keep it out when you edit the catalog.\n\n\u003C\u002Fdetails>\n\nFive things make this work, and all five are easy to get wrong:\n\n1. **A comment must point at a fact, not ask the author to derive one.** This is\n   the strongest predictor of what gets posted: on PR #2373 it separated all 16\n   accepted comments from all 4 rejected ones. What a comment costs the author to\n   check follows from it — cheap and wrong loses five seconds, expensive and wrong\n   burns twenty minutes and spends credibility that took months to earn. Findings\n   that fail this are dropped, not downgraded. See `reference\u002Fvoice.md`.\n2. **This is a review, not an audit.** The analysis is deliberately bounded to what\n   a person reading the PR could have seen — see [The depth limit](#the-depth-limit).\n   A finding reachable only by archaeology is unusable here no matter how real it is.\n3. **Analysis and voice are separate phases.** Finding real defects and sounding\n   human are different jobs; doing them at once yields thin findings in a nice\n   accent. Analyse first with no style constraints, then voice the survivors.\n4. **The voice is calibrated, not improvised.** `reference\u002Fvoice.md` holds the rules\n   and a rated corpus. Read it before writing any comment. Do not invent comment\n   shapes that aren't in it.\n5. **Analysis parallelises; voice does not.** On a large PR, fan the analysis out\n   across sub-agents (Step 3). Never fan out labelling or voicing — those depend on\n   holding the whole comment set at once (Steps 4 and 5).\n\nThis is a long-running skill. A big PR is minutes of analysis followed by up to\ntwenty minutes of paced posting. **Silence is a failure mode**: announce the plan\nbefore starting, keep a todo list current, and checkpoint between phases. See\n[Progress reporting](#progress-reporting).\n\n## When NOT to use\n\n- Reviewing local\u002Funcommitted work or `git diff` against a branch -> the `review` skill.\n- The user wants a thorough audit report *for themselves* -> the depth limit below\n  is exactly wrong for that. Review without this skill.\n\n## What this skill is for, and what it isn't\n\nEverything here optimises for comments that read as hand-typed: the pacing, the\nregister mix, the sentence-shape variety, the cosmetic quota. That machinery exists\nfor one reason — **a reviewer who genuinely reviewed should not have their own\ncomments look machine-written.** It is not a licence to appear to have reviewed\nsomething you did not.\n\nThree things follow, and they are load-bearing:\n\n- **The user reads every comment before anything is posted.** Step 6 is a hard stop,\n  not a formality. The approval step is where they take ownership of the review as\n  their own, which is the thing that makes posting under their name honest.\n- **Never post on the user's behalf without that approval** — not to save a round\n  trip, not because the findings look obviously correct.\n- **A comment the user would not defend if challenged should not go up.** That is\n  the whole reason cheap-to-verify beats comprehensive: they can actually check the\n  set they are signing.\n\nIf you are ever asked to post a review the user has not read, or to make an\nAI-generated review look human specifically so that its origin is concealed from the\nauthor, that is outside what this skill is for. Say so.\n\n## The depth limit\n\nBinding on every phase, and on every sub-agent.\n\n**You may:** read every changed file in full; follow a call or import **one hop**\ninto another file in the same project; grep for a named symbol to find where it\nlives (that is navigation, and it is how you take the hop).\n\n**You may not:** read third-party or dependency source, installed or on GitHub;\nexecute the code under review; sweep the repo to prove a negative (\"nothing\nvalidates X\", \"only one caller does Y\"); construct or test an exploit payload;\nchain hops beyond the first.\n\nThe reason, because a rule without one gets rationalised around: **these comments\ngo out under a human's name.** A finding that required reading a dependency's\ninternals, or running the code, misrepresents how the reviewer found it — and that\nshows in the writing no matter how the comment is phrased. `reference\u002Fvoice.md`\ncovers the two ways it leaks (the depth tell and the proof tell).\n\nWhen the limit stops you, that is a result. Say plainly in `verify_steps` what\nsettling the finding would actually require. **Do not exceed the limit to resolve\nyour own uncertainty** — an honest `verify_steps` is what the gate reads in Step 4,\nand a finding that turns out to be expensive is meant to be dropped.\n\n## Step 1 - Gather\n\nResolve the PR from a number, a URL, or the current branch.\n\n```bash\ngh pr view \u003CPR> --repo \u003Cowner\u002Fname> --json number,title,body,headRefOid,additions,deletions,changedFiles,state\n\npython3 \"$SKILL_DIR\u002Fscripts\u002Fexisting_comments.py\" \\\n  --repo \u003Cowner\u002Fname> --pr \u003CPR> --out \u002Ftmp\u002Fpr-\u003CPR>-existing.json\n```\n\nDon't fetch the file list here — `plan_review.py` does it in Step 2, with paging.\n\n**Do not run `gh pr diff` on a large PR.** Above roughly 5,000 changed lines it is\nuseless as context and expensive to carry — #2302's was 122,000 lines. Work from the\nchecked-out tree instead; for an all-additions PR the file content *is* the diff.\nBelow that threshold it's fine and often the quickest way to see the shape.\n\n**Read the existing comments, and keep that file** — Step 4 feeds it to the verifier,\nwhich drops anything already raised. This is what makes a PR re-reviewable: run it\nagain after your own pass, or after a bot or a colleague, and you get only new\nmaterial.\n\nSuppression rules, applied automatically:\n\n- same line, or **within 2 lines** → dropped\n- similar wording to any existing comment, including top-level ones with no line → dropped\n- **resolved** threads still block — already discussed\n- **outdated** threads do not block the line (the code moved, so it deserves a fresh\n  look) but their text still counts\n- **bots block exactly like humans**\n- **comments the user cut on a previous review** are blocked too, from the ledger\n  written at Step 6. A rejection never expires as outdated — a decision the user made\n  does not lapse because the code moved.\n\nAlso paste the existing comments into each lane prompt. The verifier is the backstop;\na worker that never generates the duplicate is cheaper than one that gets filtered.\n\nThen get the PR head into a local tree, and note its absolute path:\n\n```bash\ngh repo clone \u003Cowner\u002Fname> \u002Ftmp\u002Fpr-\u003CPR> -- --depth 1 --no-tags && \\\n  cd \u002Ftmp\u002Fpr-\u003CPR> && git fetch --depth 1 origin pull\u002F\u003CPR>\u002Fhead && git checkout FETCH_HEAD\n# or, against a clone you already have:\ngit -C \u003Clocal-clone> fetch origin pull\u002F\u003CPR>\u002Fhead && git -C \u003Clocal-clone> checkout FETCH_HEAD\n```\n\nDo this **once, here**. Analysis workers read this tree concurrently and must never\nmutate it — five sub-agents each running `gh pr checkout` in the same directory is a\nrace that leaves the tree on an arbitrary ref mid-review.\n\n## Step 2 - Plan, ask, announce\n\n```bash\npython3 \"$SKILL_DIR\u002Fscripts\u002Fplan_review.py\" \\\n  --repo \u003Cowner\u002Fname> --pr \u003CPR> --json\n```\n\nThe plan gives you, deterministically: which files to skip and why, the comment\nbudget, whether to fan out, the lane assignments, and the post-run ETA.\n\nIt skips lockfiles, generated and vendored code, `dist\u002F`, snapshots, binaries, large\ndata fixtures, deleted files, and **pure renames** — a file moved with zero content\nchange has nothing to review, which on a migration PR is most of the diff (65 of 123\nfiles on #2373).\n\nLanes are packed so a **source file and its tests land together** (`tools\u002Fx.py` with\n`tools\u002Ftests\u002Ftest_x.py`), because a reviewer holding only one of the pair cannot tell\nwhether the test still covers the code. Lane sizes stay balanced regardless.\n\n### Ask before analysing — scope\n\nAsk here rather than at the start, because the answer depends on the PR's size and\nshape, which you only know now:\n\n```\nPR #2302 \"add the Horizon long-horizon agent recipe\"\n787 files, 122,547 lines, all additions. Skipping 16 (lockfiles, binaries).\nBudget: 12-20 comments.\n\n  Include tests\u002F (316 files) and web\u002F (238)?   [yes \u002F no]\n```\n\nArgue for including `tests\u002F`: test files are the richest source of instantly-checkable\ndefects — a duplicated assertion, a test named for one thing that exercises another —\nand they are usually the least-reviewed part of a PR.\n\n**Act on the answer — re-run the planner with the flags.** The default includes\neverything; the question is worthless if you don't pass it through:\n\n```bash\npython3 \"$SKILL_DIR\u002Fscripts\u002Fplan_review.py\" \\\n  --repo \u003Cowner\u002Fname> --pr \u003CPR> --json [--no-tests] [--no-web]\n```\n\nUse the re-planned lane assignments, not the first run's.\n\n**House rules — `google\u002Fadk-samples` only.** If the PR is in that repo and touches\n`core\u002F`, `contrib\u002F` or `plugins\u002F`, `.github\u002Freview-rules.md` is in force. Say so in\nthe checkpoint. For every other repo, ignore it — the rules are repo-specific and\napplying them elsewhere produces confident nonsense.\n\n\nThen:\n\n1. **Seed the todo list** — one item per phase, one per lane (see\n   [Progress reporting](#progress-reporting)).\n2. **Print the checkpoint**, so the user knows the shape of the work and that\n   nothing will be posted without them:\n\n```\nTests included. 771 files across 10 lanes + consistency lane.\nAnalysis takes a few minutes. Nothing gets posted without your approval.\n```\n\nThe budget comes from **reviewable** churn, not total — a PR that is 1,400 lines of\nregenerated lockfile plus 80 lines of hand-written code earns a small-PR budget.\n\n| Reviewable lines | Comments |\n|---|---|\n| \u003C 50 | 2–3 |\n| 50–200 | 3–5 |\n| 200–600 | 5–8 |\n| 600–1500 | 8–12 |\n| > 1500 | 12–20 |\n\nHard cap **20**, whatever the size.\n\n## Step 3 - Analysis phase (no voice constraints)\n\nHunt for defects and write them down verbosely and technically. This output is\ninternal — never shown to the user, never posted.\n\n**Work inside [the depth limit](#the-depth-limit)**, and within it read the **full\nchanged files, not just the diff** — a broken invariant or an error path that no\nlonger returns is invisible in a diff window. Where the diff touches a function, read\nthe whole function; where it calls a helper you cannot judge blind, spend the hop.\n\n**Use the `What to hunt` block from `reference\u002Flane-prompt.md` verbatim.** It is one\nlist, and the filter at the top of it is the load-bearing part: a finding must point\nat something observable at the line. If seeing that it is a defect requires the\nreader to do arithmetic, infer a pattern, or reason about consequences, it is out of\nscope *however serious it looks*.\n\n**Group at 3+.** The same defect class in three or more places is ONE finding, on the\nclearest instance, with the count in `evidence`. Five \"unused import\" findings is one\ncomment; the other four slots buy distinct defects. Two instances stay two.\n\n**The grouped comment's claim is about the anchored instance**; the count is context,\nnever something the reader must open files to confirm. `a few unused imports in here`\nis checkable at the anchor; `unused imports here, also in X and Y` is not. Group only\ninstances that are individually real — sweeping a deliberate `__init__.py` re-export\ninto an \"unused imports\" group makes the whole comment wrong.\n\n**In `google\u002Fadk-samples`, run the house-rules checker:**\n\n```bash\npython3 \"$SKILL_DIR\u002Fscripts\u002Fcheck_house_rules.py\" \\\n  --repo-root \u003Crepo_path> --recipe \u003Crecipe> --json\n```\n\n24 of the 27 rules are decided deterministically there — take its findings\nverbatim. Two of them, H26 (env-read defaults, AST-based) and H27 (licence header\nconsistency), report one grouped finding with a count rather than one per hit.\nDispatch the house-rules lane (Template C) for the remaining three (H11, H16,\nH25), which need a judgement call. One — **H48**, a junk `ownership.team` — is\nreported whether or not the PR touched `manifest.yaml`, and is never trimmed;\nsee [Must-post findings](#must-post-findings).\n\nPrefer the script over a lane wherever a rule is decidable — a script cannot\nhallucinate a violation, and a false *\"this will fail CI\"* is the most expensive\ncomment this skill can produce.\n\nThe lane is defined by *file identity*, not churn: it receives the recipe's config\nsurface (`pyproject.toml`, `manifest.yaml`, `README.md`, `.env.example`, the package\n`__init__.py`, `Makefile`, `Dockerfile`) and reads them **in full even when they are\npure renames or wholly outside the diff** — see `reference\u002Frationale.md`.\n\nWorkers assign **one** label:\n\n- `severity`: **critical** (security hole, data loss, corruption, auth bypass,\n  injection, a crash on a reachable path) or **no_critical** (everything else worth\n  saying). It orders the output; it never changes how a comment is worded.\n\nEvery finding also carries `verify_steps` (the literal procedure the author follows\nto settle it) and `window` (the real source lines at the anchor). **`verify_steps` is\nthe gate** — `verify_findings.py` computes cheapness from it in Step 4, so a worker\nthat writes it honestly is doing the right thing even when the finding then gets\ndropped. `window` is what gets shown to the user beside the comment.\n\nPure style, naming and formatting are not findings at any severity — discard them.\n\n**A finding claiming something is absent must say where you looked**, or where it\ndoes appear. That is the one claim the anchored line cannot support, and it is the\ndefect that produced the single wrong comment this skill has posted.\n\n### 3a - Small PR (`fan_out: false`)\n\nDo it inline, yourself. Below ~400 reviewable lines and ~8 files, spawning workers\ncosts more than it saves.\n\n### 3b - Large PR (`fan_out: true`)\n\nOne `batch_task` call. Lanes are the file shards from the plan:\n\n```\nbatch_task({\n  description: \"PR 2302 analysis\",\n  concurrency: 10,\n  verify: false,\n  subtasks: [ ...one per file lane..., consistency lane ]\n})\n```\n\nBuild each prompt from `reference\u002Flane-prompt.md` — Template A for file lanes,\nTemplate B for the consistency lane. `subagent_type: general` for all of them.\n\nFill in **every** placeholder: workers share no context with you or each other, so\n`\u003CPR>`, `\u003Cowner\u002Fname>`, `\u003Crepo_path>` (the tree from Step 1), the lane's file list,\nand the existing-comment list all have to be spelled out in each prompt.\n\n**The consistency lane is not optional.** It gets no file shard. It exists for the\none class a per-file split structurally cannot see: the same element differing\nbetween files — three licence headers, two docstring styles, a constant written with\ndifferent values in two places. Shard workers cannot see these; one worker comparing\nacross files can.\n\nIt is bounded to **structural comparison**, never semantic tracing. Comparing four\nlicence headers is a glance; following a value between modules is not, and that is\nwhat the previous version of this lane spent its time on, producing findings that\nwere all discarded.\n\n`verify: false` on purpose — the batch verifier would re-audit findings you are about\nto re-rank yourself in Step 4, adding a full agent pass of latency to the one phase\nthis whole mechanism exists to make faster.\n\n**Merging the findings.** Read each lane's `findings.json`. Then:\n\n- Dedupe. Two lanes reaching the same defect from different directions is common;\n  it is one comment.\n- On any conflict about a cross-file inconsistency, the consistency lane wins — it\n  saw every side.\n- **Spot-check `severity`, don't re-derive it.** Sanity-check that each `critical`\n  really is one. Re-reading the cited code is inside the limit; going further to\n  rescue a finding the gate will drop is not.\n- A lane that failed is not a blocker: note it, and either re-run that one lane with\n  `task` or cover its files yourself.\n\nThen checkpoint (see [Progress reporting](#progress-reporting)).\n\n## Step 4 - Gate or tag, then group\n\n**No budget cut happens here.**\n\n### First, run the verifier — this is not optional\n\n```bash\npython3 \"$SKILL_DIR\u002Fscripts\u002Fverify_findings.py\" \\\n  --findings \u002Ftmp\u002Fpr-\u003CN>-raw.json --repo-root \u003Crepo_path> \\\n  --repo \u003Cowner\u002Fname> --pr \u003CN> --head-sha \u003CheadRefOid from Step 1> \\\n  --existing \u002Ftmp\u002Fpr-\u003CN>-existing.json \\\n  --out \u002Ftmp\u002Fpr-\u003CN>-verified.json\n```\n\nIt does five things that were previously prose, done by hand, and sometimes skipped:\n\n1. **Window vs file.** Each finding's quoted source is diffed against the real file.\n   A mismatch means the lane fabricated it — **rejected**, not downgraded.\n2. **Addressability.** Marks `anchorable: false` for any line outside every diff hunk.\n3. **Cheap gate.** Computes cheapness from `verify_steps`; a procedure that names a\n   second file or says *trace* \u002F *assuming* is not cheaply verifiable.\n4. **Duplicate suppression.** Drops anything already raised on the PR (see Step 1)\n   **and anything the user cut on a previous review** — the rejection ledger loads\n   automatically from `--repo`\u002F`--pr`. `--no-ledger` disables it.\n5. **Already-red suppression.** With `--head-sha`, drops a **CI-FAIL** finding whose\n   enforcing workflow is already failing on that commit, matched from the workflow\n   file the finding cites in `evidence`. The author is looking at that red check\n   already, and its message is more precise than ours. Advisory findings are never\n   suppressed this way — nothing is failing for them, so the comment is the only way\n   the author hears it. An unreadable status suppresses nothing. `--no-ci-status`\n   disables it.\n\nIt also emits a fact-anchoring lint and a clustering hint for grouping. Both are\nadvisory; read them, don't obey them blindly.\n\nTake its output as the input to everything below. Findings it rejected do not come\nback — a fabricated window is not a labelling problem.\n\n**Un-anchorable findings are set aside, not discarded.** A finding outside every hunk\ncannot be an inline comment, but it can still be true and important — the three hard\nCI failures on PR #2373 were all un-anchorable. They stay in the `unanchorable`\nbucket, carried to Step 6 and offered as **one** top-level issue comment. Never\nsilently drop them, and never anchor them to an unrelated nearby line to force them\nthrough: a comment about `requires-python` pinned to a dependency line twenty rows\naway is worse than no comment.\n\n**The gate drops every `not_cheap` finding.** Report a bare count at the checkpoint\n(`23 findings dropped as not cheaply verifiable`) — not a list. Handing over the list\nwould pull the user into evaluating exactly the material the gate exists to spare\nthem.\n\n**Then apply the fact-anchoring filter yourself**, on the survivors. `verify_steps`\ncatches findings that are expensive to check; it does not catch findings that are\ncheap to check but ask the reader to *derive* the defect. Delete the question from\nthe comment: if what remains is not a statement of something visible at the line,\ndrop it. This is the filter that separated all 16 accepted comments on #2373 from all\n4 rejected ones — see the rated outcomes in `reference\u002Fvoice.md`.\n\n**Cheapness is a property of the final comment text**, not the raw finding.\n`` `ty` is on 3.10 while `requires-python` says 3.11 `` is cheap because it names\nboth sides; *\"this contradicts the setting above\"* is the same defect and expensive.\nRe-check at the end of Step 5 once the wording exists.\n\nSurvivors are ordered `critical` first. There is no other label — `confidence` was\nremoved because after the verifier runs, everything surviving is high-confidence by\nconstruction, so the column never discriminated.\n\nSeverity orders the output and nothing else. It never changes how a comment is\nworded (`reference\u002Fvoice.md`).\n\nRules that still apply at this stage:\n\n- **If there are not enough real issues, produce fewer.** Padding produces exactly\n  the vacuous filler that reads as machine-generated. If a PR is genuinely clean,\n  say so and post nothing.\n- **≤ 2** cosmetic comments (stale years, a constant that disagrees, a naming\n  inconsistency) — all `no_critical` by definition.\n- **1–2** positive remarks when genuinely warranted, **suppressed entirely if\n  anything `critical` was found**. Nobody compliments the styling on a PR with a\n  security hole.\n\n## Step 5 - Voice phase\n\n> **Never delegate this step.** Not to a sub-agent, not split across two passes.\n> Everything below is a property of the comment set *as a whole* — the register mix,\n> the clustering, the sentence-shape variety, the cosmetic quota. An agent holding\n> one shard cannot honour any of them, and the failure is invisible per-comment and\n> glaring in aggregate.\n\nRead `reference\u002Fvoice.md` now. Summary of the binding rules:\n\n- Every full-sentence comment **ends in a question mark**. Declarative multi-clause\n  statements are banned.\n- Or use a lowercase fragment of 2–6 words with no terminal period.\n- **Tone never escalates with severity.** Command injection is raised as politely as\n  a missing try\u002Fcatch.\n- One thought per comment. No causal chains, no prescriptions stacked on diagnoses,\n  no line numbers in prose.\n- Banned: bold labels, severity prefixes, emoji, headers, bullets, `suggestion`\n  blocks, \"Consider …\", \"It would be better to …\".\n- Backticks on identifiers and paths.\n- **No crafted payloads, and no claim resting on code you didn't read** — the proof\n  tell and the depth tell. Write the comment you would have written *before* doing\n  the work, not after.\n- **Name the referent, and carry the verification path.** A comment must say what it\n  points at, and if it depends on anything off the anchored line it must name that\n  and say where. `old version still holds the value` is unusable; `Does the previous\n  version get destroyed anywhere?` is not.\n\nAim for ~60% Register A \u002F 40% Register B.\n\nFindings arrive from workers as blunt technical prose (`user-controlled filename is\ninterpolated into os.system()`). That is raw material, not a draft. Rewrite every\none from scratch against the corpus.\n\n**Severity must not leak into the wording.** A `critical` comment is not sharpened\nand a `no_critical` one is not softened. The user reads the ordering; the PR author\nreads only the comment, and it has to look the same either way.\n\n### Distribution matters as much as wording\n\n- **Cluster on the substantive files.** Uniform coverage — one comment per file,\n  evenly spread — is a machine signature. Real reviewers dwell where the risk is and\n  skim the rest. Fanning out by file makes this *worse* by default, since every lane\n  returns findings: when you select, deliberately let some lanes contribute nothing.\n- Do not let two comments share a sentence shape. Three comments opening with\n  `It seems` is a tell.\n- Vary length. A review where every comment is one line, or every comment is two\n  sentences, looks generated.\n- Cross-reference in Register B when the same issue recurs (`same issue as above`)\n  rather than restating it.\n\n**Before leaving this step**, re-check the `cheap` label against the wording you\nactually wrote (Step 4), and run the cold-read test from `reference\u002Fvoice.md` on\nevery comment: anchored line ±10 plus the comment text, nothing else — can you tell\nwhat it refers to and how you'd check it? If not, rewrite or drop it.\n\n## Step 6 - Present, take a decision\n\nGenerate the report, print the summary, then **stop and wait.**\n\nThe report goes to `~\u002FDocuments\u002Fagents\u002Fpr-reviews\u002F`. Don't ask — that folder is the\ndestination unless the user names another path in the same breath.\n\n```bash\npython3 \"$SKILL_DIR\u002Fscripts\u002Fbuild_report.py\" \\\n  --candidates \u002Ftmp\u002Fpr-\u003CN>-candidates.json --repo \u003Cowner\u002Fname> --pr \u003CN> \\\n  --out-md ~\u002FDocuments\u002Fagents\u002Fpr-reviews\u002Fpr-\u003CN>-review.md\n```\n\nThat writes one markdown report — **summary table first, detail sections below** —\ncarrying the code window beside every comment, which is the whole point: the user\nmust be able to run the check without opening a file.\n\n`--out-csv` still exists for spreadsheet triage but is off by default; the CSV held\nthe same rows as the markdown tables, so writing both left two copies of one report\non disk.\n\n### Present the set\n\nOne table, ordered `critical` first, then by path. Every row carries the source line\nit is anchored to, so the user can settle it without opening a file.\n\n```\n16 comments ready (2 critical), ~14 min to post.\n3 more findings are un-anchorable — see below.\n47 findings dropped as not cheaply verifiable.\n\nReport: ~\u002FDocuments\u002Fagents\u002Fpr-reviews\u002Fpr-2373-review.md\n```\n\n**Recommend, don't decide.**\n\n- Don't propose \"criticals only\" by reflex. A review that is entirely critical\n  security findings is itself implausible; real ones mix a sandbox escape with a\n  stale Python version.\n- Point out anything you are unsure of rather than burying it. The user cutting a\n  comment costs nothing; a bad comment posted costs their credibility.\n\n**Then apply the size budget from Step 2.** If the set exceeds the cap, trim and say\nexactly what was dropped. Never trim silently.\n\n#### Must-post findings\n\n**H48** — an `ownership.team` naming a company, a filler word, or the author's own\nGitHub handle — is exempt from the budget and from the \"is it worth a slot?\" cut.\nIt survives trimming even on a PR already at its cap.\n\nIt is the only field in the repo where a wrong value passes every deterministic\ncheck: the schema asks for a non-empty string and stops there. Nothing downstream\nnotices, and the recipe ships with no reachable owner. So the comment goes out\nevery time the checker fires, and when `manifest.yaml` is outside the diff hunks\nit goes in the un-anchorable top-level comment rather than being dropped.\n\nAsk who maintains the recipe. Never propose a team name — the same reason as H17.\n\nNever post without explicit approval, and let the user cut or reword anything. A\nwrong comment posted in their name costs their credibility with the PR author, so\nthis step is where they take ownership of the review as their own.\n\n**Record what they cut**, right after they choose and before posting:\n\n```bash\npython3 \"$SKILL_DIR\u002Fscripts\u002Frejections.py\" --record \\\n  --repo \u003Cowner\u002Fname> --pr \u003CPR> \\\n  --candidates \u002Ftmp\u002Fpr-\u003CPR>-candidates.json \\\n  --approved \u002Ftmp\u002Fpr-\u003CPR>-comments.json\n```\n\n`--candidates` is everything drafted, `--approved` is what they said yes to; the\ndifference is the rejection. **Pass the matching pair from this run** — mismatched\nfiles record the wrong set and poison the ledger.\n\nStep 1's suppression only sees comments that were *posted*. One the user read and cut\nleft no trace on GitHub, so without this it returns on the next review and has to be\nrejected again — which happened three times on the #2373 re-review. The verifier\nloads the ledger automatically; nobody has to remember to pass it.\n\n### Un-anchorable findings\n\nIf the `unanchorable` bucket is non-empty, present it as its own short table and\noffer **one** top-level issue comment covering all of them:\n\n```\nUn-anchorable (3) — real, but the lines aren't in any diff hunk:\n  pyproject.toml:69   [tool.ruff] tables        CI-FAIL\n  pyproject.toml:38   requires-python >=3.10    CI-FAIL\n  pyproject.toml:2    name != folder basename   CI-FAIL\n\nOffer as one top-level comment?\n```\n\nThis is the one permitted exception to \"no summary comment\" (Step 7). Keep it to a\nbulleted list of the findings, with no preamble about the review as a whole and no\nrestatement of the inline comments.\n\nOrder them **CI-failures first** — an author will act on \"this blocks the build\"\nand may not act on a convention nit. Mark advisory items as such, and never claim\nCI will fail when `.github\u002Freview-rules.md` says the check is a `::notice`.\n\n## Step 7 - Post\n\nWrite the approved set to JSON and dry-run it first — blocking, it's fast, and it is\nthe gate:\n\n```bash\npython3 \"$SKILL_DIR\u002Fscripts\u002Fpost_comments.py\" \\\n  --repo \u003Cowner\u002Fname> --pr \u003CPR> --file \u002Ftmp\u002Fpr-comments.json --dry-run\n```\n\nIt validates every line against the diff hunks and fails loudly if a line isn't\naddressable. Then run the real thing **as a background job** and hand control back:\n\n```bash\npython3 \"$SKILL_DIR\u002Fscripts\u002Fpost_comments.py\" \\\n  --repo \u003Cowner\u002Fname> --pr \u003CPR> --file \u002Ftmp\u002Fpr-comments.json\n```\n\n```\nPosting 9 comments, ~8 min. Running in the background - you'll be notified when\nit's done, so carry on with whatever you like.\n```\n\nDo not sleep-and-poll it. You get a completion notification; `tail` the job only if\nthe user asks how far along it is.\n\nThe script posts each comment individually, in file order, sleeping a random 10–20s\nbetween them. **Do not shorten the gaps** — the pacing is the point\n(`reference\u002Frationale.md`). If it fails partway, the `.posted` state file records\nwhat landed; re-run the identical command to resume.\n\n**A pending review blocks everything** — GitHub allows one per user and this endpoint\nimplicitly opens one, so every comment 422s. The script preflights and stops with\ninstructions. Do **not** submit or discard their pending review for them: submitting\nposts publicly under their name and may carry a verdict; discarding destroys drafts\nthey wrote. Surface it and let them choose.\n\n**No verdict and no summary comment.** Do not approve, do not request changes, do not\nleave a top-level recap. The user handles the verdict themselves.\n\nThe single exception is the un-anchorable list from Step 6, when the user approves\nit — a bulleted list of findings whose lines are in no diff hunk. Not a recap: it\nsays nothing about the review as a whole and repeats no inline comment.\n\ncomments.json format:\n\n```json\n[\n  {\"path\": \"src\u002Fapi.py\", \"line\": 42, \"body\": \"missing await here\"},\n  {\"path\": \"src\u002Fapi.py\", \"line\": 88, \"body\": \"Can we use `subprocess.run()` with a list here?\"}\n]\n```\n\n`line` must be a line present in the diff. Add `\"side\": \"LEFT\"` to comment on a\ndeleted line.\n\n## Progress reporting\n\nThe user cannot see analysis happening. On a large PR the gap between \"review this\"\nand the draft is minutes, and the post run is minutes more. Fill it.\n\n**Todo list**, seeded in Step 2 and kept current — this is the live progress bar:\n\n```\n- Gather PR + existing comments\n- Plan lanes and budget\n- Lane 1 analysis (4 files, 320 lines)\n- Lane 2 analysis (6 files, 295 lines)\n- ...\n- Consistency lane\n- Merge, dedupe and label findings\n- Draft comments in voice\n- Present table and await approval\n- Post (background)\n```\n\nMark each done as it lands, not in batches. On a small PR collapse the lane items\ninto a single \"Analyse changed files\".\n\n**Checkpoints.** Four short messages, no more. Prose, not tables.\n\n1. *After the plan* (Step 2) — the mode\u002Fscope question, then size, skips, budget,\n   lane count, and the promise that nothing posts without approval.\n2. *After analysis* (Step 3\u002F4) — the funnel, so the shape of the cut is visible:\n   ```\n   Analysis done. 74 findings across 12 lanes. 3 rejected by the verifier,\n   25 un-anchorable, 26 dropped as not cheaply verifiable or style.\n   20 candidates, drafting now.\n   ```\n3. *At the decision* (Step 6) — the table, the un-anchorable list, the report path,\n   the ETA.\n4. *At posting* (Step 7) — backgrounded, ETA, notification promise.\n\n`batch_task` does not stream partial results, so nothing arrives between checkpoints\n1 and 2. That makes checkpoint 1 load-bearing: it must state that analysis takes a\nfew minutes, or the silence reads as a hang.\n\nIf anything degrades — a lane fails, the diff is unfetchable, the PR is closed, every\nfile is skipped — say so immediately rather than quietly working around it.\n","# GitHub PR review\n\nReviews a pull request on GitHub and posts inline comments that read as though a\nperson typed them by hand. The style is defined in `reference\u002Fvoice.md`; replace that\nfile to shift it.\n\n## Install\n\nDrop this folder anywhere your agent discovers skills — `~\u002F.agents\u002Fskills\u002F`,\n`~\u002F.config\u002Fcloudcode\u002Fskills\u002F`, or any absolute path registered under `skills.paths`\nin `~\u002F.config\u002Fcloudcode\u002Fcloudcode.json`.\n\n**Set `SKILL_DIR` before running any command below**, to wherever you put it. Every\nscript invocation in this file is relative to it:\n\n```bash\nSKILL_DIR=~\u002F.agents\u002Fskills\u002Fgithub-pr-review     # adjust to your install\n```\n\nRequires `gh` (authenticated) and `python3`. No other dependencies; `pyyaml` is used\nif present and degrades gracefully with a reported warning if not.\n\n\u003Cdetails>\u003Csummary>Living inside the google\u002Fadk-samples checkout\u003C\u002Fsummary>\n\nThis copy is tracked in `google\u002Fadk-samples` at `.agents\u002Fskills\u002Fgithub-pr-review\u002F`,\nwhich has two consequences worth knowing before you edit it.\n\n**Its tests run in that repo's CI.** The root `pyproject.toml` puts `.agents\u002Fskills`\nin `testpaths`, and `tools-tests.yml` fires on any `.agents\u002F**` change, so\n`tests\u002F` here is collected by `uv run pytest` alongside the repo's own tooling\nsuite. A broken test in this skill turns a PR red. Run it before pushing.\n\n`python-format.yml` scopes ruff to `core\u002F`, `contrib\u002F` and `plugins\u002F`, so nothing\nhere is linted — the skill's own style is its own business.\n\n**It is deliberately absent from `docs\u002Frecipe-handbook\u002Fskills-catalog.md`.** That\ncatalog is for skills a recipe contributor should reach for; this one is a\nmaintainer's reviewing tool, and advertising it invites PR authors to run a\nreviewer against their own PR. Keep it out when you edit the catalog.\n\n\u003C\u002Fdetails>\n\nFive things make this work, and all five are easy to get wrong:\n\n1. **A comment must point at a fact, not ask the author to derive one.** This is\n   the strongest predictor of what gets posted: on PR #2373 it separated all 16\n   accepted comments from all 4 rejected ones. What a comment costs the author to\n   check follows from it — cheap and wrong loses five seconds, expensive and wrong\n   burns twenty minutes and spends credibility that took months to earn. Findings\n   that fail this are dropped, not downgraded. See `reference\u002Fvoice.md`.\n2. **This is a review, not an audit.** The analysis is deliberately bounded to what\n   a person reading the PR could have seen — see [The depth limit](#the-depth-limit).\n   A finding reachable only by archaeology is unusable here no matter how real it is.\n3. **Analysis and voice are separate phases.** Finding real defects and sounding\n   human are different jobs; doing them at once yields thin findings in a nice\n   accent. Analyse first with no style constraints, then voice the survivors.\n4. **The voice is calibrated, not improvised.** `reference\u002Fvoice.md` holds the rules\n   and a rated corpus. Read it before writing any comment. Do not invent comment\n   shapes that aren't in it.\n5. **Analysis parallelises; voice does not.** On a large PR, fan the analysis out\n   across sub-agents (Step 3). Never fan out labelling or voicing — those depend on\n   holding the whole comment set at once (Steps 4 and 5).\n\nThis is a long-running skill. A big PR is minutes of analysis followed by up to\ntwenty minutes of paced posting. **Silence is a failure mode**: announce the plan\nbefore starting, keep a todo list current, and checkpoint between phases. See\n[Progress reporting](#progress-reporting).\n\n## When NOT to use\n\n- Reviewing local\u002Funcommitted work or `git diff` against a branch -> the `review` skill.\n- The user wants a thorough audit report *for themselves* -> the depth limit below\n  is exactly wrong for that. Review without this skill.\n\n## What this skill is for, and what it isn't\n\nEverything here optimises for comments that read as hand-typed: the pacing, the\nregister mix, the sentence-shape variety, the cosmetic quota. That machinery exists\nfor one reason — **a reviewer who genuinely reviewed should not have their own\ncomments look machine-written.** It is not a licence to appear to have reviewed\nsomething you did not.\n\nThree things follow, and they are load-bearing:\n\n- **The user reads every comment before anything is posted.** Step 6 is a hard stop,\n  not a formality. The approval step is where they take ownership of the review as\n  their own, which is the thing that makes posting under their name honest.\n- **Never post on the user's behalf without that approval** — not to save a round\n  trip, not because the findings look obviously correct.\n- **A comment the user would not defend if challenged should not go up.** That is\n  the whole reason cheap-to-verify beats comprehensive: they can actually check the\n  set they are signing.\n\nIf you are ever asked to post a review the user has not read, or to make an\nAI-generated review look human specifically so that its origin is concealed from the\nauthor, that is outside what this skill is for. Say so.\n\n## The depth limit\n\nBinding on every phase, and on every sub-agent.\n\n**You may:** read every changed file in full; follow a call or import **one hop**\ninto another file in the same project; grep for a named symbol to find where it\nlives (that is navigation, and it is how you take the hop).\n\n**You may not:** read third-party or dependency source, installed or on GitHub;\nexecute the code under review; sweep the repo to prove a negative (\"nothing\nvalidates X\", \"only one caller does Y\"); construct or test an exploit payload;\nchain hops beyond the first.\n\nThe reason, because a rule without one gets rationalised around: **these comments\ngo out under a human's name.** A finding that required reading a dependency's\ninternals, or running the code, misrepresents how the reviewer found it — and that\nshows in the writing no matter how the comment is phrased. `reference\u002Fvoice.md`\ncovers the two ways it leaks (the depth tell and the proof tell).\n\nWhen the limit stops you, that is a result. Say plainly in `verify_steps` what\nsettling the finding would actually require. **Do not exceed the limit to resolve\nyour own uncertainty** — an honest `verify_steps` is what the gate reads in Step 4,\nand a finding that turns out to be expensive is meant to be dropped.\n\n## Step 1 - Gather\n\nResolve the PR from a number, a URL, or the current branch.\n\n```bash\ngh pr view \u003CPR> --repo \u003Cowner\u002Fname> --json number,title,body,headRefOid,additions,deletions,changedFiles,state\n\npython3 \"$SKILL_DIR\u002Fscripts\u002Fexisting_comments.py\" \\\n  --repo \u003Cowner\u002Fname> --pr \u003CPR> --out \u002Ftmp\u002Fpr-\u003CPR>-existing.json\n```\n\nDon't fetch the file list here — `plan_review.py` does it in Step 2, with paging.\n\n**Do not run `gh pr diff` on a large PR.** Above roughly 5,000 changed lines it is\nuseless as context and expensive to carry — #2302's was 122,000 lines. Work from the\nchecked-out tree instead; for an all-additions PR the file content *is* the diff.\nBelow that threshold it's fine and often the quickest way to see the shape.\n\n**Read the existing comments, and keep that file** — Step 4 feeds it to the verifier,\nwhich drops anything already raised. This is what makes a PR re-reviewable: run it\nagain after your own pass, or after a bot or a colleague, and you get only new\nmaterial.\n\nSuppression rules, applied automatically:\n\n- same line, or **within 2 lines** → dropped\n- similar wording to any existing comment, including top-level ones with no line → dropped\n- **resolved** threads still block — already discussed\n- **outdated** threads do not block the line (the code moved, so it deserves a fresh\n  look) but their text still counts\n- **bots block exactly like humans**\n- **comments the user cut on a previous review** are blocked too, from the ledger\n  written at Step 6. A rejection never expires as outdated — a decision the user made\n  does not lapse because the code moved.\n\nAlso paste the existing comments into each lane prompt. The verifier is the backstop;\na worker that never generates the duplicate is cheaper than one that gets filtered.\n\nThen get the PR head into a local tree, and note its absolute path:\n\n```bash\ngh repo clone \u003Cowner\u002Fname> \u002Ftmp\u002Fpr-\u003CPR> -- --depth 1 --no-tags && \\\n  cd \u002Ftmp\u002Fpr-\u003CPR> && git fetch --depth 1 origin pull\u002F\u003CPR>\u002Fhead && git checkout FETCH_HEAD\n# or, against a clone you already have:\ngit -C \u003Clocal-clone> fetch origin pull\u002F\u003CPR>\u002Fhead && git -C \u003Clocal-clone> checkout FETCH_HEAD\n```\n\nDo this **once, here**. Analysis workers read this tree concurrently and must never\nmutate it — five sub-agents each running `gh pr checkout` in the same directory is a\nrace that leaves the tree on an arbitrary ref mid-review.\n\n## Step 2 - Plan, ask, announce\n\n```bash\npython3 \"$SKILL_DIR\u002Fscripts\u002Fplan_review.py\" \\\n  --repo \u003Cowner\u002Fname> --pr \u003CPR> --json\n```\n\nThe plan gives you, deterministically: which files to skip and why, the comment\nbudget, whether to fan out, the lane assignments, and the post-run ETA.\n\nIt skips lockfiles, generated and vendored code, `dist\u002F`, snapshots, binaries, large\ndata fixtures, deleted files, and **pure renames** — a file moved with zero content\nchange has nothing to review, which on a migration PR is most of the diff (65 of 123\nfiles on #2373).\n\nLanes are packed so a **source file and its tests land together** (`tools\u002Fx.py` with\n`tools\u002Ftests\u002Ftest_x.py`), because a reviewer holding only one of the pair cannot tell\nwhether the test still covers the code. Lane sizes stay balanced regardless.\n\n### Ask before analysing — scope\n\nAsk here rather than at the start, because the answer depends on the PR's size and\nshape, which you only know now:\n\n```\nPR #2302 \"add the Horizon long-horizon agent recipe\"\n787 files, 122,547 lines, all additions. Skipping 16 (lockfiles, binaries).\nBudget: 12-20 comments.\n\n  Include tests\u002F (316 files) and web\u002F (238)?   [yes \u002F no]\n```\n\nArgue for including `tests\u002F`: test files are the richest source of instantly-checkable\ndefects — a duplicated assertion, a test named for one thing that exercises another —\nand they are usually the least-reviewed part of a PR.\n\n**Act on the answer — re-run the planner with the flags.** The default includes\neverything; the question is worthless if you don't pass it through:\n\n```bash\npython3 \"$SKILL_DIR\u002Fscripts\u002Fplan_review.py\" \\\n  --repo \u003Cowner\u002Fname> --pr \u003CPR> --json [--no-tests] [--no-web]\n```\n\nUse the re-planned lane assignments, not the first run's.\n\n**House rules — `google\u002Fadk-samples` only.** If the PR is in that repo and touches\n`core\u002F`, `contrib\u002F` or `plugins\u002F`, `.github\u002Freview-rules.md` is in force. Say so in\nthe checkpoint. For every other repo, ignore it — the rules are repo-specific and\napplying them elsewhere produces confident nonsense.\n\n\nThen:\n\n1. **Seed the todo list** — one item per phase, one per lane (see\n   [Progress reporting](#progress-reporting)).\n2. **Print the checkpoint**, so the user knows the shape of the work and that\n   nothing will be posted without them:\n\n```\nTests included. 771 files across 10 lanes + consistency lane.\nAnalysis takes a few minutes. Nothing gets posted without your approval.\n```\n\nThe budget comes from **reviewable** churn, not total — a PR that is 1,400 lines of\nregenerated lockfile plus 80 lines of hand-written code earns a small-PR budget.\n\n| Reviewable lines | Comments |\n|---|---|\n| \u003C 50 | 2–3 |\n| 50–200 | 3–5 |\n| 200–600 | 5–8 |\n| 600–1500 | 8–12 |\n| > 1500 | 12–20 |\n\nHard cap **20**, whatever the size.\n\n## Step 3 - Analysis phase (no voice constraints)\n\nHunt for defects and write them down verbosely and technically. This output is\ninternal — never shown to the user, never posted.\n\n**Work inside [the depth limit](#the-depth-limit)**, and within it read the **full\nchanged files, not just the diff** — a broken invariant or an error path that no\nlonger returns is invisible in a diff window. Where the diff touches a function, read\nthe whole function; where it calls a helper you cannot judge blind, spend the hop.\n\n**Use the `What to hunt` block from `reference\u002Flane-prompt.md` verbatim.** It is one\nlist, and the filter at the top of it is the load-bearing part: a finding must point\nat something observable at the line. If seeing that it is a defect requires the\nreader to do arithmetic, infer a pattern, or reason about consequences, it is out of\nscope *however serious it looks*.\n\n**Group at 3+.** The same defect class in three or more places is ONE finding, on the\nclearest instance, with the count in `evidence`. Five \"unused import\" findings is one\ncomment; the other four slots buy distinct defects. Two instances stay two.\n\n**The grouped comment's claim is about the anchored instance**; the count is context,\nnever something the reader must open files to confirm. `a few unused imports in here`\nis checkable at the anchor; `unused imports here, also in X and Y` is not. Group only\ninstances that are individually real — sweeping a deliberate `__init__.py` re-export\ninto an \"unused imports\" group makes the whole comment wrong.\n\n**In `google\u002Fadk-samples`, run the house-rules checker:**\n\n```bash\npython3 \"$SKILL_DIR\u002Fscripts\u002Fcheck_house_rules.py\" \\\n  --repo-root \u003Crepo_path> --recipe \u003Crecipe> --json\n```\n\n24 of the 27 rules are decided deterministically there — take its findings\nverbatim. Two of them, H26 (env-read defaults, AST-based) and H27 (licence header\nconsistency), report one grouped finding with a count rather than one per hit.\nDispatch the house-rules lane (Template C) for the remaining three (H11, H16,\nH25), which need a judgement call. One — **H48**, a junk `ownership.team` — is\nreported whether or not the PR touched `manifest.yaml`, and is never trimmed;\nsee [Must-post findings](#must-post-findings).\n\nPrefer the script over a lane wherever a rule is decidable — a script cannot\nhallucinate a violation, and a false *\"this will fail CI\"* is the most expensive\ncomment this skill can produce.\n\nThe lane is defined by *file identity*, not churn: it receives the recipe's config\nsurface (`pyproject.toml`, `manifest.yaml`, `README.md`, `.env.example`, the package\n`__init__.py`, `Makefile`, `Dockerfile`) and reads them **in full even when they are\npure renames or wholly outside the diff** — see `reference\u002Frationale.md`.\n\nWorkers assign **one** label:\n\n- `severity`: **critical** (security hole, data loss, corruption, auth bypass,\n  injection, a crash on a reachable path) or **no_critical** (everything else worth\n  saying). It orders the output; it never changes how a comment is worded.\n\nEvery finding also carries `verify_steps` (the literal procedure the author follows\nto settle it) and `window` (the real source lines at the anchor). **`verify_steps` is\nthe gate** — `verify_findings.py` computes cheapness from it in Step 4, so a worker\nthat writes it honestly is doing the right thing even when the finding then gets\ndropped. `window` is what gets shown to the user beside the comment.\n\nPure style, naming and formatting are not findings at any severity — discard them.\n\n**A finding claiming something is absent must say where you looked**, or where it\ndoes appear. That is the one claim the anchored line cannot support, and it is the\ndefect that produced the single wrong comment this skill has posted.\n\n### 3a - Small PR (`fan_out: false`)\n\nDo it inline, yourself. Below ~400 reviewable lines and ~8 files, spawning workers\ncosts more than it saves.\n\n### 3b - Large PR (`fan_out: true`)\n\nOne `batch_task` call. Lanes are the file shards from the plan:\n\n```\nbatch_task({\n  description: \"PR 2302 analysis\",\n  concurrency: 10,\n  verify: false,\n  subtasks: [ ...one per file lane..., consistency lane ]\n})\n```\n\nBuild each prompt from `reference\u002Flane-prompt.md` — Template A for file lanes,\nTemplate B for the consistency lane. `subagent_type: general` for all of them.\n\nFill in **every** placeholder: workers share no context with you or each other, so\n`\u003CPR>`, `\u003Cowner\u002Fname>`, `\u003Crepo_path>` (the tree from Step 1), the lane's file list,\nand the existing-comment list all have to be spelled out in each prompt.\n\n**The consistency lane is not optional.** It gets no file shard. It exists for the\none class a per-file split structurally cannot see: the same element differing\nbetween files — three licence headers, two docstring styles, a constant written with\ndifferent values in two places. Shard workers cannot see these; one worker comparing\nacross files can.\n\nIt is bounded to **structural comparison**, never semantic tracing. Comparing four\nlicence headers is a glance; following a value between modules is not, and that is\nwhat the previous version of this lane spent its time on, producing findings that\nwere all discarded.\n\n`verify: false` on purpose — the batch verifier would re-audit findings you are about\nto re-rank yourself in Step 4, adding a full agent pass of latency to the one phase\nthis whole mechanism exists to make faster.\n\n**Merging the findings.** Read each lane's `findings.json`. Then:\n\n- Dedupe. Two lanes reaching the same defect from different directions is common;\n  it is one comment.\n- On any conflict about a cross-file inconsistency, the consistency lane wins — it\n  saw every side.\n- **Spot-check `severity`, don't re-derive it.** Sanity-check that each `critical`\n  really is one. Re-reading the cited code is inside the limit; going further to\n  rescue a finding the gate will drop is not.\n- A lane that failed is not a blocker: note it, and either re-run that one lane with\n  `task` or cover its files yourself.\n\nThen checkpoint (see [Progress reporting](#progress-reporting)).\n\n## Step 4 - Gate or tag, then group\n\n**No budget cut happens here.**\n\n### First, run the verifier — this is not optional\n\n```bash\npython3 \"$SKILL_DIR\u002Fscripts\u002Fverify_findings.py\" \\\n  --findings \u002Ftmp\u002Fpr-\u003CN>-raw.json --repo-root \u003Crepo_path> \\\n  --repo \u003Cowner\u002Fname> --pr \u003CN> --head-sha \u003CheadRefOid from Step 1> \\\n  --existing \u002Ftmp\u002Fpr-\u003CN>-existing.json \\\n  --out \u002Ftmp\u002Fpr-\u003CN>-verified.json\n```\n\nIt does five things that were previously prose, done by hand, and sometimes skipped:\n\n1. **Window vs file.** Each finding's quoted source is diffed against the real file.\n   A mismatch means the lane fabricated it — **rejected**, not downgraded.\n2. **Addressability.** Marks `anchorable: false` for any line outside every diff hunk.\n3. **Cheap gate.** Computes cheapness from `verify_steps`; a procedure that names a\n   second file or says *trace* \u002F *assuming* is not cheaply verifiable.\n4. **Duplicate suppression.** Drops anything already raised on the PR (see Step 1)\n   **and anything the user cut on a previous review** — the rejection ledger loads\n   automatically from `--repo`\u002F`--pr`. `--no-ledger` disables it.\n5. **Already-red suppression.** With `--head-sha`, drops a **CI-FAIL** finding whose\n   enforcing workflow is already failing on that commit, matched from the workflow\n   file the finding cites in `evidence`. The author is looking at that red check\n   already, and its message is more precise than ours. Advisory findings are never\n   suppressed this way — nothing is failing for them, so the comment is the only way\n   the author hears it. An unreadable status suppresses nothing. `--no-ci-status`\n   disables it.\n\nIt also emits a fact-anchoring lint and a clustering hint for grouping. Both are\nadvisory; read them, don't obey them blindly.\n\nTake its output as the input to everything below. Findings it rejected do not come\nback — a fabricated window is not a labelling problem.\n\n**Un-anchorable findings are set aside, not discarded.** A finding outside every hunk\ncannot be an inline comment, but it can still be true and important — the three hard\nCI failures on PR #2373 were all un-anchorable. They stay in the `unanchorable`\nbucket, carried to Step 6 and offered as **one** top-level issue comment. Never\nsilently drop them, and never anchor them to an unrelated nearby line to force them\nthrough: a comment about `requires-python` pinned to a dependency line twenty rows\naway is worse than no comment.\n\n**The gate drops every `not_cheap` finding.** Report a bare count at the checkpoint\n(`23 findings dropped as not cheaply verifiable`) — not a list. Handing over the list\nwould pull the user into evaluating exactly the material the gate exists to spare\nthem.\n\n**Then apply the fact-anchoring filter yourself**, on the survivors. `verify_steps`\ncatches findings that are expensive to check; it does not catch findings that are\ncheap to check but ask the reader to *derive* the defect. Delete the question from\nthe comment: if what remains is not a statement of something visible at the line,\ndrop it. This is the filter that separated all 16 accepted comments on #2373 from all\n4 rejected ones — see the rated outcomes in `reference\u002Fvoice.md`.\n\n**Cheapness is a property of the final comment text**, not the raw finding.\n`` `ty` is on 3.10 while `requires-python` says 3.11 `` is cheap because it names\nboth sides; *\"this contradicts the setting above\"* is the same defect and expensive.\nRe-check at the end of Step 5 once the wording exists.\n\nSurvivors are ordered `critical` first. There is no other label — `confidence` was\nremoved because after the verifier runs, everything surviving is high-confidence by\nconstruction, so the column never discriminated.\n\nSeverity orders the output and nothing else. It never changes how a comment is\nworded (`reference\u002Fvoice.md`).\n\nRules that still apply at this stage:\n\n- **If there are not enough real issues, produce fewer.** Padding produces exactly\n  the vacuous filler that reads as machine-generated. If a PR is genuinely clean,\n  say so and post nothing.\n- **≤ 2** cosmetic comments (stale years, a constant that disagrees, a naming\n  inconsistency) — all `no_critical` by definition.\n- **1–2** positive remarks when genuinely warranted, **suppressed entirely if\n  anything `critical` was found**. Nobody compliments the styling on a PR with a\n  security hole.\n\n## Step 5 - Voice phase\n\n> **Never delegate this step.** Not to a sub-agent, not split across two passes.\n> Everything below is a property of the comment set *as a whole* — the register mix,\n> the clustering, the sentence-shape variety, the cosmetic quota. An agent holding\n> one shard cannot honour any of them, and the failure is invisible per-comment and\n> glaring in aggregate.\n\nRead `reference\u002Fvoice.md` now. Summary of the binding rules:\n\n- Every full-sentence comment **ends in a question mark**. Declarative multi-clause\n  statements are banned.\n- Or use a lowercase fragment of 2–6 words with no terminal period.\n- **Tone never escalates with severity.** Command injection is raised as politely as\n  a missing try\u002Fcatch.\n- One thought per comment. No causal chains, no prescriptions stacked on diagnoses,\n  no line numbers in prose.\n- Banned: bold labels, severity prefixes, emoji, headers, bullets, `suggestion`\n  blocks, \"Consider …\", \"It would be better to …\".\n- Backticks on identifiers and paths.\n- **No crafted payloads, and no claim resting on code you didn't read** — the proof\n  tell and the depth tell. Write the comment you would have written *before* doing\n  the work, not after.\n- **Name the referent, and carry the verification path.** A comment must say what it\n  points at, and if it depends on anything off the anchored line it must name that\n  and say where. `old version still holds the value` is unusable; `Does the previous\n  version get destroyed anywhere?` is not.\n\nAim for ~60% Register A \u002F 40% Register B.\n\nFindings arrive from workers as blunt technical prose (`user-controlled filename is\ninterpolated into os.system()`). That is raw material, not a draft. Rewrite every\none from scratch against the corpus.\n\n**Severity must not leak into the wording.** A `critical` comment is not sharpened\nand a `no_critical` one is not softened. The user reads the ordering; the PR author\nreads only the comment, and it has to look the same either way.\n\n### Distribution matters as much as wording\n\n- **Cluster on the substantive files.** Uniform coverage — one comment per file,\n  evenly spread — is a machine signature. Real reviewers dwell where the risk is and\n  skim the rest. Fanning out by file makes this *worse* by default, since every lane\n  returns findings: when you select, deliberately let some lanes contribute nothing.\n- Do not let two comments share a sentence shape. Three comments opening with\n  `It seems` is a tell.\n- Vary length. A review where every comment is one line, or every comment is two\n  sentences, looks generated.\n- Cross-reference in Register B when the same issue recurs (`same issue as above`)\n  rather than restating it.\n\n**Before leaving this step**, re-check the `cheap` label against the wording you\nactually wrote (Step 4), and run the cold-read test from `reference\u002Fvoice.md` on\nevery comment: anchored line ±10 plus the comment text, nothing else — can you tell\nwhat it refers to and how you'd check it? If not, rewrite or drop it.\n\n## Step 6 - Present, take a decision\n\nGenerate the report, print the summary, then **stop and wait.**\n\nThe report goes to `~\u002FDocuments\u002Fagents\u002Fpr-reviews\u002F`. Don't ask — that folder is the\ndestination unless the user names another path in the same breath.\n\n```bash\npython3 \"$SKILL_DIR\u002Fscripts\u002Fbuild_report.py\" \\\n  --candidates \u002Ftmp\u002Fpr-\u003CN>-candidates.json --repo \u003Cowner\u002Fname> --pr \u003CN> \\\n  --out-md ~\u002FDocuments\u002Fagents\u002Fpr-reviews\u002Fpr-\u003CN>-review.md\n```\n\nThat writes one markdown report — **summary table first, detail sections below** —\ncarrying the code window beside every comment, which is the whole point: the user\nmust be able to run the check without opening a file.\n\n`--out-csv` still exists for spreadsheet triage but is off by default; the CSV held\nthe same rows as the markdown tables, so writing both left two copies of one report\non disk.\n\n### Present the set\n\nOne table, ordered `critical` first, then by path. Every row carries the source line\nit is anchored to, so the user can settle it without opening a file.\n\n```\n16 comments ready (2 critical), ~14 min to post.\n3 more findings are un-anchorable — see below.\n47 findings dropped as not cheaply verifiable.\n\nReport: ~\u002FDocuments\u002Fagents\u002Fpr-reviews\u002Fpr-2373-review.md\n```\n\n**Recommend, don't decide.**\n\n- Don't propose \"criticals only\" by reflex. A review that is entirely critical\n  security findings is itself implausible; real ones mix a sandbox escape with a\n  stale Python version.\n- Point out anything you are unsure of rather than burying it. The user cutting a\n  comment costs nothing; a bad comment posted costs their credibility.\n\n**Then apply the size budget from Step 2.** If the set exceeds the cap, trim and say\nexactly what was dropped. Never trim silently.\n\n#### Must-post findings\n\n**H48** — an `ownership.team` naming a company, a filler word, or the author's own\nGitHub handle — is exempt from the budget and from the \"is it worth a slot?\" cut.\nIt survives trimming even on a PR already at its cap.\n\nIt is the only field in the repo where a wrong value passes every deterministic\ncheck: the schema asks for a non-empty string and stops there. Nothing downstream\nnotices, and the recipe ships with no reachable owner. So the comment goes out\nevery time the checker fires, and when `manifest.yaml` is outside the diff hunks\nit goes in the un-anchorable top-level comment rather than being dropped.\n\nAsk who maintains the recipe. Never propose a team name — the same reason as H17.\n\nNever post without explicit approval, and let the user cut or reword anything. A\nwrong comment posted in their name costs their credibility with the PR author, so\nthis step is where they take ownership of the review as their own.\n\n**Record what they cut**, right after they choose and before posting:\n\n```bash\npython3 \"$SKILL_DIR\u002Fscripts\u002Frejections.py\" --record \\\n  --repo \u003Cowner\u002Fname> --pr \u003CPR> \\\n  --candidates \u002Ftmp\u002Fpr-\u003CPR>-candidates.json \\\n  --approved \u002Ftmp\u002Fpr-\u003CPR>-comments.json\n```\n\n`--candidates` is everything drafted, `--approved` is what they said yes to; the\ndifference is the rejection. **Pass the matching pair from this run** — mismatched\nfiles record the wrong set and poison the ledger.\n\nStep 1's suppression only sees comments that were *posted*. One the user read and cut\nleft no trace on GitHub, so without this it returns on the next review and has to be\nrejected again — which happened three times on the #2373 re-review. The verifier\nloads the ledger automatically; nobody has to remember to pass it.\n\n### Un-anchorable findings\n\nIf the `unanchorable` bucket is non-empty, present it as its own short table and\noffer **one** top-level issue comment covering all of them:\n\n```\nUn-anchorable (3) — real, but the lines aren't in any diff hunk:\n  pyproject.toml:69   [tool.ruff] tables        CI-FAIL\n  pyproject.toml:38   requires-python >=3.10    CI-FAIL\n  pyproject.toml:2    name != folder basename   CI-FAIL\n\nOffer as one top-level comment?\n```\n\nThis is the one permitted exception to \"no summary comment\" (Step 7). Keep it to a\nbulleted list of the findings, with no preamble about the review as a whole and no\nrestatement of the inline comments.\n\nOrder them **CI-failures first** — an author will act on \"this blocks the build\"\nand may not act on a convention nit. Mark advisory items as such, and never claim\nCI will fail when `.github\u002Freview-rules.md` says the check is a `::notice`.\n\n## Step 7 - Post\n\nWrite the approved set to JSON and dry-run it first — blocking, it's fast, and it is\nthe gate:\n\n```bash\npython3 \"$SKILL_DIR\u002Fscripts\u002Fpost_comments.py\" \\\n  --repo \u003Cowner\u002Fname> --pr \u003CPR> --file \u002Ftmp\u002Fpr-comments.json --dry-run\n```\n\nIt validates every line against the diff hunks and fails loudly if a line isn't\naddressable. Then run the real thing **as a background job** and hand control back:\n\n```bash\npython3 \"$SKILL_DIR\u002Fscripts\u002Fpost_comments.py\" \\\n  --repo \u003Cowner\u002Fname> --pr \u003CPR> --file \u002Ftmp\u002Fpr-comments.json\n```\n\n```\nPosting 9 comments, ~8 min. Running in the background - you'll be notified when\nit's done, so carry on with whatever you like.\n```\n\nDo not sleep-and-poll it. You get a completion notification; `tail` the job only if\nthe user asks how far along it is.\n\nThe script posts each comment individually, in file order, sleeping a random 10–20s\nbetween them. **Do not shorten the gaps** — the pacing is the point\n(`reference\u002Frationale.md`). If it fails partway, the `.posted` state file records\nwhat landed; re-run the identical command to resume.\n\n**A pending review blocks everything** — GitHub allows one per user and this endpoint\nimplicitly opens one, so every comment 422s. The script preflights and stops with\ninstructions. Do **not** submit or discard their pending review for them: submitting\nposts publicly under their name and may carry a verdict; discarding destroys drafts\nthey wrote. Surface it and let them choose.\n\n**No verdict and no summary comment.** Do not approve, do not request changes, do not\nleave a top-level recap. The user handles the verdict themselves.\n\nThe single exception is the un-anchorable list from Step 6, when the user approves\nit — a bulleted list of findings whose lines are in no diff hunk. Not a recap: it\nsays nothing about the review as a whole and repeats no inline comment.\n\ncomments.json format:\n\n```json\n[\n  {\"path\": \"src\u002Fapi.py\", \"line\": 42, \"body\": \"missing await here\"},\n  {\"path\": \"src\u002Fapi.py\", \"line\": 88, \"body\": \"Can we use `subprocess.run()` with a list here?\"}\n]\n```\n\n`line` must be a line present in the diff. Add `\"side\": \"LEFT\"` to comment on a\ndeleted line.\n\n## Progress reporting\n\nThe user cannot see analysis happening. On a large PR the gap between \"review this\"\nand the draft is minutes, and the post run is minutes more. Fill it.\n\n**Todo list**, seeded in Step 2 and kept current — this is the live progress bar:\n\n```\n- Gather PR + existing comments\n- Plan lanes and budget\n- Lane 1 analysis (4 files, 320 lines)\n- Lane 2 analysis (6 files, 295 lines)\n- ...\n- Consistency lane\n- Merge, dedupe and label findings\n- Draft comments in voice\n- Present table and await approval\n- Post (background)\n```\n\nMark each done as it lands, not in batches. On a small PR collapse the lane items\ninto a single \"Analyse changed files\".\n\n**Checkpoints.** Four short messages, no more. Prose, not tables.\n\n1. *After the plan* (Step 2) — the mode\u002Fscope question, then size, skips, budget,\n   lane count, and the promise that nothing posts without approval.\n2. *After analysis* (Step 3\u002F4) — the funnel, so the shape of the cut is visible:\n   ```\n   Analysis done. 74 findings across 12 lanes. 3 rejected by the verifier,\n   25 un-anchorable, 26 dropped as not cheaply verifiable or style.\n   20 candidates, drafting now.\n   ```\n3. *At the decision* (Step 6) — the table, the un-anchorable list, the report path,\n   the ETA.\n4. *At posting* (Step 7) — backgrounded, ETA, notification promise.\n\n`batch_task` does not stream partial results, so nothing arrives between checkpoints\n1 and 2. That makes checkpoint 1 load-bearing: it must state that analysis takes a\nfew minutes, or the silence reads as a hang.\n\nIf anything degrades — a lane fails, the diff is unfetchable, the PR is closed, every\nfile is skipped — say so immediately rather than quietly working around it.\n",{"name":5,"description":7},"main","665f7b2a181686f2ba3c6c942e9b30a084b12ec3",".agents\u002Fskills\u002Fgithub-pr-review",2962,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-recipes","https:\u002F\u002Fadk.dev","https:\u002F\u002Fgithub.com\u002Fgoogle","https:\u002F\u002Fopensource.google\u002F","Google ❤️ Open Source","2026-11-14 04:01:32",{"source":9,"skillName":5,"commands":67,"prompt":77,"zipAvailable":78},[68,71,74],{"tool":69,"command":70},"npx","npx skills add google\u002Fadk-recipes --skill github-pr-review",{"tool":72,"command":73},"bunx","bunx skills add google\u002Fadk-recipes --skill github-pr-review",{"tool":75,"command":76},"pnpm","pnpm dlx skills add google\u002Fadk-recipes --skill github-pr-review","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-recipes\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgithub-pr-review\u002FSKILL.md",true,[80,86,90,94,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164],{"path":81,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":84,"sourceHtmlUrl":85},"reference\u002Flane-prompt.md","REFERENCE","参考文档",20781,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-recipes\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgithub-pr-review\u002Freference\u002Flane-prompt.md",{"path":87,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":88,"sourceHtmlUrl":89},"reference\u002Frationale.md",2159,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-recipes\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgithub-pr-review\u002Freference\u002Frationale.md",{"path":91,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":92,"sourceHtmlUrl":93},"reference\u002Fvoice.md",22263,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-recipes\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgithub-pr-review\u002Freference\u002Fvoice.md",{"path":95,"resourceType":96,"resourceTypeDesc":97,"sizeBytes":98,"sourceHtmlUrl":99},"scripts\u002Fbuild_report.py","SCRIPT","脚本",12467,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-recipes\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgithub-pr-review\u002Fscripts\u002Fbuild_report.py",{"path":101,"resourceType":96,"resourceTypeDesc":97,"sizeBytes":102,"sourceHtmlUrl":103},"scripts\u002Fcheck_house_rules.py",78085,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-recipes\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgithub-pr-review\u002Fscripts\u002Fcheck_house_rules.py",{"path":105,"resourceType":96,"resourceTypeDesc":97,"sizeBytes":106,"sourceHtmlUrl":107},"scripts\u002Fexisting_comments.py",5936,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-recipes\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgithub-pr-review\u002Fscripts\u002Fexisting_comments.py",{"path":109,"resourceType":96,"resourceTypeDesc":97,"sizeBytes":110,"sourceHtmlUrl":111},"scripts\u002Fplan_review.py",11510,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-recipes\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgithub-pr-review\u002Fscripts\u002Fplan_review.py",{"path":113,"resourceType":96,"resourceTypeDesc":97,"sizeBytes":114,"sourceHtmlUrl":115},"scripts\u002Fpost_comments.py",9443,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-recipes\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgithub-pr-review\u002Fscripts\u002Fpost_comments.py",{"path":117,"resourceType":96,"resourceTypeDesc":97,"sizeBytes":118,"sourceHtmlUrl":119},"scripts\u002Frejections.py",4230,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-recipes\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgithub-pr-review\u002Fscripts\u002Frejections.py",{"path":121,"resourceType":96,"resourceTypeDesc":97,"sizeBytes":122,"sourceHtmlUrl":123},"scripts\u002Fverify_findings.py",23817,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-recipes\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgithub-pr-review\u002Fscripts\u002Fverify_findings.py",{"path":125,"resourceType":96,"resourceTypeDesc":97,"sizeBytes":126,"sourceHtmlUrl":127},"tests\u002Fconftest.py",581,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-recipes\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgithub-pr-review\u002Ftests\u002Fconftest.py",{"path":129,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":130,"sourceHtmlUrl":131},"tests\u002Ffixtures\u002Fpr2373_outcomes.json",16286,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-recipes\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgithub-pr-review\u002Ftests\u002Ffixtures\u002Fpr2373_outcomes.json",{"path":133,"resourceType":96,"resourceTypeDesc":97,"sizeBytes":134,"sourceHtmlUrl":135},"tests\u002Ftest_build_report.py",7637,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-recipes\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgithub-pr-review\u002Ftests\u002Ftest_build_report.py",{"path":137,"resourceType":96,"resourceTypeDesc":97,"sizeBytes":138,"sourceHtmlUrl":139},"tests\u002Ftest_check_house_rules.py",59701,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-recipes\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgithub-pr-review\u002Ftests\u002Ftest_check_house_rules.py",{"path":141,"resourceType":96,"resourceTypeDesc":97,"sizeBytes":142,"sourceHtmlUrl":143},"tests\u002Ftest_house_rules_drift.py",9012,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-recipes\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgithub-pr-review\u002Ftests\u002Ftest_house_rules_drift.py",{"path":145,"resourceType":96,"resourceTypeDesc":97,"sizeBytes":146,"sourceHtmlUrl":147},"tests\u002Ftest_plan_review.py",4047,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-recipes\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgithub-pr-review\u002Ftests\u002Ftest_plan_review.py",{"path":149,"resourceType":96,"resourceTypeDesc":97,"sizeBytes":150,"sourceHtmlUrl":151},"tests\u002Ftest_post_comments.py",1601,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-recipes\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgithub-pr-review\u002Ftests\u002Ftest_post_comments.py",{"path":153,"resourceType":96,"resourceTypeDesc":97,"sizeBytes":154,"sourceHtmlUrl":155},"tests\u002Ftest_regression_pr2373.py",2920,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-recipes\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgithub-pr-review\u002Ftests\u002Ftest_regression_pr2373.py",{"path":157,"resourceType":96,"resourceTypeDesc":97,"sizeBytes":158,"sourceHtmlUrl":159},"tests\u002Ftest_rejections.py",3825,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-recipes\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgithub-pr-review\u002Ftests\u002Ftest_rejections.py",{"path":161,"resourceType":96,"resourceTypeDesc":97,"sizeBytes":162,"sourceHtmlUrl":163},"tests\u002Ftest_verify_findings.py",16457,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-recipes\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgithub-pr-review\u002Ftests\u002Ftest_verify_findings.py",{"path":165,"resourceType":96,"resourceTypeDesc":97,"sizeBytes":166,"sourceHtmlUrl":167},"tests\u002Ftest_voice_corpus.py",6832,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-recipes\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgithub-pr-review\u002Ftests\u002Ftest_voice_corpus.py",[169,192,220,249,274,303],{"skillNo":170,"name":171,"nameZh":172,"description":173,"descriptionZh":174,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":175,"categories":176,"keywords":183,"publishedAt":51},"01M6991EKEG8XEM3VWW4VGV0ZQ","retail-virtual-tryon","零售虚拟试穿智能体开发","Creates virtual try-on agents supporting image and video (catwalk animation) try-ons on Google Cloud (Gemini image models and Veo on Gemini Enterprise Agent Platform). Handles resource setup, user photo uploading, image\u002Fvideo generation pipelines, local testing, and evaluation.","创建虚拟试穿智能体，在 Google Cloud 上支持图片和视频（走秀动画）试穿（使用 Gemini 图像模型和 Gemini Enterprise Agent Platform 上的 Veo）。负责资源设置、用户照片上传、图片\u002F视频生成流水线、本地测试和评估。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-recipes\u002Fblob\u002Fmain\u002Fplugins\u002Fretail\u002Fskills\u002Fvirtual-tryon\u002FSKILL.md",[177,180],{"categoryNo":178,"categoryName":179,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",{"categoryNo":181,"categoryName":182,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSAA4FBTWZP6X98STEHG99","智能体开发",[184,185,186,10,187,188,189,190,191],"retail virtual tryon","google cloud","image","testing","gemini","genai","adk","gemini enterprise agent platform",{"skillNo":193,"name":194,"nameZh":195,"description":196,"descriptionZh":197,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":198,"categories":199,"keywords":202,"publishedAt":51},"01M6991ABTZW7FCPREXY8GD4RG","retail-product-search","零售产品搜索智能体构建","Creates product search agents with semantic search and RAG on Google Cloud (Vector Search on Gemini Enterprise Agent Platform, BigQuery, embeddings). Use when the user wants to \"build a product search agent\", \"create an e-commerce search\", \"make a shopping assistant\", \"set up semantic catalog discovery\", \"ingest products into Vector Search\", or \"deploy a retail RAG agent\". Handles the full pipeline: catalog data ingestion to BigQuery, Gemini Enterprise Agent Platform Vector Search collection setup, ADK agent scaffolding, evaluation, and Cloud Run deployment.","在 Google Cloud 上创建具备语义搜索和 RAG 能力的产品搜索智能体（基于 Gemini Enterprise Agent Platform 上的 Vector Search、BigQuery 和 embeddings）。当用户想要“构建产品搜索智能体”“创建电商搜索”“制作购物助手”“搭建语义化目录发现”“将产品导入 Vector Search”或“部署零售 RAG 智能体”时使用。涵盖完整流程：目录数据导入 BigQuery、Gemini Enterprise Agent Platform 的 Vector Search 集合配置、ADK 智能体脚手架搭建、评估以及 Cloud Run 部署。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-recipes\u002Fblob\u002Fmain\u002Fplugins\u002Fretail\u002Fskills\u002Fproduct-search\u002FSKILL.md",[200,201],{"categoryNo":178,"categoryName":179,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":181,"categoryName":182,"taxonomyType":28,"taxonomyTypeDesc":29},[203,204,205,191,190,188,206,10,185,207,37,208,209,210,211,212,213,214,215,216,217,218,219],"retail product search","product","search","assistant","pipeline","commerce","scaffolding","shopping","up","ingestion","collection","SET","vector","apache","run","create","rag",{"skillNo":221,"name":222,"nameZh":223,"description":224,"descriptionZh":225,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":226,"categories":227,"keywords":232,"publishedAt":51},"01M69918HZCYZHD7K9Y9ZSD287","routines","定时例行任务管理","Use for a recurring unattended task (cron; pull data, open a PR, post a digest), or to test\u002Fdry-run a routine first. Explains authoring and testing via the routine tool.","用于周期性、无人值守的任务（cron；如拉取数据、创建 PR、发布摘要），或先对某个例行程序进行测试／试运行。介绍如何通过 routine 工具编写和测试例行任务。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-recipes\u002Fblob\u002Fmain\u002Fcore\u002Fpython\u002Flong-horizon-harness\u002Fhorizon\u002Fbuiltin_skills\u002Froutines\u002FSKILL.md",[228,229],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":230,"categoryName":231,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSFHC0DJXKNN0QBZDDS4K9","定时任务与自动化编排",[222,233,234,235,236,237,238,239,240,241,242,34,243,244,245,246,217,247,187,248],"dry","routine","for","post","via","authoring","digest","task","use","recurring","tool","open","first","pull","test","data",{"skillNo":250,"name":251,"nameZh":252,"description":253,"descriptionZh":254,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":255,"categories":256,"keywords":263,"publishedAt":51},"01M699178ZDFDXEZ11DG1Y9CTF","policy","工具权限策略检查","Inspect the per-workspace tool-policy overlay (.lha\u002Fpolicies.jsonl) that gates destructive or sensitive tool calls, and tell the user what to change if they want a rule added or removed.","检查按工作区划分的工具策略覆盖层（.lha\u002Fpolicies.jsonl），该覆盖层用于对破坏性或敏感的工具调用进行门控，并告知用户若想新增或删除规则应修改哪些内容。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-recipes\u002Fblob\u002Fmain\u002Fcore\u002Fpython\u002Flong-horizon-harness\u002Fhorizon\u002Fbuiltin_skills\u002Fpolicy\u002FSKILL.md",[257,260],{"categoryNo":258,"categoryName":259,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师",{"categoryNo":261,"categoryName":262,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRN0CV1NMDZ5TEJX1GVM29","插件与技能管理",[251,264,265,266,267,268,269,270,271,272,243,273],"gates","overlay","tool calls","inspect","calls","jsonl","rule","user","workspace","change",{"skillNo":275,"name":276,"nameZh":277,"description":278,"descriptionZh":279,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":280,"categories":281,"keywords":288,"publishedAt":51},"01M69915F8591SQBA1ZHK6NDA7","google-workspace","Google Workspace 办公套件操作","Read\u002Fwrite Google Drive, Docs, Sheets, Gmail, Calendar, Chat, Tasks, Slides via the `gws` CLI. Needs an OAuth client or service account configured first. Use for any Google Workspace task.","通过 `gws` 命令行工具读写 Google Drive、Docs、Sheets、Gmail、Calendar、Chat、Tasks、Slides。需先配置 OAuth 客户端或服务账号。适用于任何 Google Workspace 任务。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-recipes\u002Fblob\u002Fmain\u002Fcore\u002Fpython\u002Flong-horizon-harness\u002Fhorizon\u002Fbuiltin_skills\u002Fgoogle-workspace\u002FSKILL.md",[282,285],{"categoryNo":283,"categoryName":284,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TPH3VQWKQZXV7EPF8VZ","办公行政人员",{"categoryNo":286,"categoryName":287,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQGD3WKAZKP84N22M6Q0DM","办公管理与协作",[272,289,10,290,241,291,292,293,245,294,295,296,297,298,240,235,299,300,237,301,302],"google workspace","calendar","write","read","slides","OAuth","tasks","docs","cli","gmail","sheets","client","chat","gws",{"skillNo":304,"name":305,"nameZh":306,"description":307,"descriptionZh":308,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":309,"categories":310,"keywords":313,"publishedAt":51},"01M69914416KTZ6Z0WD425YYJ0","find-skills","智能体技能发现与安装","Discover\u002Finstall NEW agent skills from external sources (skills.sh). Use for capabilities you lack, e.g. \"find a skill for X\". Do NOT use to list skills you already have; see `\u003Cavailable_skills>`.","从外部来源（skills.sh）发现并安装全新的智能体技能。用于弥补自身缺失的能力，例如“找一个能做 X 的技能”。不要用于列出你已有的技能；请参阅 `\u003Cavailable_skills>`。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fadk-recipes\u002Fblob\u002Fmain\u002Fcore\u002Fpython\u002Flong-horizon-harness\u002Fhorizon\u002Fbuiltin_skills\u002Ffind-skills\u002FSKILL.md",[311,312],{"categoryNo":261,"categoryName":262,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":178,"categoryName":179,"taxonomyType":23,"taxonomyTypeDesc":24},[314,315,235,316,317,318,319,320,241,321,322,323,324],"find skills","find","you","sources","discover","new agent","do","install","list","list skills","capabilities"]