agentleFS
JQ-WCodingJQ-WCoding/devkit/skills/peer-review/SKILL.md

peer-review

Skill1 starsChanged 11 days agoMITView on GitHub

Review teammates' commits on a shared branch since the last review, draft per-developer feedback and track findings. Use for "review teammates' commits on dev", "were last review's findings fixed". Not for your own diff or a PR/MR.

56 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use usfiscaldata, research-grants 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.
  • yf8578Skill

    usfiscaldata

    Query the U.S. Treasury Fiscal Data API for federal financial data including national debt, government spending, revenue, interest rates, exchange rates, and savings bonds. Access 54 datasets and 182 data tables with no API key required. Use when working with U.S. federal fiscal data, national debt tracking (Debt to the Penny), Daily Treasury Statements, Monthly Treasury Statements, Treasury securities auctions, interest rates on Treasury securities, foreign exchange rates, savings bonds, or any U.S. government financial statistics.

    Also in 7 projects that use this

  • garri333Skill

    research-grants

    Write competitive research proposals for NSF, NIH, DOE, DARPA, and Taiwan NSTC. Agency-specific formatting, review criteria, budget preparation, broader impacts, significance statements, innovation narratives, and compliance with submission requirements.

    Also in 12 projects that use this

  • garri333Skill

    research-lookup

    Look up current research information using Perplexity's Sonar Pro Search or Sonar Reasoning Pro models through OpenRouter. Automatically selects the best model based on query complexity. Search academic papers, recent studies, technical documentation, and general research information with citations.

    Also in 13 projects that use this

  • SoljournerSkill

    get-available-resources

    Enumerate installed packages, databases, and tools for engineering workflows

    Also in 10 projects that use this

  • ashrafkahoush-uxSkill

    what-if-oracle

    Run structured What-If scenario analysis with multi-branch possibility exploration. Use this skill when the user asks speculative questions like "what if...", "what would happen if...", "what are the possibilities", "explore scenarios", "scenario analysis", "possibility space", "what could go wrong", "best case / worst case", "risk analysis", "contingency planning", "strategic options", or any question about uncertain futures. Also trigger when the user faces a fork-in-the-road decision, wants to stress-test an idea, or needs to think through consequences before committing.

    Also in 7 projects that use this

  • +7 more from garri333

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 6 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 47 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If there is an "Open findings" section, do step 1-1 in recheck.md first.

    line 31
  2. Distinctive:

    If the fetch fails or the recorded SHA is not in the remote history, follow "On failure" in recheck.md.

    line 32
  3. Distinctive:

    If business meaning is unclear from code alone (quantity basis, status flow), do not guess.

    line 38
  4. Very specific:

    Do not run paid cloud reviews (/code-review ultra etc.) unless the user asks.

    line 39
  5. Distinctive:

    Before reporting an item a subagent rated high, read the code and call path yourself and confirm it holds.

    line 43
  6. Very specific:

    Must-fix: item | label | A·B·C answers (with the C count) | file:line and scenario.

    line 76
  7. Distinctive:

    Ask about guessed items ("could you check …").

    line 87
  8. Distinctive:

    No AI attribution in the messages.

    line 89
  9. Very specific:

    Write the accepted items to a JSON list in the scratchpad (author, commit, file as path:line, severity, label, summary — one line) and add …

    line 95

“Common” is measured: kept by at least 6 in 10 of the 47 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

Peer review of a shared branch

Review other developers' commits on the shared remote branch and draft feedback per developer. Feedback stays as drafts in chat; do not post it to the Git host, messengers or trackers. Code changes, commits and DB writes are out of scope; if the user then asks to fix something, do that as separate work.

Rule sources are the repo's docs/rules/ (and CLAUDE.md). Do not copy rules into the config or the report; read the sources each time.

Files: config .devkit/peer-review/config.json, state .devkit/peer-review/state.json (both local). If Git would track them (git check-ignore -q .devkit/ fails), add .devkit/ to .git/info/exclude and say so.

0. Config (first time only)

If the config is missing, build it per config.md from docs/rules/git.md and the top-level layout. Show it with the source line for each rule, 🛑 get approval, then write it. If the repo has no commit rules, say only the generic checks will run and ask whether to proceed. When the rules change later, update the config the same way.

1. Collect targets (run)

From the repo, passing through only the options below. An author name is not a script option: run without it, review only that developer's groups, and do not record the position in step 6.

python3 -I "${CLAUDE_PLUGIN_ROOT}/skills/peer-review/scripts/collect_commits.py" [--base <SHA>] [--days N] [--include-self]
  • It fetches the branch and lists commits after the last reviewed SHA in the state file (no record → last 7 days; --days changes only that fallback, --base overrides the record). Your own commits (git config user.name) and merge commits are excluded from review.
  • Output: commits per developer with format warnings (⚠️). Warnings starting with judgment: are conventions the rules do not state — pass them on as "needs checking", never as violations.
  • Merge commits are for reference. Judge them only against the merge rules in git.md.
  • Note the remote SHA on the first line; step 6 records it.
  • If there is an "Open findings" section, do step 1-1 in recheck.md first. With no commits and no open findings, say so and stop.
  • If the fetch fails or the recorded SHA is not in the remote history, follow "On failure" in recheck.md.

2. Split the content review

  • Group by developer × area (areas from the output). Delegate a group over 100 changed lines (+ and −) to a general-purpose subagent; read small groups yourself with git show.
  • Launch the subagents in one message, at most 5. Write each brief from the reviewer brief template, filled from the config; keep all its prohibitions.
  • If business meaning is unclear from code alone (quantity basis, status flow), do not guess; report it as "needs checking".
  • Do not run paid cloud reviews (/code-review ultra etc.) unless the user asks.

3. Verify high-severity findings yourself

Before reporting an item a subagent rated high, read the code and call path yourself and confirm it holds. Label every item:

LabelMeaning
verifiedThe main session read the code path and confirmed it
agent-reportedFound by a subagent, not rechecked
guessedCannot be asserted without running it or checking data

Say so if you did not run or reproduce it against data. Drop items that do not hold.

3-1. Must-fix or optional

A review always finds something, so certainty is not importance. Ask three questions of each defect that holds:

#Question
ADoes data go wrong or get lost (wrong value, mismatch between systems, rows not saved, wrong status)?
BDoes the user not notice the failure (reported as success, swallowed exception, no alert)?
CDoes the trigger occur in real work and data? Where a read-only query tool on a non-production DB exists, count matching rows and state the count; otherwise say why it could not be checked.
  • Must-fix: (A or B) and C. Fix before release or before the feature goes live.
  • Optional: everything else (UX, display-only, no matching data). Note what would change the call.
  • Proposal: a commit the script marks 🔶 changed shared code its steward did not write. Report it apart from defects as "needs <steward>'s approval", whatever its quality.
  • Question, not must-fix: a finding that conflicts with a docs/rules/glossary.md term or premise row, or rests on a meaning or premise no repo file records (a legacy column meaning, how a site operates, intent stated only in a commit message). Report it as a yes/no question with both sides' evidence.
  • Severity says how bad it is if it happens; must-fix/optional says whether to act now. Report both.
  • A pre-existing pattern the commit only exposed stays in the report, but name the owner of that code rather than the commit author.

4. Report (chat, user's language)

Give file:line, the failure scenario and the rule, not long explanations. In order:

  1. One-line conclusion: rule compliance, must-fix count, scope (period, commits, per developer)
  2. Earlier findings (if step 1-1 ran): ID | developer | fixed / not addressed | evidence
  3. Must-fix: item | label | A·B·C answers (with the C count) | file:line and scenario; proposals (🔶) on their own lines with the steward
  4. Optional: one line each, with what would make it must-fix
  5. Rule table: item | ✅/⚠️ | developer and evidence
  6. Per developer: 1–2 things done well + issues raised

5. Per-developer message drafts

One paste-ready message per developer, in the config's message_language and message_register (default: the docs/rules/ language, polite colleague tone).

  • Facts and scenario before criticism; include one line on something done well.
  • Order: must-fix (commit hash, file:line, scenario, one-line suggestion) → rule items → optional items marked "for reference". At most 5 items; summarize the rest as "n more in the full review".
  • Ask about guessed items ("could you check …"); do not assert them.
  • A developer with nothing to flag gets a short acknowledgement only.
  • No AI attribution in the messages.

6. Record position and findings

The user decides: ask which reported items to track (default: every must-fix and every rule ⚠️ the user did not dismiss; optional items only if picked). Then:

  1. Write the accepted items to a JSON list in the scratchpad (author, commit, file as path:line, severity, label, summary — one line) and add them.
  2. Close items found fixed in step 1-1, and those the user withdrew.
  3. Record the remote SHA from step 1 so the next review starts there. Do not record it if the range was changed with --base/--days or only one developer was reviewed; adding and closing findings is still fine.
S="${CLAUDE_PLUGIN_ROOT}/skills/peer-review/scripts/collect_commits.py"
python3 -I "$S" --no-fetch --findings-add <scratchpad>/findings.json
python3 -I "$S" --no-fetch --close F3 F5                     # fixed
python3 -I "$S" --no-fetch --close F4 --reason withdrawn
python3 -I "$S" --no-fetch --mark <remote SHA>

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.