Skip to content

Add a skill for drafting pending PR reviews - #1428

Merged
cvolkcvolk merged 10 commits into
mainfrom
cvolk/feature/draft-pr-review-skill
Oct 20, 2026
Merged

cvolkcvolk merged 10 commits into
mainfrom
cvolk/feature/draft-pr-review-skill

Conversation

@cvolkcvolk

@cvolkcvolk cvolkcvolk commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Add a draft-pr-review skill to turn review findings into a pending GitHub review, with comments attached to the relevant lines. The reviewer approves the text before it is added to GitHub and submits the review themselves.

Why this change?

Findings from a review done in chat together with an agent have to be copied into GitHub by hand. This can lose Markdown formatting, and line numbers can become outdated when the author pushes changes.

The review is still guided by a human. The skill makes it easier to transfer the findings and their context from the review session to GitHub, where the author and their agent can use them to address the feedback.

What changes?

The skill covers creating a pending review, adding comments to one already started, and editing its comments. It requires showing the exact summary and comments locally for approval before writing to GitHub.

Every summary and comment starts with _AI-drafted (<agent name>), reviewed by me._ so readers can see how it was drafted. The reviewer reads and edits the text before submitting it.

A Python script checks that comments refer to the current PR version and valid lines in the diff, include the attribution, and do not request immediate publication. The skill also explains how to preserve edits made in GitHub and avoid duplicating comments when retrying a failed request.

How to use it

Review the PR as you normally would, using your agent to investigate questions and discuss possible issues. Once you’ve decided which findings are worth raising, say: “Turn these findings into a pending review on PR #1234.” You can also invoke $draft-pr-review explicitly.

The agent shows you the proposed comments for approval, then adds them to GitHub as a pending review. Open the PR, make any final edits, and submit the review yourself. The skill transfers findings you’ve already discussed; it doesn’t perform the code review for you.

Validation

  • All ten tests pass. They cover comment locations, deleted lines, filenames with special characters, invalid review data, attribution, and changes to the PR during validation.
  • Pre-commit checks and the skill metadata check pass.
  • The script was checked against PR Add a skill for drafting pending PR reviews #1428 without posting a review.
  • Earlier manual checks on Unify placement sampling and replay #1427 confirmed that reviews stay pending when created, extended, and edited. Submitting a review remains a manual step.

Reviewers who gather findings with an agent currently copy and paste
them into GitHub by hand, which loses formatting and line anchors.

The skill turns those findings into a pending review: inline comments
on diff lines plus a summary, each starting with a short AI-drafted
note. Only the reviewer can see a pending review, and they edit and
submit it themselves. A read-only script checks the payload before it
is sent.

Signed-off-by: Clemens Volk <[email protected]>
Developer skills in the library don't carry an evaluations.md; only the
user-facing skills do.

Signed-off-by: Clemens Volk <[email protected]>
GitHub allows one pending review per user, so a second POST fails when
the reviewer has already started one. Document adding threads to it
with GraphQL addPullRequestReviewThread, and editing pending comments
with updatePullRequestReviewComment: the REST single-comment endpoints
return 404 for them. The validator now accepts a payload without a
review body for comments meant for an existing review.

Signed-off-by: Clemens Volk <[email protected]>
Comments that refer to code by name and file:line can be checked
without searching.

Signed-off-by: Clemens Volk <[email protected]>
One point per paragraph (current behavior, why it matters, suggestion)
makes longer review comments easier to read.

Signed-off-by: Clemens Volk <[email protected]>
@cvolkcvolk
cvolkcvolk marked this pull request as ready for review October 19, 2026 14:46
@greptile-apps

greptile-apps Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] Adds a new skill for drafting pending code reviews.

The PR appears safe to merge, with non-blocking fixes needed for attribution, pagination, and unusual diff content.

Findings

  1. P2 Agent attribution is missing ▶
  2. P2 Later comments go unchecked ▶
  3. P2 Invalid anchors pass validation ▶

Summary

Adds a developer skill for creating and updating pending GitHub reviews, plus a read-only payload validator and discovery alias.

  • Review findings can be prepared as a pending GitHub review for the reviewer to submit.
  • Comments can be added to or changed in a review that is already pending.
  • A read-only checker confirms review comments fit the current PR diff.

Reviews (1) · Last reviewed commit: "Fix pending review validation and edit g..." · Reviewed by Greptile

@cvolkcvolk cvolkcvolk left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sefl review

cvolkcvolk and others added 2 commits October 19, 2026 17:24
…ew.py

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@cvolkcvolk
cvolkcvolk enabled auto-merge (squash) October 20, 2026 17:16
@cvolkcvolk
cvolkcvolk merged commit dd7e335 into main Oct 20, 2026
20 of 22 checks passed
cvolkcvolk added a commit that referenced this pull request Oct 22, 2026
Merges these main pull requests:
- #1486 Call build_env_cfg in the seeding tests
- #1409 Add Newton gear insertion env with DROID teleoperation
- #1428 Add a skill for drafting pending PR reviews
- #1488 Disable CI GR00T E2E on Blackwell wo CUDA12.8
- #1457 Add observational predicate event tracking
- #1485 Clarify "normalize" and "plumbing" wording and add AGENTS.md guidance
- #1494 Remove RandomAroundSolution

The merge had no conflicts.

Signed-off-by: Clemens Volk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants