.cursor/skills/review-pr/SKILL.md
Analyze a pull request diff and provide structured feedback on correctness, conventions, and quality.
npx skillsauth add carrot-foundation/methodology-rules Review Pull RequestInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Read the diff: Run git diff main...HEAD to see all changes in the branch. If a PR number is provided, use gh pr diff <number> instead.
Check for correctness:
noUncheckedIndexedAccess is enabled.safeParse() for untrusted input, .parse() for internal data)Check conventions:
shared, no cross-scope imports)@carrot-fndn/shared/...) instead of relative imports across libraries@faker-js/faker and zocker helpersCheck test coverage:
*.spec.ts and *.e2e.spec.ts filesdescribe blocks and it.each for table-driven patterns where appropriateRun quality gates: Execute pnpm lint:affected && pnpm ts:affected && pnpm test:affected to verify all checks pass.
Provide feedback grouped by severity:
Focus on bugs and logic errors over style. If everything looks good, say so explicitly.
databases
Create and modify Zod schemas for runtime validation with proper type inference.
testing
Write Vitest unit tests following project conventions with proper stubs and assertions.
tools
Autonomously implement a task following project conventions with iterative verification.
testing
Run quality gates, commit changes, push branch, and create a pull request.