performance-review

द्वारा mastra-ai

प्रदर्शन-केंद्रित कोड समीक्षा जो बाधाओं और अनुकूलन अवसरों की पहचान करने के लिए होती है

npx skills add https://github.com/mastra-ai/mastra --skill performance-review

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

mastra-ai की और Skills

testing-mastracode-tui
mastra-ai
कोन्सोल में मास्ट्राकोड TUI सुविधाओं का इंटरैक्टिव परीक्षण। मॉडल कॉन्फ़िगरेशन, थ्रेड जीवनचक्र, कार्य स्थिति पृथक्करण और सामान्य अवरोधकों को शामिल करता है।
official
mastra-smoke-test
mastra-ai
मास्ट्रा प्रोजेक्ट्स का स्थानीय रूप से स्मोक टेस्ट करें या स्टेजिंग/प्रोडक्शन पर डिप्लॉय करें। स्टूडियो UI, एजेंट, टूल्स, वर्कफ़्लो, ट्रेस, मेमोरी और अधिक का परीक्षण करता है। स्थानीय और दोनों का समर्थन करता है…
official
security-review
mastra-ai
सुरक्षा-केंद्रित कोड समीक्षा जाँचसूची जो कमजोरियों की पहचान करने के लिए है
official
technical-writing
mastra-ai
स्पष्ट, सुव्यवस्थित तकनीकी दस्तावेज़ीकरण बनाने के लिए दिशानिर्देश
official
code-standards
mastra-ai
कोड गुणवत्ता मानक और पुल रिक्वेस्ट की समीक्षा के लिए शैली मार्गदर्शिका
official
debugging-difficult-bugs
mastra-ai
मध्यम या कठिन बग को डीबग करते समय शुरुआत में ही उपयोग करें, विशेषकर जब अकेले परीक्षण वास्तविक रनटाइम विफलता को उजागर नहीं कर सकते। विस्तारित TDD पुनरावृत्ति से पहले इसे सक्रिय करें…
official
e2e-frontend-validation
mastra-ai
प्ले Playwright MCP का उपयोग करके प्लेग्राउंड पैकेजों में फ्रंटएंड बदलावों के लिए E2E सत्यापन वर्कफ़्लो
official
e2e-tests-studio
mastra-ai
आवश्यक जब packages/playground-ui या packages/playground में किसी भी फ़ाइल को संशोधित किया जाए। ट्रिगर होता है: React कंपोनेंट निर्माण/संशोधन/रीफैक्टरिंग, UI परिवर्तन,…
official