AI SummaryAutomates GitHub pull request analysis by gathering diffs, comments, related issues, and local code context to provide comprehensive reviews. Developers and code reviewers benefit from faster, more thorough PR evaluations.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to install the "review-pr" skill in my project. Please run this command in my terminal: # Install skill into the correct directory mkdir -p .claude/skills/review-pr && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/review-pr/SKILL.md "https://raw.githubusercontent.com/dlt-hub/dlt/devel/.claude/skills/review-pr/SKILL.md" Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.
Description
Analyze a GitHub pull request including diff, comments, related issues, and local code context
Review Pull Request
Parse $ARGUMENTS to extract the PR identifier and optional reviewer instructions: • Everything before the first -- (or all of it, if there is no --) is the PR identifier (URL or number). Referred to as PR_ID below. • Everything after the first -- is reviewer instructions — additional focus areas or context from the caller. If absent, there are no special instructions. Analyze the pull request: PR_ID
Steps
Run the following steps. Gather data in parallel where possible.
1. Set up worktree
Resolve the PR number: ` gh pr view PR_ID --json number ` Use the number to form the worktree name review-pr-<number>. Invoke the /create-worktree review-pr-<number> --pr <number> skill to create an isolated worktree for this PR. Note the worktree path from the skill output — referred to as WORKTREE below. Verify that the cwd is now inside the worktree: ` pwd ` If pwd does not show WORKTREE, run cd WORKTREE and verify again. Stop with an error if the cwd cannot be set. Once confirmed, subsequent Bash calls will run inside the worktree automatically.
2. Fetch PR metadata and diff
Use gh to collect all PR information in parallel: • gh pr view PR_ID --json title,body,author,state,baseRefName,headRefName,number,url,comments,reviews,labels,milestone • gh pr diff PR_ID
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster