sickn33 avatar

Python Performance Optimization

If your Python code is running slower than you'd like, this walks you through the systematic process of finding and fixing bottlenecks. It covers CPU profiling with cProfile, memory analysis, and optimization best practices for everything from database queries to I/O operations. The skill includes an implementation playbook with concrete patterns and examples. It's most useful when you're debugging sluggish applications or optimizing data pipelines, though it expects you to bring specific performance problems rather than theoretical questions. The approach is methodical: clarify what you're trying to speed up, profile to find the actual bottlenecks, then apply targeted fixes with verification steps.

skills.sh installs
362
GitHub stars
39.4K
last updated
Jun 3, 2026

Install

$ npx -y skills add sickn33/antigravity-awesome-skills --skill python-performance-optimization --agent claude-code

Installs into .claude/skills of the current project.

Files

Python Performance Optimization

Comprehensive guide to profiling, analyzing, and optimizing Python code for better performance, including CPU profiling, memory optimization, and implementation best practices.

Use this skill when

  • Identifying performance bottlenecks in Python applications
  • Reducing application latency and response times
  • Optimizing CPU-intensive operations
  • Reducing memory consumption and memory leaks
  • Improving database query performance
  • Optimizing I/O operations
  • Speeding up data processing pipelines
  • Implementing high-performance algorithms
  • Profiling production applications

Do not use this skill when

  • The task is unrelated to python performance optimization
  • You need a different domain or tool outside this scope

Instructions

  • Clarify goals, constraints, and required inputs.
  • Apply relevant best practices and validate outcomes.
  • Provide actionable steps and verification.
  • If detailed examples are required, open resources/implementation-playbook.md.

Resources

  • resources/implementation-playbook.md for detailed patterns and examples.

Sponsors

Details

Repository
github.com/sickn33/antigravity-awesome-skills
Categories
Debugging, Python
First seen
Jun 3, 2026

More from sickn33/antigravity-awesome-skills

All 708

Recommended

More Debugging
1secondsky avatarcloudflare-workers-performancesecondsky/claude-skillsCloudflare Workers performance optimization with CPU, memory, caching, bundle size. Use for slow workers, high latency, cold starts, or encountering CPU limits,329skills.sh installs
2tirth8205 avatarDebug Issuetirth8205/code-review-graphSystematically debug issues using graph-powered code navigation302skills.sh installs
3lllllllama avatarsafe-debuglllllllama/ai-paper-reproduction-skillsafe debug226skills.sh installs
4charleswiltgen avataraxiom-swiftui-performancecharleswiltgen/axiomUse when UI is slow, scrolling lags, animations stutter, or when asking 'why is my SwiftUI view slow', 'how do I optimize List performance', 'my app drops frame215skills.sh installs
5charleswiltgen avataraxiom-swiftui-debuggingcharleswiltgen/axiomUse when debugging SwiftUI view updates, preview crashes, or layout issues - diagnostic decision trees to identify root causes quickly and avoid misdiagnosis un204skills.sh installs
6matlab avatarmatlab-performance-optimizermatlab/skillsmatlab performance optimizer200skills.sh installs