agentleFS
namlifurkannamlifurkan/claude-code-reviewer/skills/example/skill.md

example

Skill1 starsChanged 3 months agoMITView on GitHub

Review GitHub PRs with inline line-based comments categorized by severity (P0/P1/P2/P3)

5 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions5 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 5

    1. ivan-magda/swift-coding-agent★ 183same name
    2. T4mako/nano-claude-code★ 4same name
    3. juunzzi/causeway★ 1same name
    4. parvazai9717-hash/Claude-code★ 1same name
    5. steph-frtech/cdesign-expo★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository3 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    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 the diff exceeds 500 lines, do NOT try to review everything at once:

    line 25
  2. Distinctive:

    Liskov Substitution: Do overridden methods change expected behavior?

    line 44
  3. Distinctive:

    Only flag SOLID violations when they introduce real risk — not theoretical purity.

    line 48
  4. Very specific:

    Only P1-P3 findings → "event": "COMMENT"

    line 99
  5. Very specific:

    No findings → "event": "APPROVE" with body "LGTM"

    line 100
  6. Very specific:

    ONLY leave comments for issues/bugs/concerns: No positive or praise comments.

    line 104
  7. Distinctive:

    Add your project-specific context here

    line 116
  8. Distinctive:

    After submitting, summarize findings:

    line 124

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

PR Review

You are tasked with reviewing a GitHub Pull Request on the {{GITHUB_REPO}} repository and leaving inline line-based comments directly on the diff.

Input

User will provide a PR number.

Process

1. Gather PR Information

gh pr view <PR_NUMBER> --repo {{GITHUB_REPO}} --json title,body,state,author,baseRefName,headRefName,files,additions,deletions
gh pr diff <PR_NUMBER> --repo {{GITHUB_REPO}}
gh api repos/{{GITHUB_REPO}}/pulls/<PR_NUMBER> --jq '.head.sha'

2. Large Diff Strategy

If the diff exceeds 500 lines, do NOT try to review everything at once:

  1. First run gh pr diff <PR_NUMBER> --repo {{GITHUB_REPO}} | diffstat to get a file summary
  2. Group files by module/directory
  3. Review each module group separately
  4. Prioritize by risk: core logic > data layer > API surface > tests > config

3. Analyze the Diff

Review ALL changed files through these lenses:

A. Bugs & Logic Errors

  • Missing edge cases or null checks
  • Behavioral changes that may break existing functionality
  • Type mismatches or incorrect casts
  • Off-by-one errors, wrong comparison operators

B. SOLID Principles

  • Single Responsibility: Does a class/method do too many things?
  • Open/Closed: Are changes modifying existing code where extension would be safer?
  • Liskov Substitution: Do overridden methods change expected behavior?
  • Interface Segregation: Are interfaces bloated with unused methods?
  • Dependency Inversion: Are concrete classes used where abstractions should be?

Only flag SOLID violations when they introduce real risk — not theoretical purity.

C. Removal Candidates

  • Unused imports, variables, methods added in this PR
  • Dead code behind impossible conditions
  • Redundant checks where the type system already guarantees safety
  • Categorize as: "safe to delete now" vs "defer with follow-up"

D. Security & Reliability

  • Injection attacks (SQL, command, XSS)
  • Authorization/authentication gaps
  • Secret leakage (hardcoded keys, credentials)
  • Race conditions (check-then-act without locking)
  • Unsafe deserialization
  • Missing input validation at system boundaries

E. Performance

  • N+1 query problems
  • Unbounded queries or loops
  • Missing pagination
  • Heavy operations inside loops
  • Missing cache invalidation

4. Categorize Findings by Severity

  • 🔴 P0 (Critical): Security vulnerabilities, data loss risk, production-breaking bugs — must block merge
  • 🟠 P1 (High): Logic errors, SOLID violations with real impact, performance regressions
  • 🟡 P2 (Medium): Code smells, missing coverage, maintainability concerns — fix now or create follow-up
  • 🟢 P3 (Low): Style, naming, minor inconsistencies — optional, nice to fix

5. Submit Review with Inline Comments

cat <<'JSONEOF' | gh api repos/{{GITHUB_REPO}}/pulls/<PR_NUMBER>/reviews --method POST --input -
{
  "commit_id": "<COMMIT_SHA>",
  "event": "COMMENT",
  "body": "<Summary: X P0, Y P1, Z P2, W P3. Overall: BLOCK/APPROVE WITH COMMENTS/APPROVE>",
  "comments": [
    {
      "path": "path/to/file",
      "line": <LINE_NUMBER_IN_NEW_FILE>,
      "body": "🔴 **[P0]** Description of the issue."
    }
  ]
}
JSONEOF

Review event logic:

  • Any P0 finding → "event": "REQUEST_CHANGES"
  • Only P1-P3 findings → "event": "COMMENT"
  • No findings → "event": "APPROVE" with body "LGTM"

Rules

  1. ONLY leave comments for issues/bugs/concerns. No positive or praise comments. No noise.
  2. Every comment MUST have a severity prefix: 🔴 **[P0]**, 🟠 **[P1]**, 🟡 **[P2]**, or 🟢 **[P3]**.
  3. Comments must be on diff lines only. The line field refers to the line number in the NEW version of the file.
  4. Be concise and actionable. State the problem and suggest a fix.
  5. Write all review comments in {{REVIEW_LANGUAGE}}.
  6. Do NOT comment on deleted files.
  7. Respect the comment limit and minimum severity from the Noise Control section below (injected at runtime from config). Prioritize by severity, mention omitted count in review body.

Project Context

<!-- CUSTOMIZE THIS SECTION FOR YOUR PROJECT -->
  • Add your project-specific context here
  • Framework, language, patterns used
  • Architecture decisions reviewers should know about
  • Common pitfalls specific to your codebase
  • Known bug patterns to watch for

Output

After submitting, summarize findings:

  • Count per severity (e.g., "1 P0, 2 P1, 3 P2, 1 P3")
  • Overall verdict: BLOCK / APPROVE WITH COMMENTS / APPROVE
  • Brief one-liner per comment

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.