optimize

Analyze code across design, approach, efficiency, and complexity to identify optimization opportunities.

2|Updated Dec 22, 2025
One-click install
npx skills add https://github.com/TMI-apps/boilerplate-vite-supabase-mui-cursor --skill optimize-tmi-apps
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: optimize
Source: https://github.com/TMI-apps/boilerplate-vite-supabase-mui-cursor/tree/main/.cursor/skills/optimize2
Command: npx skills add https://github.com/TMI-apps/boilerplate-vite-supabase-mui-cursor --skill optimize-tmi-apps

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Systematically identify optimization opportunities across four levels: Design, Approach, Efficiency, and Complexity to ensure changes target the right problem and avoid wasted work.

Core Features & Use Cases

  • Four-level analysis: Evaluates design, algorithm, runtime, and maintainability to surface actionable improvements.
  • Decision guidance: Presents concrete options and trade-offs to avoid over-optimization.
  • Use Case: When a function shows high cognitive complexity, decide whether to redesign or refactor.

Quick Start

Run an initial evaluation on a representative codebase to surface the top hotspots and recommended actions.

Frequently Asked Questions about optimize

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify code optimization opportunities in a complex codebase?

Code optimization opportunities are identified by evaluating design, approach, efficiency, and complexity levels to surface actionable improvements and target the right problem without wasted work.

When should I rewrite versus refactor a function with high cognitive complexity?

Decide whether to rewrite or refactor high cognitive complexity functions by using decision guidance that presents concrete options and trade-offs to prevent over-optimization and ensure maintainable changes.

How do I run a code analysis to find performance and architecture hotspots?

Run an initial evaluation on a representative production-grade codebase across frontend and backend projects to surface top performance and architecture hotspots with recommended actions.

Can I use this code analysis approach for both frontend and backend projects?

Yes, this code analysis approach applies to production-grade codebases across both frontend and backend projects, evaluating runtime efficiency and design architecture.

What is the best way to avoid over-optimization when refactoring code?

Avoid over-optimization when refactoring by enforcing architecture checks and evaluating concrete options across design, algorithm, runtime, and maintainability levels.