Analyze code for performance issues and apply optimizations including memoization, lazy loading, and caching.
Analyze this code for performance issues and optimize: 1. Identify unnecessary re-renders in React components - Add React.memo() where props are stable - Use useMemo() for expensive computations - Use useCallback() for functions passed as props 2. Find O(n²) or worse algorithms and suggest O(n) alternatives 3. Identify missing database indexes (if SQL queries present) 4. Find N+1 query problems and suggest batching/joins 5. Check for memory leaks (uncleared intervals, event listeners, subscriptions) 6. Suggest code splitting and lazy loading opportunities 7. Identify blocking operations that should be async 8. Check for unnecessary data copying (spread in loops, array concat in loops) 9. Suggest caching strategies where data is fetched repeatedly For each issue found: - Explain the performance impact - Show the fix with before/after - Estimate the improvement (qualitative is fine)
Select a file or component that feels slow. Cursor will analyze and suggest specific optimizations. Works best with @-mention of related components.
Agent Library is a centralized collection of reusable AI agent skills, workflows, prompts, and specialized knowledge modules. Built for Claude Code, Codex, Cursor, and other AI coding agents with an efficient on-demand loading architecture.
An open-source collection of production-ready AI skills, prompts, templates, and workflows for Claude, ChatGPT, Gemini, Cursor, and other AI tools.
A collection of Skills (system prompts) for autonomous AI Agents and LLMs (Google Antigravity, Claude Code, GitHub Copilot, Codex, Cursor, AutoGPT, ChatGPT, Gemini).
许惟的 AI 工具合集 · A growing collection of practical AI tools & skills. First up: diagram-generator (one sentence → clean diagrams).
A curated collection of high-quality AI prompts for ChatGPT, Claude, Gemini, Cursor, and other AI assistants
A curated collection of ready-to-run automation prompts for real-world workflows.
Workflows from the Neura Market marketplace related to this Cursor resource