Install
npx skillscat add mczkzk/dotfiles/pr-review Install via the SkillsCat registry.
SKILL.md
Review GitHub PR and identify issues.
Process
Get PR Details
- Check working tree:
git status --short→ if uncommitted changes exist, warn and abort gh pr checkout <PR number>gh pr diff <PR number>gh pr view <PR number> --commentsgh api repos/{owner}/{repo}/pulls/{number}/comments
- Check working tree:
Check for Plan Document
- Search: current session plan →
.agent/plans/*/plan.md - If found, verify alignment with requirements, architecture, tests
- Search: current session plan →
Understand Context
- Read changed and related files
- Check config, dependencies, architecture
Review Changes
- Logic, correctness, quality, patterns
- Bugs, security, performance, edge cases
Create Verification Plan
- Prerequisites and setup
- Test scenarios and expected results
Principles
- Flag verifiable problems only
- Ask questions when uncertain
- Don't criticize unfamiliar patterns
Criteria
- Quality: Naming, error handling, comments
- Logic: Implementation, edge cases, performance
- Security: Authorization in call chain, data access checks, cross-resource ownership, entry point validation
- Smells: Duplication, dead code, hardcoded values, reinventing existing definitions
- Architecture: Pattern violations, separation of concerns
- Testing: Coverage, quality
Output
Summary: Changed files and scope
Verification Steps (if any): Prerequisites, setup, test scenarios, expected results, edge cases
Findings: Label each with severity
[BLOCKER]: Must fix before merge[MUST]: Required changes[SHOULD]: Important but negotiable[SUGGESTION]: Improvements and alternatives[NIT]: Minor issues (naming, formatting)[QUESTION]: Clarifications needed[FYI]: Notes and references