agentleFS
jerrycttjerryctt/peerbridge/skills/peer-review/SKILL.md

peer-review

Skill3 starsChanged 17 days agoMITView on GitHub

Ask the other vendor's coding agent (Codex when you are Claude, Claude when you are Codex) for a read-only code review of the current changes via the peerbridge MCP tools, then fix what it finds and re-review until clean. Use when the user says "peer review", "get a second opinion on my changes", "have codex/claude review this", "review my changes with codex/claude", "run codex/claude on my edits", "check my code with codex/claude", "do a codex/claude review", "start an edit-review loop", "review loop", or "cross-review".

47 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 11 projects that use this

  • garri333Skill

    arboreto

    Infer gene regulatory networks (GRNs) from gene expression data using scalable algorithms (GRNBoost2, GENIE3). Use when analyzing transcriptomics data (bulk RNA-seq, single-cell RNA-seq) to identify transcription factor-target gene relationships and regulatory interactions. Supports distributed computation for large-scale datasets.

    Also in 10 projects that use this

  • SoljournerSkill

    get-available-resources

    Enumerate installed packages, databases, and tools for engineering workflows

    Also in 10 projects that use this

  • +8 more from garri333

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 37 edited versions we read keep these.

  • 0

    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. Very specific:

    After fixing, call review_start again with the same parameters (a fresh job) and poll as in step 2.

    line 93

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

What this skill does

  1. Calls review_start with the project's host path. The server picks the peer agent automatically (the other vendor); only pass agent when the user names one explicitly ("have codex review it").
  2. Polls job_status with the returned job_id until it completes.
  3. Summarizes the findings, applies fixes with your own edit tools.
  4. Starts a new review to verify, and repeats until the review is clean.

The peer is strictly read-only: it can read files in the repo (and codex can run commands inside its own read-only sandbox), but it cannot edit. For a claude peer, peerbridge computes the diff with read-only git and hands it to the peer on stdin. All edits are yours.

Reviews run as background jobs because they often take several minutes — longer than an MCP client's per-tool-call limit. Each start/status call returns quickly, so the loop never hits that limit.

Critical: always use the HOST path

folder must be the absolute path on the user's machine, e.g. /Users/yourname/code/myproject. Never a sandbox path such as /sessions/.../mnt/myproject (the server rejects those). If unsure, ask: "What is the absolute path to this project on your machine?"

Steps

1. Start the review

review_start(folder="/Users/you/proj")

Options:

  • scope="base", base="main" — review the branch against main.
  • scope="commit", commit="<SHA>" — review one commit.
  • agent="codex" / agent="claude" — only when the user asked for a specific peer.
  • prompt="focus on error handling" — only when the user asked to narrow the review. Never restate the scope in the prompt.
  • model="opus" / effort="high" — only when the user asks for a specific model or for more/less depth ("deep review" → effort="high", "quick look" → effort="low"). effort is one of low, medium, high, xhigh, max. Omit both otherwise; config defaults apply.

The result contains job_id and agent. If there are no changes in scope, the peer says so in its verdict: tell the user and wait for more edits.

2. Poll

job_status(job_id="<job_id>")

Each call blocks up to ~50s and returns either the finished result or status: running. Keep polling with the same job_id; reviews take 1–10 minutes. Do not start a second review for the same folder while one is running (the server refuses and tells you the running job_id).

3. Read the verdict

The verdict is the text under --- Codex review --- or --- Claude review ---. Decide from that text, not the exit code (codex exits 0 even when the review lists problems). The result also carries conversation_id: <id>: to ask the reviewer about a finding, use chat_start(conversation_id="<id>") instead of starting a new review.

  • Concrete issues or risks → summarize as a numbered list, fix them with your edit tools, then go to step 4.
  • "No issues" / clean / approved → STOP and tell the user the review is clean.

A non-zero (<agent> exit N) with a --- <agent> stderr --- section means the peer CLI itself failed (not installed, not logged in, bad flag): report it as a tool error. A [<agent> was killed after the server-side timeout ...] marker means the server's timeout config is too low for this repo: suggest raising it, then restarting the host app (Claude Desktop / Codex) so the server reloads its config. The result holds only the verdict; the peer's live progress trace is in the host's MCP log (on Claude Desktop for macOS: ~/Library/Logs/Claude/mcp-server-peerbridge.log, while stream_output is on).

4. Re-review

After fixing, call review_start again with the same parameters (a fresh job) and poll as in step 2. Repeat from step 3 until clean.

Tips

  • The old tool names codex_review_start / codex_review_status still exist but are deprecated; prefer review_start / job_status.
  • [output truncated] means the diff is very large; suggest reviewing a single commit or a narrower scope.
  • Finished results stay retrievable via job_status for ~30 minutes.

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.