agentsclimarketplace

Optimize performance

Skill emaraschio/cursor-commands/plugin/.cursor/skill-contracts/optimize-performance

Production-grade Cursor slash commands with paired skill contracts, behavioral evals, and ship-gate CI. Install as a user plugin.

Install
npx -y skills add emaraschio/cursor-commands --skill optimize-performance

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 9 stars9 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Profile and optimize performance bottlenecks

SKILL.md

2.0 KB, 359 tokens by cl100k_base, as published. Nobody here has run it

Overview

Analyze the current code for performance bottlenecks and provide optimization recommendations, focusing on measurable improvements while maintaining code quality and readability.

Steps

  1. Performance Analysis
    • Identify slow algorithms and inefficient data structures
    • Find memory leaks and excessive allocations
    • Identify slow queries and improve them specifically for Solid Queue and n+1 queries
    • Detect unnecessary computations and redundant operations
    • Analyze database queries and API calls
  2. Optimization Strategies
    • Suggest algorithm improvements and better data structures
    • Recommend caching strategies where appropriate
    • Propose lazy loading and pagination solutions
    • Identify opportunities for parallel processing
  3. Implementation
    • Provide optimized code with explanations
    • Include performance impact estimates
    • Suggest profiling and monitoring approaches
    • Consider trade-offs between performance and maintainability

Optimize Performance Checklist

  • Identified slow algorithms and inefficient data structures
  • Found memory leaks and excessive allocations
  • Detected unnecessary computations and redundant operations
  • Analyzed database queries and API calls
  • Suggested algorithm improvements and better data structures
  • Recommended caching strategies where appropriate
  • Provided optimized code with explanations
  • Included performance impact estimates
  • Considered trade-offs between performance and maintainability

Guardrails

  • Measure first: profile to find the real bottleneck before changing code.
  • Do not trade readability for unmeasured micro-gains.
  • Do not commit, push, merge, or run production scripts without consent; wait for an explicit request before any destructive git action.
  • Do not print, log, or commit secrets or credentials encountered while profiling or optimizing; flag any exposed secret instead.

What ships with it: 3 files

2.8 KB alongside SKILL.md

eval/

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.