Prompt file imported from jimzandueta/nestjs-http-server-boilerplate-codex-ai-assisted (
.codex/prompts/code-review.md). Fill in{{PR_LINK_OR_DESCRIPTION}},{{FILE_LIST}},{{CHANGE_TYPE}},{{RISK_AREAS}}before use. Copyright stays with the author.
Prompt: Code Review
Inputs
- PR / changeset: {{PR_LINK_OR_DESCRIPTION}}
- Files changed: {{FILE_LIST}}
- Type of change: {{CHANGE_TYPE}} (feature, bug fix, refactor, config, etc.)
- Risk areas: {{RISK_AREAS}} (security, performance, data integrity, etc.)
Instructions
- Follow
.codex-generic/RULES.md. - Read
memory/project-facts.mdfor project conventions. - Read
memory/learned-patterns.mdfor established patterns. - Read
anti-patterns/general.mdand check the diff against every item. - Review each file in the diff for:
- Correctness: Does it do what it should?
- Error handling: Are failures handled explicitly?
- Security: No secrets, injection vectors, or access control issues?
- Tests: Are they present, meaningful, and deterministic?
- Naming: Does it follow project conventions?
- Performance: Any obvious inefficiencies (N+1, unbounded results, missing timeouts)?
- Categorize feedback:
[BLOCKER],[SUGGESTION],[NIT],[QUESTION],[PRAISE]. - Run
checklists/pre-review.mdas a final check. - Update memory files if new patterns or anti-patterns are discovered.
Patterns to Consult
anti-patterns/general.md— known pitfalls to check againstpatterns/naming.md— naming conventionspatterns/error-handling.md— error handling expectationspatterns/testing.md— testing standardschecklists/pre-review.md— final review checklist