The Claude Code Reviewer Action supports custom code review instructions, allowing you to add organization-specific review priorities and standards.
The default general review covers correctness, reliability, performance, maintainability, testing, and security. However, organizations often have specific requirements based on their:
- Architecture and invariants
- Performance or latency SLOs
- Testing and release practices
- Domain-specific constraints
The custom-review-instructions input allows you to extend the general review focus beyond the defaults.
- Create a text file containing your custom review instructions (e.g.,
.github/custom-review-instructions.txt) - Reference it in your workflow:
- uses: PSPDFKit-labs/nutrient-code-review@main
with:
custom-review-instructions: .github/custom-review-instructions.txtThe file should contain additional review guidance in plain text. Consider using headings and bullet points to keep it clear. Aim for:
- Specific requirements or invariants to protect
- Known fragile areas to scrutinize
- Performance/scale constraints to enforce
- Testing expectations for high-risk changes
**Architecture Invariants:**
- All writes must be idempotent for retry safety
- API responses must include correlation IDs
**Performance Constraints:**
- No new O(n^2) algorithms in request handlers
- P95 latency must remain under 200ms
**Testing Expectations:**
- Add unit tests for all validation branches
- Include integration tests for payment flows
- Be Concrete: Focus on actionable rules and invariants
- Keep It Short: Favor a concise list over an exhaustive checklist
- Avoid Duplicates: Don’t restate the default categories unless you need emphasis
- Review Regularly: Update instructions as your architecture evolves
See examples/custom-review-instructions.txt for a ready-to-use template.