chore(agents): add /sdk-review lens-based review skill #22070
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 257 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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.332
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #22070"
general
weight: 0.35
gnufede
Description
Implements a lens-based review skill,
/sdk-review, which can be run locally, in addition to the built-in/reviewand similar generic skills.This PR just adds the structure, similar to https://github.com/DataDog/dd-trace-dotnet/pull/9471. It's inspired by previous efforts, as well as existing implementations, but is fundamentally meant to be _simple_. We expect models to do the heavy lifting, and the goal is that we just have a place to put very-targeted rules, that are specific to this repo (see follow up in #22071).
The corpus of rules added to #22071 were extracted from ~300 comments left on human-authored PRs over the last 6 months, which were then de-duped, negative results removed (suggestions weren't implemented/not clearly actionable/status unknown), grouped, and categorized. These was then used to generate suggested rules. The rules were then tested to confirm reproducibility, and any that weren't reproducible were removed.
These rules are intended to evolve over time - the initial set is simply a starting point, and are expected to evolve over time. Feel free to adjust/remove/replace/add new rules based on your experience!
Customer impact
None
Testing
The skill has been tested extensively already in the
dd-trace-dotnetrepo, the rules added in # were validated for reproduction.Risks
The main risk is "irritation" caused by adding this to the standard
## Code Review Rulessection. Codex looks for this, and uses it to customize reviewing, and will also encourage doing a _local_ review, prior to push. This isn't enforced, but it's something to be aware of, and an intentional part of this velocity initiative.Additional Notes
<!-- Any other information that would be helpful for reviewers -->