Add post-pr-review skill: gated publishing of staged PR reviews (v1.0.0) - #11
Merged
Conversation
Companion to reviewing-pull-requests: publishes a staged review (~/pr_reviews/pr<N>_review.md) to the GitHub PR via gh, fail-closed behind four gates -- review file exists, staleness (review head must match live PR head), decision-to-event mapping (red=request-changes, yellow=comment, green=approve; never upgraded implicitly), and a duplicate check against existing PR comments/reviews. Body is posted verbatim; overrides (--force-stale, --allow-duplicate) must be explicit. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…v1.0.1) The review-draft directory is per-user scratch space, not shared state: default ~/pr_reviews, overridable via PR_REVIEW_DIR. New 'Why a local draft at all' section makes the design explicit -- everything durable is GitHub-to-GitHub (the posted review is the canonical record; re-reviews read from the PR); the local file exists only so a human can edit the draft before anything becomes visible on the PR, and is disposable after posting. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
rlcee
approved these changes
Aug 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New skill:
post-pr-review— the publishing companion toreviewing-pull-requests. That skill stages a review as a markdown file (~/pr_reviews/pr<N>_review.md); this one posts it to the GitHub PR viagh pr review, fail-closed behind four gates:reviewing-pull-requests' job.<sha>") must match the live PR head, else stop and recommend re-review (--force-staleto override, with the body edited to say which head was reviewed).ghevent: 🔴 →--request-changes, 🟡 →--comment, 🟢 →--approve. The event is never upgraded implicitly; an explicit argument is required to deviate.--allow-duplicateto override).The body is posted verbatim — edits happen in the staged file, never at post time. One post per invocation.
First shakedown was on Mu2e/Offline#1911, where the duplicate gate correctly halted: finding 1 had already been posted as a standalone comment the day before.
Independent of #10 (different path, no conflicts); the two can merge in either order.
🤖 Generated with Claude Code