agentleFS
CloudflareKnown publishercloudflare/workerd/.opencode/skills/pr-review-guide/SKILL.md

pr-review-guide

Skill8.8k starsChanged 9 months agoApache-2.0View on GitHub

Guidelines for posting pull request review comments via GitHub CLI, including suggested edits format, handling unresolved comments, etiquette, and report/issue tracking. Load this skill when reviewing a PR via GitHub and posting inline comments.

1 other project uses a version of this.

Trending

Quiet since August.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 2 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 1 mentionSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the cloudflare/workerd repository that our weekly crawl found: only 12 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about cloudflare/workerd

The biggest 5 of 12 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 12

Talked about on GitHub, Bluesky and Hacker News (12 times).

On GitHub · 6

1 more on GitHub

On Hacker News · 2

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. About 0 are common, 15 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈15

    Distinctive · estimate

    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. Distinctive:

    When analyzing a PR diff, Always record exact file paths and line numbers for every finding as you go.

    line 10
  2. Distinctive:

    When the review is performed by a sub-agent, the agent's returned findings must include these fields per finding so the caller can post …

    line 15
  3. Distinctive:

    When asked to review a pull request, you may use the GitHub CLI tool to post inline comments on the PR with specific feedback for each …

    line 25
  4. Distinctive:

    When providing feedback on a pull request:

    line 29
  5. Distinctive:

    When the fix for an issue is obvious and localized (e.g., a typo, a missing annotation, a wrong type, a simple rename), include a GitHub …

    line 39
  6. Very specific:

    Do use them for: typos, missing override/[[nodiscard]]/constexpr, wrong types, simple renames, small bug fixes where the correct code is …

    line 51
  7. Distinctive:

    Do not: use them for: large refactors, design changes, cases where multiple valid fixes exist, or anything requiring context the author …

    line 52
  8. Distinctive:

    Keep suggestions minimal — change only the lines that need fixing.

    line 53
  9. Distinctive:

    When a suggestion spans multiple lines, include all affected lines in the block.

    line 54
  10. Distinctive:

    When reviewing a PR, always check prior review comments (from any reviewer) that have been marked as resolved.

    line 58
  11. Distinctive:

    Do not editorialize: No praise, no compliments on the approach, no filler like "nice fix!" or "solid solution." The review body and inline …

    line 74
  12. Distinctive:

    Do not spam the pull request with excessive comments.

    line 79
  13. Distinctive:

    Do not modify existing comments or feedback from other reviewers.

    line 82
  14. Distinctive:

    Always be respectful and constructive.

    line 85
  15. Distinctive:

    When reviewing PRs, be aware of CI jobs that are expected to fail for certain contributors:

    line 90
  16. Distinctive:

    Before attributing a CI failure to a code problem, check whether the PR author is an external contributor (not a Cloudflare org member).

    line 96

≈ “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

Load this skill when posting review comments on a GitHub pull request.

Line Number Tracking

When analyzing a PR diff, Always record exact file paths and line numbers for every finding as you go. Each finding must include the precise path and line (and start_line for multi-line ranges) in the new file (right side of the diff) needed to post a review comment. Do not defer line number resolution to a later step.

When the review is performed by a sub-agent, the agent's returned findings must include these fields per finding so the caller can post comments immediately:

  • path: file path relative to repo root
  • line: line number in the new file (end line for multi-line)
  • start_line (optional): start line for multi-line comments
  • body: the comment text, ready to post

Posting Review Comments

When asked to review a pull request, you may use the GitHub CLI tool to post inline comments on the PR with specific feedback for each issue you identify. You can suggest specific code changes in your comments. Always reference specific lines of code in your comments for clarity.

When providing feedback on a pull request:

  • Always focus on actionable insights that can help improve the code
  • Always be clear and concise in your comments; provide specific examples or references to the code to support your feedback. Avoid vague statements and instead provide concrete suggestions for improvement.
  • Always post comments on specific lines of code and never as a single monolithic comment

Suggested Edits

When the fix for an issue is obvious and localized (e.g., a typo, a missing annotation, a wrong type, a simple rename), include a GitHub suggested edit block in your review comment so the author can apply it with one click. Use this format:

```suggestion
corrected line(s) of code here
```

Guidelines for suggested edits:

  • Do use them for: typos, missing override/[[nodiscard]]/constexpr, wrong types, simple renames, small bug fixes where the correct code is unambiguous.
  • Do not use them for: large refactors, design changes, cases where multiple valid fixes exist, or anything requiring context the author should decide on.
  • Keep suggestions minimal — change only the lines that need fixing. Do not reformat surrounding code.
  • When a suggestion spans multiple lines, include all affected lines in the block.

Unresolved Review Comments

When reviewing a PR, always check prior review comments (from any reviewer) that have been marked as resolved. If the current code still exhibits the issue described in a resolved comment, flag it as a finding with a reference to the original comment. Use this format:

  • [HIGH] Previously flagged issue not addressed: {original comment summary}
    • Location: File and line references
    • Problem: Review comment by {author} was marked resolved but the underlying issue remains in the current code.
    • Evidence: Link to or quote the original comment, and show the current code that still has the issue.
    • Recommendation: Address the original feedback before merging.

Do not flag resolved comments where the concern has been legitimately addressed, even if addressed differently than the reviewer suggested.

Tone

  • Do not editorialize. No praise, no compliments on the approach, no filler like "nice fix!" or "solid solution." The review body and inline comments should contain only findings, questions, and actionable feedback. Let the findings speak for themselves.
  • The review body should be a concise summary of findings (a bulleted list is fine) plus the AI-generated disclaimer. Nothing else.

Etiquette

  • Do not spam the pull request with excessive comments. Focus on the most important issues and provide clear guidance on how to address them. If there are minor style issues, you can mention them but prioritize more significant architectural, performance, security, or correctness issues.
  • Do not modify existing comments or feedback from other reviewers. When issues are addressed and resolved, you can acknowledge the changes with a new comment but avoid editing or deleting previous comments to maintain a clear history of the review process.
  • Always be respectful and constructive. Always acknowledge that the code review comments are written by an AI assistant and may not be perfect.

CI Status Interpretation

When reviewing PRs, be aware of CI jobs that are expected to fail for certain contributors:

  • internal-build: Requires Cloudflare internal access. Always fails for external contributors — this is not indicative of a build or code problem. Do not flag CI failures from this job as issues on PRs from external contributors.

Before attributing a CI failure to a code problem, check whether the PR author is an external contributor (not a Cloudflare org member). If so, check whether the failing job is access-gated.

Tools

For interaction with GitHub, use the GitHub CLI (gh) tool or git as appropriate.

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.