docs(skills): add review mode to therock-pr-quality and two Python style rules #9910
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.46) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.46 · 457 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.367
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #9910"
general
weight: 0.35
geomin12
Motivation
We add a review mode to the
therock-pr-qualityskill so that an AI-assisted review of a TheRock PR, including a self-review before requesting review, follows the same steps every time. The review mode builds on the existingrocm-pr-qualitybase and thetherock-pr-qualityoverlay, and keeps their finding tiers, their assessment values, and the rule never to post to GitHub. It is based on reviews of real TheRock PRs. Each verification rule exists because skipping it produced a wrong or missed finding in one of those reviews.In addition, we add two rules to the Python style guide that came up repeatedly in reviews: no single-use module-level constants, and single rather than double backticks for code in comments and docstrings.
Technical Details
skills/therock-pr-quality/review.mdis read for the base skill's review action and applies to every TheRock PR, not only to the build-repo scope of the overlay. It adds:gh pr diffand reads source only when the diff cannot answer a question. The user's branch is never switched without asking.raiseis only as strong as its caller; naming and classification findings need real data; coupled sites are flagged together; unhappy paths are traced; "do it like X" needs a cited precedent; changes to established behavior need a check of who relies on it. The effort is kept in proportion to the risk, so a style point does not trigger a repository-wide sweep.BLOCKINGlist at the top keeps the base skill's severity-first view. The review ends with a whole-PR design pass ("Reviewer's take").therock-pr-quality/SKILL.mdgains a "Review mode" section that points toreview.md, and its description now lists review triggers ("review PR", "code review PR #N") so that review requests route to this skill. The Scope section names review mode as the exception that applies to every PR.AGENTS.mdandskills/README.mdlink the review mode.python_style_guide.mdgains the two rules with preferred and avoid examples, and two matching entries in the code review checklist. The single-use constant rule defers to "No magic numbers" for values that are not self-explanatory. The backtick rule applies to new and modified code only; existing comments do not need to be changed just for this.Test Results
pre-commit runon all changed files.Submission Checklist
🤖 Generated with Claude Code