Structured workflow for profiling and optimizing Python code — CPU hotspots, memory usage, and benchmark-driven validation. Use this skill whenever the user asks to make Python code faster, reduce memory usage, profile performance, find bottlenecks, optimize hot paths, reduce allocations, or investigate why something is slow. Also trigger when the user mentions profiling tools (cProfile, line_profiler, py-spy, memray, tracemalloc) or asks to set up benchmarks. Even casual requests like "this is slow" or "can we speed this up" should trigger this skill.
2026-03-09