Sign in
Explore
Skills · SkillEveryday codingDevOps & CloudMonitoring & observabilityContext & memoryReviewed

python-performance-optimization

Profiles and speeds up slow Python code with cProfile and memory profilers.

Kind
Skill
Works with
Claude Code, Codex
Languages
Python
Source
wshobson/agents @ 0874a27b17a2
Path
plugins/python-development/skills/python-performance-optimization/SKILL.md
Jobs
Debugging
Topics
Monitoring & observability, Context & memory

Credit

Made by
wshobson
Original
github.com/wshobson/agents/blob/0874a27b17a22e2b7c2e2bcd72576…
License
MIT

Listed by Skill Manifest; not made by us.

InstallInstall it from a plugin marketplace.
/plugin install python-development@claude-code-workflows
Install factsScanned 3 Nov 2026
Adds
  • .claude/skills/python-performance-optimization/ (the skill folder)
  • 1 file(s) the skill refers to
  • 2 other files in the folder: references/advanced-patterns.md, references/details.md
Runs scripts
Yes
  • script.py
  • shell block in the text (references/details.md)
Uses the network
Yes
  • HTTP client calls (references/advanced-patterns.md)
  • downloads Python packages (references/advanced-patterns.md)
  • downloads Python packages (references/details.md)
Needs secrets
None found
Source revision
0874a27b17a2
Licence
MIT
Last activity
24 Nov 2026
Source changed after the scan
Yes
  • Last push 24 Nov 2026, scanned 3 Nov 2026; read it again before you rely on this scan
Review
Reviewed

Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.

# Python Performance Optimization

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

## When to Use This Skill

- 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

## Core Concepts

### 1. Profiling Types

- **CPU Profiling**: Identify time-consuming functions
- **Memory Profiling**: Track memory allocation and leaks
- **Line Profiling**: Profile at line-by-line granularity
- **Call Graph**: Visualize function call relationships

### 2. Performance Metrics

- **Execution Time**: How long operations take
- **Memory Usage**: Peak and average memory consumption
- **CPU Utilization**: Processor usage patterns
- **I/O Wait**: Time spent on I/O operations

### 3. Optimization Strategies
…