Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Deep-dive review of any GitHub PR in tetherto/qvac. Validates gitflow, CI, title/body format, code quality, security, and applicable repo rules. Posts a PENDING review with inline comments. Use when reviewing a PR, given a PR link, or invoking /qv-pr-review.
.claude/skills/tetherto-qv-pr-review/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-08 | ✗→✓ | ▲ Improved | 205% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 432% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 635% | 0% |
| case-15 | ✗→✓ | ▲ Improved | 535% | 0% |
| case-20 | ✗→✓ | ▲ Improved | 362% | 0% |
Manual-trigger PR review for any GitHub PR in the configured repository. Produces:
The user submits the pending review manually from the GitHub UI.
Use when:
/qv-pr-review/qv-sdk-pr-status, /qv-pr-mine, or another pod's status/my skillThe skill applies to any PR; cursor rules and PR-template format applicable to the touched paths are discovered dynamically (see step 4 / step 5).
https://github.com/tetherto/qvac/pull/1234)If PR URL is missing, ask for it. Nothing else to ask unless the user's seed notes are ambiguous.
Carefully check the changes, focusing on:
Style nits, doc polish, and unverified hunches are NOT the focus. Don't pad the review with them.
Use these tiers when assembling findings. Tiers drive what surfaces in the chat overview and what is proposed for inline comments. The user always has final say over what gets posted.
Selection rule: never silently include a Low finding in the inline payload. The user picks (see step 7b).
This skill is read-only with respect to the user's local working tree. The user may have uncommitted changes, be on a feature branch, or have pending work — never disturb it.
Forbidden commands (no matter the circumstance):
git switch, git checkout (any ref/file)git reset (any mode), git restoregit stash (push, pop, drop, anything)git pull, git merge, git rebase, git cherry-pickgit cleangh pr checkout/qv-pr-review runs by default in worktree mode (see step 0a). The dedicated cache directory at ~/.cache/qvac-pr-review/ is fully isolated from the user's working tree — it lives outside the repo entirely. Inside that cache directory only, the shared script (worktree-prepare.mjs) is allowed to:
git fetch <remote> "pull/<n>/head:refs/pr/<n>/head"git worktree add --detach <cache-path> refs/pr/<n>/headgit -C <cache-path> reset --hard refs/pr/<n>/head (when SHA drifted)git -C <cache-path> reset --hard HEAD (when the cached worktree is dirty at the same SHA)git -C <cache-path> clean -fdx (only after SHA drift, to evict stale untracked build/test artifacts)git worktree remove --force <cache-path> and git worktree prunegit -C <cache-path> rev-parse|log|show|diff|statusThese run from the script, not from the agent. The agent itself MUST NOT run any of the forbidden commands above — including inside the cache path. The agent only Reads/Greps/Globs source files in the cache path and never writes to them during /qv-pr-review.
The same cache path is also used by /qv-pr-test, so it may contain untracked build/test artifacts such as node_modules, dist, native build/ directories, or logs. Those artifacts are ignored by /qv-pr-review; the patch is computed from committed refs (<BASE_REF>...HEAD), not from the worktree's unstaged or untracked state.
If you need PR file contents:
<cache-path>/...). The path is at the PR head SHA.--no-worktree): gh api repos/{owner}/{repo}/contents/{path}?ref={sha} and write to /tmp/.Read cursor rules and repo conventions from the user's current workspace as-is — do not switch branches to "get the latest" version.
Every shell call costs a user approval. Keep the total small (~5-8 calls).
cat/head/tail, Grep instead of grep/rg, Glob instead of find, Write instead of echo > / heredoc.gh pr checkout. Use worktree mode (default, see step 0a) for full local context at the PR head SHA. The cache lives under ~/.cache/qvac-pr-review/ and never touches the user's working tree./tmp/pr-<num>.json and /tmp/pr-<num>.patch, reuse via Read/Grep. The worktree path is reused across step calls; don't re-prepare it.gh pr checks — statusCheckRollup in gh pr view --json already has every check.gh run view --log-failed --job <id> per failing job.file, od, wc -c, cat -A) unless a CI log explicitly names an encoding issue.Copy this checklist and track progress:
- [ ] 0a. Prepare worktree (default-on; skip if user passed --no-worktree)
- [ ] 1. Parse PR URL
- [ ] 2. Fetch PR data (2 shell calls)
- [ ] 3. Validate gitflow
- [ ] 4. Read applicable cursor rules for the touched paths
- [ ] 5. Validate PR title + body against the discovered format rules
- [ ] 6. Review: CI + general + security + rules — classify findings by severity
- [ ] 6b. Apply SDK plugin checklist (only if PR touches plugin paths)
- [ ] 7a. Print risk overview in chat (high + medium + material lows)
- [ ] 7b. Ask user which findings to include as inline comments (high+medium pre-selected, lows opt-in)
- [ ] 8. Assemble inline comments + write payload (only the user-confirmed set)
- [ ] 9. Pre-flight check (count, files, line numbers)
- [ ] 10. Show gh api command, wait for user confirmation
- [ ] 11. POST the PENDING review
- [ ] 12. Output link to pending reviewWorktree mode is the default — full local Read/Grep/Glob context at the PR head SHA, isolated under ~/.cache/qvac-pr-review/, never touches the user's working tree. The same script also fetches the PR's base ref and writes the canonical PR diff to /tmp/. Skip this step only if the user invoked /qv-pr-review URL --no-worktree.
bashnode .cursor/skills/_lib/pr-skills/worktree-prepare.mjs <PR-URL>
Parse the script's output:
WORKTREE_PATH=<absolute path> HEAD_SHA=<sha> PATCH_PATH=/tmp/pr-<num>.patch BASE_REF=<remote>/<baseRefName>
WORKTREE_PATH: the working root for files at the PR head SHA. Use this for all Read/Grep/Glob in steps 6 and 7a.PATCH_PATH: a unified diff computed locally with git diff <BASE_REF>...HEAD (3-dot). 3-dot semantics match GitHub's PR view exactly — only what the PR introduces, regardless of how far behind the base the PR is. Use this anywhere the workflow refers to the patch; do NOT use 2-dot.BASE_REF: the local tracking ref the diff was computed against (e.g. upstream/main). Useful if you need to re-run a custom diff inside the worktree. WORKTREE_FALLBACK=<one-line reason> The script's exit code is 0 even on failure. If you observe WORKTREE_FALLBACK, fall back to the API-only flow: fetch file contents via gh api repos/{owner}/{repo}/contents/{path}?ref={headRefOid} and the patch via gh pr diff <num> --patch > /tmp/pr-<num>.patch. Surface the fallback reason once in the chat overview's ### Verified (no action) section so the user knows local context is missing — e.g. "Worktree prep failed (<reason>); excerpts come from gh api."
When the user passes --no-worktree, skip this step entirely and use the API-only flow without surfacing any fallback note.
Extract owner, repo, pr_number from the URL. If ~/.config/qvac-pr-skills/config.json exists, verify the PR repo matches github.repo; otherwise use the repo in the provided PR URL.
bashgh pr view <num> --repo tetherto/qvac \ --json number,title,state,mergeable,baseRefName,headRefName,headRefOid,isCrossRepository,headRepositoryOwner,files,author,body,statusCheckRollup \ > /tmp/pr-<num>.json
In worktree mode (default), the patch is already at /tmp/pr-<num>.patch from step 0a — do NOT re-fetch it via gh pr diff.
In --no-worktree mode (or after a WORKTREE_FALLBACK), additionally:
bashgh pr diff <num> --repo tetherto/qvac --patch > /tmp/pr-<num>.patch
Everything else comes from these files via Read/Grep. No additional shell calls for PR data.
Read baseRefName, headRefName, isCrossRepository, headRepositoryOwner from /tmp/pr-<num>.json. Full gitflow rules are in docs/gitflow.md.
Allowed directions (fork to upstream):
| Head (fork branch) | Base (upstream) | OK? | |---|---|---| | anything | main | yes | | anything | release-<pkg>-<x.y.z> | yes (must bump version + changelog) | | anything | feature-<pkg>-* / tmp-<pkg>-* | yes |
Blocker patterns:
release-* to main — WRONGmain to release-* — WRONGrelease-* to release-* — WRONGfeature-* / tmp-* to main — WRONGmain to feature-* / tmp-* — WRONGRelease-PR extra checks (base is release-<pkg>-<x.y.z>):
packages/<pkg>/package.json version must increase vs basepackages/<pkg>/CHANGELOG.md must be updatedUse Glob/Read tools (no shell). The repo organizes cursor rules per area under .cursor/rules/<area>/. To pick which apply to this PR:
/tmp/pr-<num>.json (files[].path)..cursor/rules/**/*.mdc and look at each file's frontmatter globs field. Load any rule whose globs match at least one touched path. (Many rules also have alwaysApply: true and apply regardless.).github/teams/<pod>.json exists for a pod whose ownedPaths match the touched files, that pod's conventions are the relevant ones; load any rule under .cursor/rules/<pod>/ (e.g. main.mdc, commit-and-pr-format.mdc, error-handling.mdc, <pod>-pod-packages.mdc).If no rules match, skip this step. Do not hardcode rule paths.
If a commit-and-pr-format.mdc-style rule was loaded in step 4, validate the PR title and body against it. Common shape (used by the SDK pod and likely others):
Title (format: TICKET prefix[tag]: subject or prefix[notask]: subject):
feat fix doc test chore infra[api] [bc] [mod] [notask] [skiplog][api] required when diff adds new exports/public API surface[bc] required when diff removes/changes existing public API signatures[mod] required when model constants changeBody — use the matching .github/PULL_REQUEST_TEMPLATE/<template>.md if one is referenced by the loaded rule:
[bc] requires BEFORE/AFTER code blocks[api] requires usage example[mod] requires Added/Removed models listIf no format rule applies, skip this step. Title/body violations go in the chat overview only, not as inline PR comments.
Apply the review philosophy. Classify every finding as High, Medium, or Low. Skip any dimension with no findings.
*Approval*/approval-worker). Name the failing job + actual error. For failing jobs only: gh run view --repo tetherto/qvac --log-failed --job <job_id> > /tmp/pr-<num>-<job_id>.log (High)When verifying a suspected bug, attempt to construct a concrete reproduction (input → code path → observed behavior). If you cannot, classify it Medium at most and say so.
If the PR touches SDK plugin paths, also run the SDK plugin integration checklist. Trigger when any touched path (files[].path in /tmp/pr-<num>.json) matches:
packages/sdk/server/bare/plugins/**packages/sdk/schemas/plugin.ts or packages/sdk/schemas/load-model.tspackages/sdk/schemas/*-config.tspackages/sdk/server/worker.tspackages/sdk/commands/bundle/**If no path matches, skip this step entirely — no checklist output. When it triggers, read references/sdk-plugin-checklist.md and follow its "How to apply" and "Output integration" sections. Real blocking gaps are classified by severity here in step 6 and flow into the normal inline-comment selection (step 7b); the cross-cutting summary renders as the ### SDK plugin checklist block in the step 7a overview.
Print the overview below directly in chat. This is for the user — nothing is posted yet. After printing, pause for the selection step (7b). If the user pushes back on a finding, drop it before continuing.
Important: the user's local checkout may be on a different branch / different commit than the PR head. They cannot trust line numbers from their working tree. Every High/Medium finding MUST therefore include:
/tmp/pr-<num>-<file>.ts from step 6 verification, or via gh api repos/{owner}/{repo}/contents/{path}?ref={headRefOid}). 3-8 lines of context max — just enough to make the bug visible without the user opening the PR.https://github.com/tetherto/qvac/pull/<num>/files#diff-<sha256(path)>R<line>
Where <sha256(path)> is sha256(<path>) (lowercase hex, no trailing newline). The R<line> suffix anchors the right (post-change) side at that line; use L<line> for the left side.
Compute it in shell:
bash printf '%s' 'packages/sdk/foo.ts' | shasum -a 256 | awk '{print $1}'
Fallback when SHA256 isn't convenient: link to the blob at the head SHA — https://github.com/tetherto/qvac/blob/<headRefOid>/<path>#L<line> — also clickable and lands on the right line, but doesn't show the diff context. Prefer the diff anchor when you have it.
Do NOT use SHA1 of the path — that produces a hash GitHub no longer recognises and the anchor will silently fail to scroll.
Format:
`markdown## PR #<num> — review overview <1-line summary of what this PR does> ### Gitflow / Title / CI <one-line status, omit subsections that are clean> ### High-risk <numbered list — empty list is fine, write "none" explicitly> 1. **<short title>** — [`<path>:<line>`](<deep link>) <one-sentence explanation, with repro hint if relevant> ```ts <3-8 line excerpt from the PR head> ``` ### Medium-risk <numbered list — empty list is fine, write "none" explicitly> 1. **<short title>** — [`<path>:<line>`](<deep link>) <one-sentence explanation> ```ts <3-8 line excerpt from the PR head> ``` ### Low-risk (informational) <numbered list — omit the section entirely if there are no material lows> 1. **<short title>** — [`<path>:<line>`](<deep link>) <one-sentence note> ### Verified (no action) <optional: short bullets for things you specifically checked and cleared, only if the reviewer might otherwise wonder> ### SDK plugin checklist <only when step 6b triggered AND has gaps — omit entirely otherwise. Format per references/sdk-plugin-checklist.md "Output integration".> --- PR diff: <https://github.com/tetherto/qvac/pull/<num>/files>
Rules for what goes in each section:
The excerpts MUST come from files at the PR head SHA, never from the user's working tree.
<WORKTREE_PATH>/<path> (the worktree is checked out at the PR head SHA). Glob/Grep with the worktree path as the search root.--no-worktree: fetch with gh api repos/{owner}/{repo}/contents/{path}?ref=<headRefOid> (decode .content from base64) and Read from /tmp/.The excerpt's line numbers must match the line you're calling out.
Immediately after the overview, present a confirmation prompt. The defaults follow the severity tier rules (high+medium pre-selected, lows opt-in). The user can override any selection.
Use a structured multi-select question (one per finding) so the user clicks instead of typing. Format the prompt as:
For each finding, confirm whether it should be posted as an inline comment.
Defaults: High + Medium = include; Low = skip.Each finding becomes one option in a single multi-select question (id inline_picks, allow_multiple: true). Pre-select High + Medium by listing them as the recommended choices in the prompt text (the tool itself doesn't surface defaults, so spell them out: e.g. "Recommended: 1, 2, 3"). Lows are listed as additional options.
If the user is text-driven instead of clicking, accept replies like:
Echo back the final selected list before moving to step 8 so the user can object once more. Do NOT proceed to step 8 until you have an explicit confirmation. If the user picks "none", skip steps 8-12 and end the session.
blocker:, nit:, etc.) inside the comment body — severity is conveyed by which findings make it into the chat overview.Build the payload from the user-confirmed selection in step 7b only. Never include a finding the user did not opt into (especially Lows). If the confirmed set is empty, stop here — don't post an empty review.
Use the Write tool to create /tmp/pr-<num>-review.json:
json{ "commit_id": "<headRefOid>", "comments": [ { "path": "packages/<pkg>/src/foo.ts", "line": 42, "body": "comment text" } ] }
Omit the event field. The GitHub REST API only accepts APPROVE, REQUEST_CHANGES, or COMMENT; omitting it leaves the review in PENDING state, which is what this skill targets.
Line numbers must reference the post-PR file line numbers (the + side line numbers in the patch, mapped to the file at the PR head SHA). When in doubt, fetch the file at the head SHA via gh api repos/{owner}/{repo}/contents/{path}?ref={sha} and verify line numbers there before composing the payload.
Show the user:
markdown ### Preview — comment <n> of <total>
File: <path>:<line>
---
<verbatim comment body, rendered as Markdown>
---
If the comment body contains fenced code blocks, render them as fenced code blocks in the preview (not as escaped strings).
Show the exact gh api command but do NOT run it until the user says to proceed:
bashgh api repos/tetherto/qvac/pulls/<num>/reviews \ --method POST \ --input /tmp/pr-<num>-review.json
Run the command. If it fails, show the error and the JSON payload for debugging.
https://github.com/tetherto/qvac/pull/<num>#pullrequestreview-<review_id>references/sdk-plugin-checklist.md.github/teams/<pod>.json.cursor/rules/<pod>/.github/PULL_REQUEST_TEMPLATE/docs/gitflow.md| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 7,251 | 6,592 | -9% | 1 | 1 | 0% | 662 | 7,009 | +959% | 0 | 0 | — |
case-02 | fail→fail | 7,787 | 8,175 | +5% | 1 | 1 | 0% | 1,223 | 7,407 | +506% | 0 | 0 | — |
case-03 | fail→fail | 5,083 | 5,483 | +8% | 1 | 1 | 0% | 797 | 7,059 | +786% | 0 | 0 | — |
case-04 | fail→fail | 5,079 | 9,269 | +82% | 1 | 1 | 0% | 884 | 7,197 | +714% | 0 | 0 | — |
case-05 | pass→fail | 4,694 | 9,888 | +111% | 1 | 1 | 0% | 815 | 7,434 | +812% | 0 | 0 | — |
case-06 | pass→fail | 4,627 | 12,317 | +166% | 1 | 1 | 0% | 737 | 7,658 | +939% | 0 | 0 | — |
case-07 | fail→fail | 6,534 | 3,924 | -40% | 1 | 1 | 0% | 982 | 7,152 | +628% | 0 | 0 | — |
case-08 | fail→pass | 12,878 | 10,008 | -22% | 1 | 1 | 0% | 2,435 | 7,426 | +205% | 0 | 0 | — |
case-09 | fail→pass | 8,144 | 3,261 | -60% | 1 | 1 | 0% | 1,353 | 7,200 | +432% | 0 | 0 | — |
case-10 | pass→pass | 5,176 | 4,351 | -16% | 1 | 1 | 0% | 968 | 7,254 | +649% | 0 | 0 | — |
case-11 | fail→fail | 10,619 | 7,987 | -25% | 1 | 1 | 0% | 1,788 | 7,179 | +302% | 0 | 0 | — |
case-12 | pass→pass | 7,567 | 7,621 | +1% | 1 | 1 | 0% | 1,297 | 7,321 | +464% | 0 | 0 | — |
case-13 | fail→pass | 6,205 | 3,934 | -37% | 1 | 1 | 0% | 979 | 7,198 | +635% | 0 | 0 | — |
case-14 | pass→pass | 6,102 | 1,858 | -70% | 1 | 1 | 0% | 1,014 | 6,870 | +578% | 0 | 0 | — |
case-15 | fail→pass | 6,340 | 6,458 | +2% | 1 | 1 | 0% | 1,106 | 7,020 | +535% | 0 | 0 | — |
case-16 | pass→pass | 6,844 | 3,429 | -50% | 1 | 1 | 0% | 1,185 | 7,156 | +504% | 0 | 0 | — |
case-17 | fail→fail | 6,526 | 3,517 | -46% | 1 | 1 | 0% | 1,044 | 7,167 | +586% | 0 | 0 | — |
case-18 | fail→fail | 5,873 | 8,134 | +38% | 1 | 1 | 0% | 279 | 7,090 | +2441% | 0 | 0 | — |
case-19 | fail→fail | 8,447 | 5,943 | -30% | 1 | 1 | 0% | 1,407 | 7,427 | +428% | 0 | 0 | — |
case-20 | fail→pass | 7,918 | 2,022 | -74% | 1 | 1 | 0% | 1,500 | 6,926 | +362% | 0 | 0 | — |
case-21 | fail→pass | 6,933 | 3,606 | -48% | 1 | 1 | 0% | 1,099 | 7,162 | +552% | 0 | 0 | — |
case-22 | pass→pass | 2,771 | 1,727 | -38% | 1 | 1 | 0% | 518 | 6,845 | +1221% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 14 counted toward the lift figure. The other 8 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +18 percentage points is the difference between those two pass rates over the 14 comparable cases. 2 cases got worse with the skill loaded, and they are included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.