agentleFS
UsermuseUsermuse/em-plugin/skills/review-pr/SKILL.md

review-pr

Skill0 starsChanged 3 months agoMITView on GitHub

Review a pull request against three things at once: code quality, the spec it was meant to satisfy, and the actual customer asks behind it — calling out where the diff diverges from what customers literally requested. Use when the user asks to 'review this PR', 'review the diff', 'check this PR against the spec', or wants a customer-voice-aware code review. Trigger terms: review this PR, review the diff, PR review, check against the spec, does this match what customers asked. Defer to a dedicated code-review tool if the user names one and only wants code quality.

185 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use diagnose-ci-failures, docs-loop 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.
  • zerx-labSkill

    diagnose-ci-failures

    Diagnose CI failures for a PR using the GitHub CLI, extract error logs, and generate a plan to fix them. Use when the user asks to check CI status, pull CI issues, triage test failures, or investigate PR build failures.

    Also in 3 projects that use this

  • GeiserXSkill

    docs-loop

    Use when the user asks to audit docs, check documentation for stale claims, or verify docs against the code.

    Also in 3 projects that use this

  • GeiserXSkill

    full-loop

    Drive a repository to done with sergio-loop, then keep improving it with refine-loop at a descending theta. Use only when the user explicitly invokes full-loop.

    Also in 3 projects that use this

  • n24q02mSkill

    review-delta

    Review only changes since last commit using impact analysis. Token-efficient delta review with automatic blast-radius detection.

    Also in 3 projects that use this

  • n24q02mSkill

    build-graph

    Build or update the code review knowledge graph. Run this first to initialize, or let hooks keep it updated automatically.

    Also in 3 projects that use this

  • +7 more from GeiserX

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 178 edited versions we read keep these.

  • 3

    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:

    Use gh pr view <n> / gh pr diff <n> (or the current branch's diff).

    line 27
  2. Distinctive:

    If you still have no diff, ask the user to paste it.

    line 28
  3. Distinctive:

    Run the required grounding batch (see Evermuse Grounding below) scoped to this feature area, so you know what customers literally requested …

    line 37
  4. Distinctive:

    Required — one parallel batch of searches: Verify the product (Rule 1), then fire in a single parallel batch:

    line 54

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

Review a PR (against code, spec, and customer voice)

A normal review asks "is the code good?" This one also asks "does it build what was specified?" and — uniquely — "does it match what customers actually asked for?" That third pass catches the gaps other reviews miss: the export that works but drops the header row a customer explicitly needed.

Step 0 — Relevance & availability

Confirm this is a customer-facing PR and Evermuse is available. If the user only wants code-quality feedback (or names a dedicated reviewer), do that and skip the customer lens.

Fetch the PR

Use gh pr view <n> / gh pr diff <n> (or the current branch's diff). If you still have no diff, ask the user to paste it.

Find the intent

What was this PR supposed to do?

  1. Shaping notes carry branch and PR number fields — get_shaping_notes and match on the PR/branch, then read_shaping_note for the intent and its citations.
  2. Else a local specs/<feature>/spec.md.
  3. Else ask the user for the intended behavior in a sentence.

Ground in the customer's asks

Run the required grounding batch (see Evermuse Grounding below) scoped to this feature area, so you know what customers literally requested about this behavior. This is what powers Pass 3.

Three review passes

  1. Code quality — correctness, edge cases, error handling, security, tests, style/conventions. Standard, focused review; report only real issues.
  2. Spec conformance — does the diff satisfy each relevant FR-###? Note requirements that are unmet, partially met, or exceeded (scope creep).
  3. Customer-voice conformance — does the behavior match what customers asked for? Quote-vs-diff mismatches are the headline:

    Customer asked: "export with the header row, we paste into our template" 1. The diff writes rows without a header (export.ts:41). ❌ Mismatch.

Verdict

Lead with a clear recommendation — Approve / Approve with nits / Request changes — and the single most important reason. Then the three passes as sections. Keep code nits concise; make the customer-voice findings vivid and cited.

Save (optional)

Offer to save the review summary: add_source(nature: "guidance", source_type: "document", tags: ["evermuse-plugin","pr-review","pr-<n>"]).

Evermuse Grounding (required)

Follow ${CLAUDE_PLUGIN_ROOT}/skills/using-evermuse/SKILL.md.

Required — one parallel batch of searches. Verify the product (Rule 1), then fire in a single parallel batch:

  • 3–4 evidence searches, each worded from a different angle (limit up to 50). Evidence comes back rich and varied — expect large, useful result sets.
  • one guidance search and one context search (limit up to 50). These are usually sparse or empty; run them anyway and note when they're thin.

Read each response's digest — it reports how many more results exist. Use judgment on whether a query is worth pulling deeper (raise limit toward the 100 max and/or page with next_offset to avoid repeats), weighing payload size, remaining context, task complexity, and the value of the data. For deep pulls, consider spawning sub-agents — instruct them to return every citation with the same metadata the tools return (url, who_said_it, meeting_name, created_at) so you can still cite.

Optional — considered use. Once grounded, reach for the other tools only when they add value: a quote-angled search for verbatim voice, read_source for a single deep dive, inline citations (references/citations.md), and add_source to save the deliverable. Sources, citations, and saving are optional — not required.


Further reading

  • Customer-voice review is unique to the Evermuse plugin; see using-evermuse.

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.

Reviews can't be read right now.

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.