diff --git a/.claude/commands/review-pr.md b/.claude/skills/review/SKILL.md similarity index 59% rename from .claude/commands/review-pr.md rename to .claude/skills/review/SKILL.md index 427828c3..6a904d41 100644 --- a/.claude/commands/review-pr.md +++ b/.claude/skills/review/SKILL.md @@ -1,6 +1,12 @@ -Review pull request #$ARGUMENTS +--- +name: review +description: Review local changes or a pull request +--- -Fetch the PR diff and details using `gh pr view` and `gh pr diff`, then analyze for: +If no arguments are passed, review the local changes by looking at the diff between the base branch - main by default - and the current branch. +If arguments are passed, review pull request #$ARGUMENTS by fetching it and seeing its details with `gh pr view` and `gh pr diff`. + +When reviewing, analyze for: 1. **Code Quality** - Rust idioms and Polkadot SDK patterns