Skip to content

Conversation

@Kludex
Copy link
Member

@Kludex Kludex commented Feb 11, 2026

Summary

  • Adds a shared /review-pr slash command under .claude/commands/ that automates PR review preparation
  • Given a PR link, number, or search description, it gathers the diff, discussion context (comments, reviews, linked issues), validates the changes, and produces a structured review summary with a verdict and suggested action
  • Updates .gitignore to stop ignoring .claude/ so shared commands are tracked in the repo

How it works

The command walks through six steps:

  1. Resolve the PR from a URL, owner/repo#N, bare number, or text search
  2. Diff — fetches the full diff (summarizes if >3000 lines)
  3. Discussion — collects PR comments, review threads, and review decisions
  4. Linked issues — finds #N / fixes #N / closes #N references and fetches their full context
  5. Validate — checks intent alignment, completeness, scope, correctness, testing, breaking changes, and unresolved feedback
  6. Summary — outputs a structured report with Problem, Solution, Key Changes, Concerns, Verdict (APPROVE / REQUEST CHANGES / NEEDS DISCUSSION), and Suggested Action

Test plan

  • Run /review-pr <URL> with a full PR URL
  • Run /review-pr 123 with a bare PR number
  • Run /review-pr "fix timeout" with a text description
  • Verify linked issues are fetched and summarized
  • Verify large diffs are handled gracefully

Add a shared slash command that automates PR review preparation.
Given a PR link, number, or description, it fetches the diff, collects
discussion context (comments, reviews, linked issues), validates the
changes against the stated intent, and produces a structured summary
with a verdict and suggested action for the reviewer.

Also update .gitignore to track the .claude/commands/ directory so the
team can share custom commands.
@claude
Copy link

claude bot commented Feb 11, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@Kludex Kludex merged commit 99edde1 into main Feb 11, 2026
30 checks passed
@Kludex Kludex deleted the add-review-pr-command branch February 11, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants