Skill

python-performance

by majiayu000

AI Summary

A skill booster that helps developers diagnose and fix slow Python code through profiling, optimization patterns, and concurrent execution techniques. Useful for developers working on performance-critical Python applications.

Install

# Add to your project root as SKILL.md
curl -o SKILL.md "https://raw.githubusercontent.com/majiayu000/claude-skill-registry/main/skills/data/man/SKILL.md"

Description

Use when Python code runs slowly, needs profiling, requires async/await patterns, or needs concurrent execution - covers profiling tools, optimization patterns, and asyncio; measure before optimizing (plugin:python@dot-claude)

Python Performance & Concurrency

Profiling, optimization, and async patterns for Python.

Before Writing Code

• Read references/pythonic-style.md for style conventions • Check Python version: 3.13+ enables free-threaded concurrency options • Profile before optimizing - never guess at bottlenecks

Reference Files

| Topic | When to Load | File | |-------|--------------|------| | Pythonic style | Before generating code | ../references/pythonic-style.md | | Semaphores, locks, producers/consumers | Advanced async | references/async-advanced.md | | Database, memory, NumPy optimization | Deep optimization | references/optimization-advanced.md |

cProfile (CPU)

`bash python -m cProfile -o output.prof script.py python -m pstats output.prof # Interactive analysis ` `python import cProfile import pstats with cProfile.Profile() as pr: main() stats = pstats.Stats(pr) stats.sort_stats("cumulative").print_stats(10) `

Quality Score

B

Good

80/100

Standard Compliance72
Documentation Quality68
Usefulness82
Maintenance Signal100
Community Signal92
Scored Yesterday

GitHub Signals

Stars100
Forks15
Issues1
UpdatedYesterday
View on GitHub

Trust & Transparency

Open Source — MIT

Source code publicly auditable

Verified Open Source

Hosted on GitHub — publicly auditable

Actively Maintained

Last commit Yesterday

100 stars — Growing Community

15 forks

My Fox Den

Community Rating

Works With

Claude Code