Review Pull Request
Testing & QualityReview Pull Request is an Agent Skill for testing & quality published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Analyze a pull request diff and provide structured feedback on correctness, conventions, and quality.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/integration/review-pr-carrot-foundation-methodology-rules-2/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/review-pull-request-9b5d5192, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
-
Read the diff: Run
git diff main...HEADto see all changes in the branch. If a PR number is provided, usegh pr diff <number>instead. -
Check for correctness:
- Logic errors and potential bugs
- Proper error handling (no swallowed errors, meaningful messages)
- Null/undefined safety given
noUncheckedIndexedAccessis enabled - Correct use of Zod schemas (
.safeParse()for untrusted input,.parse()for internal data)
-
Check conventions:
- Module boundaries respected (processors only import from
shared, no cross-scope imports) - Path aliases used (
@carrot-fndn/shared/...) instead of relative imports across libraries - Conventional commit message format in PR title
- No real data in tests (no real company names, tax IDs, plates, addresses, or PII)
- Test stubs use
@faker-js/fakerandzockerhelpers
- Module boundaries respected (processors only import from
-
Check test coverage:
- New logic has corresponding unit tests
- Rule processors have both
*.spec.tsand*.e2e.spec.tsfiles - Test cases use
describeblocks andit.eachfor table-driven patterns where appropriate
-
Run quality gates: Execute
pnpm lint:affected && pnpm ts:affected && pnpm test:affectedto verify all checks pass. -
Provide feedback grouped by severity:
- Critical: Bugs, logic errors, security issues, broken tests, real data in tests
- Suggestion: Missing tests, naming improvements, better patterns, performance concerns
- Nit: Style preferences, minor readability improvements
Focus on bugs and logic errors over style. If everything looks good, say so explicitly.