python-performance-optimization
Profiles and optimizes Python code performance and memory usage.
Install
mkdir -p .claude/skills/python-performance-optimization-netbarros && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/12580" && unzip -o skill.zip -d .claude/skills/python-performance-optimization-netbarros && rm skill.zipInstalls to .claude/skills/python-performance-optimization-netbarros
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Profile and optimize Python code using cProfile, memory profilers, and performance best practices. Use when debugging slow Python code, optimizing bottlenecks, or improving application performance.Key capabilities
- →Identify performance bottlenecks in Python applications
- →Reduce application latency and response times
- →Optimize CPU-intensive operations
- →Reduce memory consumption and memory leaks
- →Improve database query performance
- →Optimize I/O operations
How it works
This skill profiles and analyzes Python code to identify performance bottlenecks, memory leaks, and inefficient operations. It provides actionable steps to optimize CPU usage, memory consumption, database queries, and I/O operations.
Inputs & outputs
When to use python-performance-optimization
- →Profile Python code performance
- →Optimize memory usage
- →Improve application latency
About this skill
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.mdfor detailed patterns and examples.
Limitations
- →The task must be related to python performance optimization
- →The task must be within the scope of python performance optimization tools
How it compares
This skill offers a structured approach to Python performance optimization by applying profiling tools and best practices, unlike manual trial-and-error methods.
Compared to similar skills
python-performance-optimization side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| python-performance-optimization (this skill) | 0 | 5mo | No flags | Intermediate |
| python-performance-optimization | 27 | 2mo | No flags | Intermediate |
| optimizing-performance | 1 | 2mo | Review | Intermediate |
| codex-code-review | 1 | 7mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by netbarros
View all by netbarros →You might also like
python-performance-optimization
wshobson
Profile and optimize Python code using cProfile, memory profilers, and performance best practices. Use when debugging slow Python code, optimizing bottlenecks, or improving application performance.
optimizing-performance
CloudAI-X
Analyzes and optimizes application performance across frontend, backend, and database layers. Use when diagnosing slowness, improving load times, optimizing queries, reducing bundle size, or when asked about performance issues.
codex-code-review
tyrchen
Perform comprehensive code reviews using OpenAI Codex CLI. This skill should be used when users request code reviews, want to analyze diffs/PRs, need security audits, performance analysis, or want automated code quality feedback. Supports reviewing staged changes, specific files, entire directories, or git diffs.
memory-optimization
benchflow-ai
Optimize Python code for reduced memory usage and improved memory efficiency. Use when asked to reduce memory footprint, fix memory leaks, optimize data structures for memory, handle large datasets efficiently, or diagnose memory issues. Covers object sizing, generator patterns, efficient data structures, and memory profiling strategies.
benchmark-kernel
flashinfer-ai
Guide for benchmarking FlashInfer kernels with CUPTI timing
nsys-capture
gujialiang123
Wrap an arbitrary action (a bench run, a single curl, an N-second sleep) with `nsys profile`, then immediately export the .nsys-rep to SQLite so downstream skills can SQL-query it without reopening the binary trace.