radius-code-review

Reviews GitHub pull requests in the Radius repository and produces line-accurate feedback.

1.7k|135|Updated Feb 20, 2021
One-click install
npx skills add https://github.com/radius-project/radius --skill radius-code-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: radius-code-review
Source: https://github.com/radius-project/radius/tree/main/.github/skills/radius-code-review
Command: npx skills add https://github.com/radius-project/radius --skill radius-code-review

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reviewing pull requests manually is time-consuming and error-prone, especially when line numbers drift after rebases or force-pushes. This Skill automates the end-to-end review of Radius PRs, ensuring findings are grounded in the latest head commit with accurate diff line numbers.

Core Features & Use Cases

  • Latest-head synchronization: Fetches PR metadata via the GitHub CLI, recomputes the merge base, and reads the actual diff before writing any finding.
  • Line-accurate inline comments: Resolves every comment's line number deterministically from the current diff, avoiding the most common defect in generated reviews.
  • Rubric-driven findings: Applies the repository's code-review instructions and language-specific guidance (Go, Shell, Make, Docker, Bicep, workflows) to surface correctness, security, test-gap, and documentation-drift issues.
  • Use Case: A maintainer asks to review PR #1234; the Skill syncs to the latest head, checks the diff against the review rubric, and stages concise inline comments or returns a chat summary with an overall outcome of No findings, Comments, or Request changes.

Quick Start

Ask the assistant to review PR #1234 in radius-project/radius and deliver the findings as staged review comments.

Frequently Asked Questions about radius-code-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review a GitHub pull request with this Skill?

Provide the PR number, optionally with the repository owner and name, and the Skill fetches the PR metadata, syncs to the latest head, applies the review rubric, and delivers findings in chat or as staged review comments.

How does the Skill ensure accurate line numbers in PR comments?

It resolves every line number deterministically from the latest head using git diff with zero context plus a unique snippet search in the changed hunk. Line numbers are re-checked after any rebase, force-push, or refreshed diff.

Can it review pull requests outside the Radius repository?

The Skill defaults to radius-project/radius but accepts a repository owner and name parameter. However, its rubric and language instructions are specific to the Radius repository's conventions.

When should I not use this PR review Skill?

Do not use it for general code authoring or refactoring, documentation-only drift checks, or reviewing local uncommitted changes. Those cases are handled by other skills or the built-in code-review agent.

Does the Skill submit or approve reviews automatically?

No. It stages comments in a pending review draft when a PR review tool is available, and only submits or approves when the user explicitly asks and the active review surface grants that authority.