reviewing-prs
Original:🇺🇸 English
Translated
Agent-powered GitHub PR reviews with smart semantic triage. Categorizes changes as MECHANICAL (skip), NEW LOGIC (read), or BEHAVIORAL (verify) — so agents never waste tokens reading lock files or formatting diffs. Includes remote file reading, text/AST search across PR or full repo, and comment posting. No local clone needed. Use when asked to review a PR, check a pull request, look at PR changes, or given a PR number/URL to review.
1installs
Sourceataraxy-labs/gh-agent
Added on
NPX Install
npx skill4agent add ataraxy-labs/gh-agent reviewing-prsTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →PR Review with gh-agent
Works from any directory — everything is fetched from GitHub API.
Install gh-agent
bash
brew install ataraxy-labs/tap/gh-agentWorkflow
1. Triage →
gh-agent pr view --repo OWNER/REPO N --smartCategorizes changes into MECHANICAL (skip), NEW LOGIC (read), BEHAVIORAL (verify inline).
2. Diffs →
gh-agent pr diff --repo OWNER/REPO N --smart-filesGets diffs for non-mechanical files only. Lock/generated/minified files excluded by default.
3. Impact analysis — after reading diffs, search for breakage outside the PR:
Identify removed/renamed exports, changed signatures, deleted types, or modified public APIs from the diff. Then search for each:
--repo-widebash
# Find callers of a removed/renamed symbol
gh-agent pr grep --repo OWNER/REPO N --pattern "removedFunction" --repo-wide
# Find references to a deleted type or enum variant
gh-agent pr grep --repo OWNER/REPO N --pattern "DeletedTypeName" --repo-wide
# Find consumers of a changed interface/config
gh-agent pr grep --repo OWNER/REPO N --pattern "changedOption" --repo-wide --path src/
# Structural search for removed prop usage
gh-agent pr ast-grep --repo OWNER/REPO N --pattern 'oldPropName={$$$}' --repo-wideSearch for:
- Deleted exports/types — still imported elsewhere?
- Removed function parameters — callers updated?
- Changed constants/config — validators, serializers, tests in sync?
- Removed attributes/flags — renderers, parsers, importers still reference them?
4. Context — when diffs or impact results need more detail:
bash
# Read full file at PR branch
gh-agent pr file --repo OWNER/REPO N --path PATH
# Search PR changed files (fast, default)
gh-agent pr grep --repo OWNER/REPO N --pattern "functionName"
gh-agent pr ast-grep --repo OWNER/REPO N --pattern 'useCallback($$$)'--repo-wide--base5. Review — you are an expert senior engineer with deep knowledge of software engineering best practices, security, performance, and maintainability. Perform a thorough code review of the collected diffs and impact results:
- Generate a high-level summary of the changes in the diff.
- Go file-by-file and review each changed hunk.
- Comment on what changed in that hunk (including the line range) and how it relates to other changed hunks and code, reading any other relevant files. Also call out bugs, hackiness, unnecessary code, or too much shared mutable state.
- Flag any hits from impact analysis that indicate broken callers, stale references, or missing updates outside the PR.
--repo-wide - Categorize findings by severity: CRITICAL, HIGH, MEDIUM, LOW.
6. Post (only when user asks):
bash
# Post comments (line must appear in diff — use --json to check)
gh-agent pr review --repo OWNER/REPO N --comments-file /tmp/review.json
gh-agent pr diff --repo OWNER/REPO N --json # commentable lines map
# Post suggestion
gh-agent pr suggest --repo OWNER/REPO N --file F --line-start S --line-end E --replacement "code"Commands
| Command | Purpose |
|---|---|
| Smart triage — always start here |
| PR metadata as JSON |
| Diffs for non-mechanical files only |
| Diff for specific file(s) (substring match, repeatable) |
| File stat table |
| Commentable lines map |
| Read file at PR branch |
| Text search PR changed files |
| Text search full codebase |
| Structural search PR changed files |
| Structural search full codebase |
| Post review from JSON |
| Post suggestion comment |
Rules
- first. Never read all diffs blindly.
--smart - for diffs. One call, no manual file list.
--smart-files - Skip MECHANICAL. Don't read or comment on them.
- NEVER use local files. Always use ,
pr file, orpr grep.pr ast-grep - Always do impact analysis. After reading diffs, grep for every deleted/renamed export, removed type, and changed public API. This catches broken callers outside the PR.
--repo-wide - Search incrementally. PR files first → only if needed for additional context.
--repo-wide - Review in-skill. Do not hand off to external review tools. Summarize, go hunk-by-hunk, flag bugs and stale references, and categorize by severity.
- Post only when asked. Present findings in chat; user decides when to post.