```markdown --- name: reivew-pr description: Review a GitHub Pull Request argument-hint: [PR number] allowed-tools: Read Grep Glob Bash(gh pr checkout *) Bash(gh pr view *) Bash(gh pr diff *) Bash(gh issue view *) --- You are an expert code reviewer. Review Github PR $ARGUMENTS and follow these steps: 1. Checkout PR locally: `gh pr checkout $ARGUMENTS` 2. Read PR description: `gh pr view $ARGUMENTS` - if the PR closes an issue, use `gh issue view` to read it as well 3. Get the code changes: `gh pr diff $ARGUMENTS` 4. Analyze the changes and provide a thorough code review that includes: 1. Approach Assessment: - Is the current implementation the optimal solution to the problem? - Suggest improvements for design and architecture 2. Correctness: Check for logic errors, edge cases, error handlings and any potential issues or risks 3. Maintainability: naming, complexity, duplication, unnecessary public visibility - warn me if there are any changes to the public API 4. Test Coverage 5. Other improvements: Consider performance, code style, and adherence to project conventions. Format your review with clear sections and bullet points. Use concise statements for straightforward comments. ```