/performance-review
Spawns the performance-reviewer agent to detect performance anti-patterns in your code changes.
Steps
Gather context — detect the scope of changes to review:
- If arguments are provided (file paths or PR number), use those as scope
- Otherwise, use
git diffto determine what changed - Identify files touching database queries, API endpoints, or data processing
Spawn the agent — use the Task tool:
Task tool with subagent_type="performance-reviewer"Pass in the prompt:
- The diff output and list of changed files
- The project's database ORM and framework context
- Any performance budgets or constraints from project rules
Present findings — relay the agent's performance report:
- Group by severity: CRITICAL > WARNING
- Include specific code locations and estimated impact
- Show recommended fixes with before/after examples
Offer follow-up actions:
- "Fix critical issues?" — apply recommended performance fixes
- "Add benchmarks?" — create performance tests for flagged code paths
- "Review again?" — re-run after changes
Converted and distributed by TomeVault — claim your Tome and manage your conversions.