One-click install
npx skills add https://github.com/mikkeymoo/claude-solo --skill mm-perf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mm-perf
Source: https://github.com/mikkeymoo/claude-solo/tree/main/mm-skills/mm-perf
Command: npx skills add https://github.com/mikkeymoo/claude-solo --skill mm-perf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ast, regex, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill identifies performance bottlenecks in code and database queries, allowing developers to optimize and enhance the efficiency of their applications.

Core Features & Use Cases

  • Code Profiling: Analyze code execution paths and identify slow functions, nested loops, and inefficient allocations.
  • Database Query Analysis: Detect N+1 queries, missing indexes, and inefficient joins.
  • Use Case: Use mm-perf to find performance issues in a large codebase or to optimize a specific section of code, improving overall system performance.

Quick Start

Run the mm-perf skill with the --quick flag to get a surface scan of performance issues in your code.

Frequently Asked Questions about mm-perf

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

FAQPage Schema
How do I find N+1 queries and slow functions in my codebase?

To find N+1 queries and slow functions, performance profiling analyzes code execution paths and database queries to detect missing indexes, inefficient joins, and nested loops. It requires ast and regex libraries for static code analysis.

Can I use performance profiling to analyze JavaScript and TypeScript code?

Yes, performance profiling supports JavaScript and TypeScript codebases, alongside Python. It analyzes code execution paths to identify inefficient allocations and nested loops using ast and regex libraries.

What is the best way to get a surface scan of database performance bottlenecks?

The best way to get a surface scan of database performance bottlenecks is to run the profiler with a quick flag. This initiates a rapid scan to detect missing indexes, inefficient joins, and N+1 queries across your codebase.

How do I detect inefficient memory allocations during code profiling?

To detect inefficient allocations during code profiling, the tool analyzes your code's execution paths using ast and regex libraries. It identifies memory bottlenecks and nested loops to help optimize overall system performance.

Does database query analysis work for finding missing indexes in Python applications?

Yes, database query analysis works for Python applications to detect missing indexes and inefficient joins. It identifies N+1 queries and database performance bottlenecks by evaluating query patterns within your Python codebase.

Why does code profiling require ast and regex libraries?

Code profiling requires ast and regex libraries to parse and analyze code execution paths statically. These dependencies allow the profiler to accurately identify slow functions, nested loops, and inefficient allocations without executing the code.