Skip to content
Development
Skill

/performance-review

Performance-focused code review for identifying bottlenecks and optimization opportunities

From plugin
mastra
30k33 skills14 commands

Claude Code

$ npx -y skills add mastra-ai/mastra --skill performance-review --agent claude-code

SKILL.md

performance-review.SKILL.md
name: performance-review
description: Performance-focused code review for identifying bottlenecks and optimization opportunities
version: 1.0.0
metadata:
  tags:
    - code-review
    - performance

Performance Review

When reviewing code for performance issues, check each category below. Reference the detailed checklist in `references/performance-checklist.md`.

Database & Queries

  • N+1 query patterns (queries inside loops)
  • Missing database indexes for frequently queried fields
  • Unbounded queries without LIMIT/pagination
  • SELECT \* instead of selecting only needed columns
  • Missing connection pooling

Memory & Resources

  • Memory leaks: event listeners not removed, intervals not cleared, growing caches without bounds
  • Large objects held in memory unnecessarily
  • Unbounded arrays or maps that grow with usage
  • Missing cleanup in component unmount/destroy lifecycle

Rendering (Frontend)

  • Unnecessary re-renders (missing React.memo, useMemo, useCallback where appropriate)
  • Large component trees re-rendering for small state changes
  • Missing virtualization for long lists
  • Synchronous heavy computation blocking the main thread
  • Large bundle sizes from unnecessary imports

API & Network

  • Missing caching for frequently accessed, rarely changing data
  • Sequential API calls that could be parallelized
  • Missing pagination for large data sets
  • Over-fetching data (requesting more than needed)
  • Missing request deduplication

Algorithmic Complexity

  • O(n²) or worse operations on potentially large datasets
  • Repeated computation that could be memoized
  • String concatenation in loops (use array join or template literals)
  • Unnecessary sorting or filtering passes

Severity Levels

  • 🔴 **CRITICAL**: Will cause performance degradation under normal load
  • 🟠 **HIGH**: Will cause issues at scale
  • 🟡 **MEDIUM**: Optimization opportunity with measurable impact
  • 🔵 **LOW**: Minor optimization suggestion
Read more
@mastra-ai
Ships withmastra

Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack. It includes everything you need to go from early prototypes to production-ready applications.

Stars on GitHub

Momentum

stars in total
29.5k
Star history of mastra-ai/mastra on GitHub, a chart by star-history.com

Other skills on mastra.

builder-smoke-test

builder-smoke-test

Smoke test the Agent Builder feature branch end-to-end against a hermetic project scaffolded by the skill (linked to the current…

@mastra-ai@mastra-aiInstall Skill
debugging-difficult-bugs

debugging-difficult-bu…

Use early when debugging a medium or hard bug, especially when tests alone may not reveal the real runtime failure. Trigger this…

@mastra-ai@mastra-aiInstall Skill
docs-audit

docs-audit

Autonomous, report-only documentation review for Mastra docs. Use when auditing changed docs against source, validating…

@mastra-ai@mastra-aiInstall Skill
docs-diagrams

docs-diagrams

Convert existing docs diagram images to Mermaid, and author new Mermaid diagrams for Mastra docs. Use when replacing an…

@mastra-ai@mastra-aiInstall Skill
e2e-tests-studio

e2e-tests-studio

REQUIRED when modifying any file in packages/playground-ui or packages/playground. Triggers on: React component…

@mastra-ai@mastra-aiInstall Skill
label-core-bugs

label-core-bugs

Review open mastra-ai/mastra GitHub issues, identify direct @mastra/core bugs, and apply the @mastra/core label. Use when…

@mastra-ai@mastra-aiInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about performance-review.

Which coding agents can use performance-review?
performance-review installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.