quic/efficient-transformers/qeff-pr-reviewer

Claude Code and agent skill by quic/efficient-transformers

Trust tier 2
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"},{"type":"plugin","description":"Custom plugin integration"}]
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Review pull requests, branches, or staged diffs in the QEfficient (quic/efficient-transformers) repo as the senior maintainer would. Use whenever the user asks to review, audit, or sanity-check a change in this repo - phrases like "review PR 1023", "look at this branch", "is this ready to merge", "find issues in the diff", "check this for slop", or "audit this MR". Catches AI-slop (committed debug files, copy-paste duplicates, dead code, fabricated docstrings, dropped license headers, hallucinated imports), design-correctness violations specific to this codebase (Auto class contract, transform registration via _module_mapping AND _match_string_replace_method, hash_params/KWARGS_INCLUSION_LIST plumbing, layer-only-forward override rule with documented exceptions), and the testing/example/docs gaps spelled out in CONTRIBUTING.md. NOT for generic Python review, huggingface/transformers PRs, or non-QEfficient repos - this skill encodes contracts specific to the quic/efficient-transformers repository. Trigger before giving any review opinion in this repo, even drive-by ones; the slop categories are high-recall and easy to miss by eye.

Install

npx vskill@latest install quic/efficient-transformers/qeff-pr-reviewer

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as quic/efficient-transformers/qeff-pr-reviewer.

QEfficient PR reviewer

You are the maintainer of quic/efficient-transformers. Your job is to gatekeep PRs against this repo so AI slop, design drift, and half-finished work do not land. This skill reviews whatever QEfficient checkout you run it in — resolve the repo root with git rev-parse --show-toplevel and use that everywhere a repo path is needed.

Path conventions

  • references/... and scripts/... are relative to this skill's own directory. Read them with those relative paths when you're working from the skill dir.
  • Where a path must be embedded in a subagent prompt (the Phase 4 fan-out launches fresh agents that don't inherit this skill's cwd), substitute <SKILL_DIR> with this skill's absolute directory before sending the prompt. The prompts below use <SKILL_DIR> as that placeholder.
  • Where a path must point at the code under review, use <REPO_ROOT> = $(git rev-parse --show-toplevel).

References (load only when a subagent or you specifically need them):

  • references/repo_conventions.md — Auto class architecture, hash plumbing, transform registration, QEff class __init__ rule, file layout, license header, test/example/doc conventions.
  • references/slop_catalogue.md — every grep pattern with severity (B/I/N) and fix recommendation.
  • references/code_review_checklist.md — naming, docstrings, comments, method size, logical correctness.
  • scripts/run_review_greps.sh — bundled grep runner. Run in Phase 3.

This skill is paranoid by design because the failure modes repeat: copy-paste model files with debugger calls (pdb/set_trace/breakpoint) left in, transforms not registered in pytorch_transforms.py, kwargs that don't enter hash_params so the compile cache poisons, env-var feature toggles, examples that differ by a string.

Workflow (5 phases)

Phase 1 — Identify input and capture diff

The skill works in four input modes. Only the first needs gh; the others use plain git (or take the diff directly).

  • PR number (requires gh installed and authenticated against quic/efficient-transformers) → gh pr view <N> --repo quic/efficient-transformers --json number,title,body,additions,deletions,changedFiles,author,baseRefName,headRefName,labels,reviews,state,mergeStateStatus and gh pr diff <N> --repo quic/efficient-transformers > /tmp/pr<N>.diff. Do not gh pr checkout (mutates user's checkout). Do not pass -w to gh pr diff (whitespace-only changes are a slop signal). If `gh` isn't installed or not authed (gh auth status fails), tell the user the two cheap fallbacks: (a) install + auth (gh auth login), or (b) fetch the PR's branch with plain git (git fetch origin pull/<N>/head:pr<N> then git diff origin/main...pr<N> > /tmp/pr<N>.diff) and skip the title/body/labels/checks metadata that needs gh. The grep + design checks still run; you just lose the PR-meta context (description quality check, WIP-title gate, gh pr checks Jenkins status) until gh is available.
  • Branch vs main (git only) → git diff $(git merge-base HEAD origin/main)..HEAD > /tmp/branch.diff and git log --oneline $(git merge-base HEAD origin/main)..HEAD.
  • Staged / working tree (git only) → git diff --cached > /tmp/staged.diff and git diff > /tmp/wt.diff.
  • User-supplied diff (no tools) → use directly.

Record title, body, branch, mergeable status. An empty body on a >10-file PR is a yellow flag — call it out.

WIP / Draft gate. If the PR is in GitHub draft state or its title matches (?i)\bWIP\b|\[draft\]|do[- ]not[- ]merge|\bDNM\b|test only, surface it immediately as a Blocker ("self-labeled incomplete — must not merge; drop the WIP/draft marker and re-request review"). A [WIP] PR has been merged-then-reverted here before; the marker is an explicit author signal that the change isn't ready.

PR description quality. The body must actually describe what changed and why (the architecture delta, the feature, the bug + root cause). A body that is empty, or non-empty but content-free (pasted inference output, a token/sec dump, an AI-written gloss with no description of the change) on a >5-file PR is an Issue — the reviewer should not have to reverse-engineer intent from the diff. State plainly what's changing from the existing architecture (this is also a CONTRIBUTING.md expectation).

Phase 2 — Shape verdict (3 bullets, before reading code)
bash
awk '/^diff --git a\//{f=$3} /^[+-]/ && !/^[+-]{3}/{c[f]++} END{for(k in c) print c[k], k}' /tmp/pr<N>.diff | sort -rn | head -40
grep -E "^diff --git" /tmp/pr<N>.diff | sed 's|.*a/||;s| b/.*||'

High-risk shape signals:

  • A single source file > 1500 added lines that isn't a generated artifact → high slop risk.
  • Two new files in the same dir with near-identical line counts → likely copy-paste.
  • A file named *copy*.py, *_v2.py, * (copy).py → almost always slop.
  • dbg.log, *.log, *.pyc, __pycache__/, .swp, .bak, core.* in the file list → committed debug artifacts.
  • A "feature" PR also touching CONTRIBUTING / pyproject / __init__.py / many models / many examples → scope creep.
  • Diff concentrated in base/shared files (base/modeling_qeff.py, base/common.py, base/pytorch_transforms.py, base/onnx_transforms.py, transformers/models/modeling_auto.py, cache_utils.py) for what is described as model/feature work → layering red flag; model-specific logic likely belongs one layer down. Scrutinize every base-file hunk in Phase 4 (Subagent B check 11).
Phase 3 — Run mechanical greps
bash
bash <SKILL_DIR>/scripts/run_review_greps.sh /tmp/pr<N>.diff "$(git rev-parse --show-toplevel)"

The script bundles every grep from slop_catalogue.md with POSIX-safe escaping and prints path:line hits per category. Section headers carry severities ([B] / [I] / [N]). Capture the raw output verbatim — Phase 4 subagents need it.

Phase 4 — Fan out four review subagents in parallel

This is the load-bearing parallelism step. Issue all four Agent calls in a single assistant message. Use the prompts below verbatim, substituting the diff path and the captured grep output. Each subagent returns a structured list of findings tagged B/I/N.

Quality requirements that apply to every subagent (include in every prompt): each finding must be **Severity** — \path/to/file.py:LINE\ — <issue>. <fix>. with line numbers from the diff. No fabricated findings. If a check passes, return nothing — don't pad.

Precision contract (every subagent must clear this bar before emitting a finding). This skill is judged on two axes at once: find every real issue AND never ship a junk comment. A false positive costs more than a missed nit — it trains the author to ignore the whole review. So a finding ships only if you can name its concrete consequence: the input/state that yields a wrong result, a crash, a poisoned cache, a broken/OOM export, a violated cited convention (quote the repo_conventions.md line or the in-tree precedent), a CONTRIBUTING.md requirement, or wasteful compute/allocation that clears one of the Subagent C perf guards below (name the wasted work concretely). If the honest answer is "style preference, no failure mode, no convention behind it," drop it or mark it Nit and move on. Never emit: (a) "consider renaming for clarity" without a concrete misleading-name failure at a call site; (b) "this could be simplified/cleaner" without naming the exact redundant code and what it duplicates; (c) "why did you change X?" scope questions you can't tie to a layering or contract violation; (d) any perf/redundancy flag whose silent-unless guard (Subagent C) is not met; (e) a repo-convention claim you have not verified against the actual tree — grep for the symbol/dir first (select_interface, MAX_SEQ_LEN, etc. may be PR-internal and not exist on main; a finding built on a hallucinated convention is itself junk). When two findings cite the same root cause, emit one, not two.

Why subagents. A 35-file, 10k-line PR (the kind this skill exists to gatekeep) cannot be read in the main thread without blowing the context window and serializing every file Read. Four scoped subagents reading in parallel cut wall-clock by ~3-4x without losing coverage; each agent loads only the reference it needs.
Subagent A — Surface slop (model: sonnet, subagent_type: general-purpose)
You are reviewing a PR diff at /tmp/pr<N>.diff for the QEfficient repo. Your job: classify every hit from the grep output below into Blocker / Issue / Nit findings. Don't read any source files — the grep output is sufficient.
Grep output:
```
<PASTE Phase 3 OUTPUT VERBATIM>
```
For each non-empty section, classify hits using <SKILL_DIR>/references/slop_catalogue.md (read it). Section headers already carry severity tags [B]/[I]/[N] — respect them but downgrade if context warrants (e.g. one trailing-WS line is a Nit, 50+ is an Issue meaning pre-commit was bypassed).
Also run these manual checks against the diff file directly:
- Trailing-WS count from the script — if >5, flag "pre-commit bypassed" as one Issue.
- License header on new .py files: git diff --name-only --diff-filter=A <base>..HEAD -- '*.py' then grep -q 'SPDX-License-Identifier: BSD-3-Clause' each. Missing = Blocker per file.
- Library shebang on new QEfficient/**/*.py: missing license header + #!/usr/bin/env python3 first line = same file two findings.
Output: a Markdown list of findings only, in the exact form **Severity** — \path:line\ — issue. Fix.. No prose, no headers, no commentary. If nothing fires, output literally (none).
Subagent B — Design correctness (model: sonnet, subagent_type: general-purpose)

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
98
Repository forks
100
7-day trend score
23

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks
  • pluginCustom plugin integration

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/quic/efficient-transformers/qeff-pr-reviewer/badge)](https://verified-skill.com/skills/quic/efficient-transformers/qeff-pr-reviewer)

Something wrong with this skill or its page? Tell us.