agentleFS
redhat-developerredhat-developer/rhdh-skills/skills/plugins/rhdh-pr-review/SKILL.md

rhdh-pr-review

Skill20 starsChanged 20 days agoApache-2.0View on GitHub

Reviews Red Hat Developer Hub pull request code on GitHub in rhdh, rhdh-operator, rhdh-plugins, or community-plugins. Use for a GitHub PR URL or number, "review this PR", analysis-only review, or posting inline comments. For label and merge-readiness triage of the overlay PR backlog, use /rhdh-overlay.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    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:

    Keep forge I/O at the edges: fetch produces the PR context, analysis works from that context and checked-out code alone, and posting sends …

    line 14
  2. Very specific:

    Every /code-review run also dispatches Adversarial.

    line 33
  3. Distinctive:

    Every stage passes its result to the next in conversation.

    line 50

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

RHDH Pull Request Review

Keep forge I/O at the edges: fetch produces the PR context, analysis works from that context and checked-out code alone, and posting sends only findings already verified against the head SHA.

Route by outcome

OutcomeWorkflow sequence
Code review and postworkflows/fetch-github.md → workflows/review-code.md → workflows/post-to-github.md
Analysis onlyworkflows/fetch-github.md → workflows/review-code.md; stop after the edited draft

A bare PR URL or number defaults to code review and post.

Review invariants

  • /code-review is required on every draft-review path, including analysis-only. If it is missing, stop, say that code-review is missing, name /setup-rhdh-skills install, and do not substitute a local two-axis review.
  • Every /code-review run also dispatches Adversarial. Team, worktree, and draft steps live in workflows/review-code.md.
  • Present the complete edited draft before stating any post operation. An explicit request to post is intent, not approval of the exact write.

Write gate

Fetch and analysis are read-only. Posting a GitHub review is an external write: invoke the named skill mutation-gate and follow the gate it owns rather than restating it here. Creating or removing a local git worktree is not that gate.

A review operation's target pins the head SHA. An earlier confirmation of findings approves no write. Report each outcome with the review URL, the verification done, and any recovery still owed.

What each stage carries forward

Every stage passes its result to the next in conversation. The field names are defined once, where they are produced:

StageResultDefined in
FetchPR context: repository, changeRequest, files, diff, linkedIssues, jiraKeys, existingComments, existingReviews, ciStatus, specSourceworkflows/fetch-github.md
AnalysisReview draft: changeRequest, summary, verdict, findings, edited, worktreePathworkflows/review-code.md

Completion

Complete when the report names the head SHA reviewed, has presented the /code-review Standards and Spec reports, and presents the edited draft. On the post route, also give the outcome of every approved write with its target.

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.