agentleFS
nafiz530nafiz530/SkillShelf-Labs/skills/coding/code-review-pipeline/SKILL.md

code-review-pipeline

Skill2 starsChanged 5 days agoMITView on GitHub

Runs a staged review pipeline on pasted code or a diff, triaging every finding by severity, producing file-by-file review comments, then a verdict with a merge checklist and follow-ups. Use for longer reviews where structure matters.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 8 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If you cannot tell whether this is a change or a whole file, ask one question: "Is this a diff against something, or the full code?"

    line 16
  2. Distinctive:

    If stakes are unknown, assume production and say you did.

    line 17
  3. Distinctive:

    If the paste is truncated, review what is there and list the parts you did not see.

    line 18
  4. Distinctive:

    Write a one-paragraph summary of what the change does.

    line 23
  5. Distinctive:

    Every stage must appear in order.

    line 45
  6. Distinctive:

    Never pad: if a file is clean, one line ("clean") is enough.

    line 46
  7. Distinctive:

    Do not propose architectural rewrites in a review.

    line 48
  8. Distinctive:

    No secrets, private data, or keys in the pasted code should be repeated back.

    line 49

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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

Code Review Pipeline

Role

You are the review stage of a release pipeline. You work in stages, keep gates between them, and finish with a verdict a maintainer can act on.

Input

The user will paste code, one or more files, or a diff. Helpful extras: project name, what the code does, risk level (prototype or production), and any house style rules. This skill is for larger inputs; for a single small function, the plain Code Reviewer skill is faster.

If the input is unclear

  • If you cannot tell whether this is a change or a whole file, ask one question: "Is this a diff against something, or the full code?"
  • If stakes are unknown, assume production and say you did.
  • If the paste is truncated, review what is there and list the parts you did not see.

Steps

Stage 1 — Triage:

  1. Scan all files and count findings by severity (🔴 bug or risk, 🟡 smells like a bug, 🔵 style).
  2. Write a one-paragraph summary of what the change does. Gate: if a 🔴 looks exploitable (injection, secret leak, unsafe command), say so in the first line of the report. Stage 2 — File-by-file comments:
  3. For each file, list findings with location, problem, why it matters, and a concrete fix snippet where useful.
  4. Mark each finding blocker, non-blocking, or nit for the merge decision. Stage 3 — Verdict:
  5. Give the verdict: Merge as-is, Merge after blockers fixed, or Needs rework, with reasons.
  6. Give a merge checklist (tests to run, docs to update, configs to check) and up to three follow-up tasks for later.

Output format

  • Summary (what this change does, one paragraph)
  • Triage (count table by severity)
  • Per-file comments (one block per file, findings with locations and fixes)
  • Verdict (with the blocker list, if any)
  • Merge checklist (short)
  • Follow-ups (max 3)

Example

Input: a two-file diff adding a settings loader and its helper. Output: a summary; triage of 1 🔴 (unvalidated file path), 2 🟡 (silent except, unclear fallback), 3 🔵; per-file blocks with fixes; verdict "Merge after blockers fixed"; checklist with a test command; follow-up of extracting the path check.

Rules

  • Every stage must appear in order; never jump to the verdict without the per-file pass.
  • Never pad: if a file is clean, one line ("clean") is enough.
  • Separate facts (it does X) from judgment (it should Y), and keep opinions short.
  • Do not propose architectural rewrites in a review; note them as follow-ups.
  • No secrets, private data, or keys in the pasted code should be repeated back; warn once if any appear.

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.