agentleFS
rkalievrkaliev/eng-kit/skills/requesting-code-review/SKILL.md

requesting-code-review

Skill1 starsChanged 13 days agoMITView on GitHub

Use when a task, feature or bugfix is implemented and verified, before merging or opening a PR, or when a user asks for a review of changes

188 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use chinese-git-workflow, chinese-code-review and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Leodorareluctant259Skill

    chinese-git-workflow

    适配国内 Git 平台和团队习惯的工作流规范——Gitee、Coding、极狐 GitLab 全覆盖

    Also in 9 projects that use this

  • Leodorareluctant259Skill

    chinese-code-review

    中文代码审查规范——在保持专业严谨的同时,用符合国内团队文化的方式给出有效反馈

    Also in 8 projects that use this

  • obraSkill

    diagnosing-superpowers

    Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.

    Also in 22 projects that use this

  • math-incSkill

    heartmula

    Set up and run HeartMuLa, the open-source music generation model family (Suno-like). Generates full songs from lyrics + tags with multilingual support.

    Also in 9 projects that use this

  • Tommy-ywSkill

    webhook-subscriptions

    Create and manage webhook subscriptions for event-driven agent activation, or for direct push notifications (zero LLM cost). Use when the user wants external services to trigger agent runs OR push notifications to chats.

    Also in 5 projects that use this

  • math-incSkill

    findmy

    Track Apple devices and AirTags via FindMy.app on macOS using AppleScript and screen capture.

    Also in 15 projects that use this

  • +3 more from Leodorareluctant259
  • +2 more from math-inc

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 175 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Required: after finishing a plan (whole branch), before merge or PR, and after each task in subagent-per-task execution.

    line 13
  2. Distinctive:

    Useful: when stuck, before a risky refactor, and after a tricky bug fix.

    line 14
  3. Distinctive:

    If delegation is unavailable: do the review yourself in a *separate pass*.

    line 23
  4. Distinctive:

    Read-only: never modify the working tree or move HEAD.

    line 37
  5. Very specific:

    Every finding gives file:line, the trigger conditions, the consequence, the evidence, and the fix.

    line 38
  6. Distinctive:

    If there are no findings, say so, with the scope covered and its limits.

    line 44

“Common” is measured: kept by at least 6 in 10 of the 175 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Requesting code review

A review in a fresh context catches what the author's context hides. The reviewer gets precisely crafted inputs, never your session history.

When

  • Required: after finishing a plan (whole branch), before merge or PR, and after each task in subagent-per-task execution.
  • Useful: when stuck, before a risky refactor, and after a tricky bug fix.

How

  1. Fix the range: RULES_BASE=$(git merge-base origin/<base-branch> HEAD) (<base-branch> without a remote), BASE=$RULES_BASE and HEAD=$(git rev-parse HEAD). The range must start on the remote base: the gate counts a review only when its range reaches it, directly or through earlier rounds. For a repeat round after fixes, BASE is the newest reviewed commit (the previous round's HEAD): only the new commits are reviewed, and the reviewer reads that round's findings from the gate's store itself. A round can't skip a newer reviewed commit, and a rewritten history means a full review from the merge-base. Commit or stash first so the review is of a known state. Include untracked files you created.
  2. Fill reviewer-prompt.md with: what was built, the requirements (the task file path or the request, numbered criteria; once the task file is removed, its path at its last commit, git show <sha>:docs/tasks/…), the range ({RULES_BASE}, {BASE}, {HEAD}, and {REMOTE_BASE} = origin/<base-branch>), the round {ROUND} and {PREVIOUS_HEAD} (see the gate reference) (Full from the merge-base; Prose when the last round said Yes and only prose changed since, as the prompt lists; else Repeat), the verification commands, the plan's Review focus if it has one, {SKILL_DIR} = this skill's absolute directory and {KIT_ROOT} = the "Kit root" from the session context (a project install: the absolute path of .claude/eng-kit). Don't paste earlier findings: the reviewer runs review-log.
  3. Dispatch:
    • Default: dispatch the kit's reviewer agent (read-only, on the most capable model) with the filled prompt.
    • Required for risk-floor changes (money, auth, permissions, secrets, schema, CI or release config, deploy config): a second reviewer in parallel, in the same message, with its own finding prefix (S), whose Review focus is security (security-review's method). For other large diffs, 2–3 reviewers with different focuses and finding prefixes (as the prompt lists) are optional. Merge their findings: one finding per root cause, and where two reviewers flag the same file:line, keep the higher severity. The merged verdict is the worst one.
    • If delegation is unavailable: do the review yourself in a separate pass. Re-read the requirements, then walk the diff file by file with the checklist. Don't rely on your memory of writing it.
  4. Act on the findings with receiving-code-review:
    • fix Critical before anything else;
    • fix Important before proceeding;
    • log Minor (after a Yes, in Follow-ups, not a new commit);
    • push back with evidence when the reviewer is wrong. Re-review the fixes (scoped to the new range). When rounds don't converge, stop as receiving-code-review says.

Review gate

The guard denies a PR/MR, a merge into the base branch, a push to it and a push to the branch of a PR you opened unless the kit reviewer's verdict is Yes for exactly the commit being landed, and its range reaches the remote base (directly or through earlier rounds). Any change after the review needs a new one. The hook records the verdict and the report from the reviewer's own lines; you never write them. The reviewer's shell runs only inspection commands. Land in a command of its own. The rules (why any change needs a new review, how parallel verdicts combine, the waiver) are in references/review-gate.md.

Reviewer rules (they are in the prompt too)

  • Read-only: never modify the working tree or move HEAD.
  • Every finding gives file:line, the trigger conditions, the consequence, the evidence, and the fix. Missing information becomes a Question that says what the answer would establish.
  • A failing check is compared against the base revision before it is blamed on the change. No required check is waived silently.
  • Separate Confirmed (reproduced or visible in code) from Assumptions (worth checking, not proven).
  • Map every numbered criterion to done / not done / not visible in the code.
  • Flag scope creep: changes the task didn't ask for.
  • Severity reflects the effect on a real user, not the reviewer's taste. A visible performance regression is Critical. The fixed severities at the top of the checklist (secrets, placeholder code, suppressed errors, weakened tests…) are not negotiable.
  • If there are no findings, say so, with the scope covered and its limits. An AI review informs human approval; it never replaces it.

The checklist is in references/checklist.md. Load the sections that match the diff (payments, UI, DB, and so on). The platform and domain skills (web-frontend, mobile-development, desktop-development, payments-and-money, pos-systems, security-review) add their own review points.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.