Optimize Skill

Analyze code for performance bottlenecks and suggest optimizations with before/after examples.

Updated Dec 24, 2025
One-click install
npx skills add https://github.com/yangqiong/claude-skills --skill optimize-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Optimize Skill
Source: https://github.com/yangqiong/claude-skills/tree/main/development/optimize
Command: npx skills add https://github.com/yangqiong/claude-skills --skill optimize-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses code performance bottlenecks by analyzing algorithms, runtime operations, memory usage, and I/O, providing actionable optimization suggestions.

Core Features & Use Cases

  • Performance Analysis: Identifies inefficiencies in code, including algorithmic complexity and runtime bottlenecks.
  • Optimization Suggestions: Offers ranked recommendations for improving performance, considering trade-offs.
  • Code Improvement: Provides before-and-after code examples with estimated performance impacts.
  • Use Case: A developer has a Python script that is running too slowly. They can use this Skill to analyze the script, pinpoint the slowest parts, and get suggestions on how to rewrite those sections for better performance.

Quick Start

Use the Optimize Skill to analyze the provided Python code for performance issues.

Frequently Asked Questions about Optimize Skill

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

FAQPage Schema
How do I analyze code for performance bottlenecks and improve runtime speed?

Code analysis for performance bottlenecks evaluates algorithm efficiency, runtime operations, memory usage, and I/O to identify inefficiencies. It provides actionable optimization suggestions with before-and-after examples to enhance software speed and resource utilization.

What is the best way to optimize algorithmic complexity and Big O inefficiencies in my Python script?

Optimizing algorithmic complexity and Big O inefficiencies involves analyzing your code to pinpoint slow sections. This Skill identifies bottlenecks and provides ranked recommendations with before-and-after code examples to improve overall efficiency.

How do I identify memory usage and I/O operation bottlenecks during code refactoring?

Identifying memory usage and I/O operation bottlenecks during code refactoring requires analyzing runtime performance. This Skill examines these resource constraints, pinpoints inefficiencies, and suggests improvements with estimated performance impacts.

Can I get before and after code examples with estimated performance improvements for slow running code?

Yes, you can get before and after code examples with estimated performance improvements. This Skill analyzes your slow running code, pinpoints the slowest parts, and provides detailed performance metrics showing the estimated impact of suggested refactoring.

Does this code optimization approach work for resolving general runtime performance issues across different software engineering tasks?

Yes, this code optimization approach works for resolving general runtime performance issues. It analyzes algorithms, runtime operations, memory usage, and I/O across software engineering tasks to provide ranked recommendations considering specific performance trade-offs.