| name | ezra-review-code |
| description | [NOT APPLICABLE — Ezra-specific reference; do not invoke in this project] Perform FAANG-level code review analyzing necessity, correctness, and completeness of changes |
FAANG-Level Code Review
Perform a rigorous code analysis and review of the specified changes. Evaluate whether the changes are necessary, correct, and complete.
Arguments
$ARGUMENTS: PR URL, branch name, commit SHA, or file path(s) to review
Review Framework
1. Understand the Context
Before reviewing code, understand:
- What problem is being solved?
- What is the expected behavior change?
- Who are the stakeholders (users, other services, etc.)?
2. Necessity Analysis
Determine if the changes are necessary:
3. Correctness Analysis
Determine if the changes are correct:
Functional Correctness
Security
Performance
Reliability
4. Completeness Analysis
Determine if the changes are complete:
5. Code Quality
Evaluate maintainability:
Output Format
Structure your review as:
## Summary
[1-2 sentence overview of what the changes do]
## Verdict: [APPROVE | REQUEST_CHANGES | NEEDS_DISCUSSION]
### Necessary: [YES | PARTIAL | NO]
[Brief explanation]
### Correct: [YES | PARTIAL | NO]
[Brief explanation with specific issues if any]
### Complete: [YES | PARTIAL | NO]
[Brief explanation of what's missing if anything]
## Critical Issues (blocking)
[List any issues that must be fixed before merge]
## Suggestions (non-blocking)
[List improvements that would be nice but aren't required]
## Questions
[List any clarifying questions for the author]
Review Principles
- Be specific: Point to exact lines/files. Use
file:line format.
- Explain why: Don't just say "this is wrong" - explain the impact.
- Suggest solutions: When identifying problems, propose fixes when possible.
- Prioritize: Distinguish blocking issues from nice-to-haves.
- Stay objective: Focus on the code, not the author.
- Assume good intent: The author may have context you don't.
- Be thorough but efficient: Don't nitpick style if there are logic bugs.
Review Tone for GitHub
When posting reviews to GitHub, write as a human colleague — not an AI with a classification system. The structured analysis (Output Format, severity levels) is for Claude Code's local display only.
- Frame suggestions as questions: "Is the intent..." or "Would you consider..." rather than "You should..."
- No severity prefixes: Don't label comments with
nit:, suggestion:, question (low):, etc. Just say what you mean.
- Explain why: Link reasoning to concrete impacts (performance, maintainability, correctness)
- Provide evidence: Link to documentation, SDK source, or issues when making technical claims
- Assume good intent: The author likely has context you don't — pose alternatives as questions
Good:
Since `max_concurrent_activities` is per-worker, and both this and the workflow
semaphore are set to 40 — is the intent that a single workflow can use full capacity?
Avoid:
**question (low):** Since `max_concurrent_activities` is per-worker...
You should set the workflow semaphore lower than the worker limit to leave headroom.
Severity Levels
Use these for internal analysis (Claude Code output). Do not include severity labels in GitHub-posted comments.
- Critical: Security vulnerabilities, data loss risks, breaking changes
- High: Bugs that will cause failures in production
- Medium: Performance issues, missing error handling, incomplete features
- Low: Code style, minor improvements, documentation gaps
Before Posting to GitHub
Pre-flight checklist (verify all before posting):
If any item is unchecked, DO NOT POST THE REVIEW.
Creating GitHub Reviews
When posting review findings to GitHub, use the github-pr skill for correct API patterns.
CRITICAL: Reviews MUST be created as drafts (omit the event field) so the user can review before submission.
Important: The Output Format above is your internal analysis framework. When posting to GitHub, write in a natural, conversational voice — see the "Review Content Guidelines" section in the ezra-github-ops skill for tone and inline comment guidance.
Related Skills
/ezra-create-pr — full PR preparation workflow that orchestrates this skill alongside lint, tests, docs, and PR creation
/ezra-github-ops — low-level GitHub API operations for posting reviews