askill
python

pythonSafety 100Repository

Python 3.11+ performance optimization guidelines (formerly python-311). This skill should be used when writing, reviewing, or refactoring Python code to ensure optimal performance patterns. Triggers on tasks involving asyncio, data structures, memory management, concurrency, loops, strings, or Python idioms.

32 stars
1.2k downloads
Updated 2/5/2026

Package Files

Loading files...
SKILL.md

Python 3.11 Best Practices

Comprehensive performance optimization guide for Python 3.11+ applications. Contains 42 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.

When to Apply

Reference these guidelines when:

  • Writing new Python async I/O code
  • Choosing data structures for collections
  • Optimizing memory usage in data-intensive applications
  • Implementing concurrent or parallel processing
  • Reviewing Python code for performance issues

Rule Categories by Priority

PriorityCategoryImpactPrefix
1I/O & Async PatternsCRITICALio-
2Data Structure SelectionCRITICALds-
3Memory OptimizationHIGHmem-
4Concurrency & ParallelismHIGHconc-
5Loop & IterationMEDIUMloop-
6String OperationsMEDIUMstr-
7Function & Call OverheadLOW-MEDIUMfunc-
8Python Idioms & MicroLOWpy-

Table of Contents

  1. I/O & Async PatternsCRITICAL

  2. Data Structure SelectionCRITICAL

  3. Memory OptimizationHIGH

  4. Concurrency & ParallelismHIGH

  5. Loop & IterationMEDIUM

  6. String OperationsMEDIUM

  7. Function & Call OverheadLOW-MEDIUM

  8. Python Idioms & MicroLOW

References

  1. Python 3.11 Release Notes
  2. PEP 8 Style Guide
  3. Python Wiki - Performance Tips
  4. Real Python - Async IO
  5. Real Python - LEGB Rule
  6. Real Python - String Concatenation
  7. Python Tutorial - Data Structures
  8. CPython Exception Handling
  9. DataCamp - Python Generators
  10. JetBrains - Performance Hacks

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

95/100Analyzed 2/10/2026

An exceptionally well-structured hub for Python 3.11+ performance optimization. It features a clear trigger section, prioritized categories, and 42 specific rules with quantified impact metrics.

100
100
100
90
95

Metadata

Licenseunknown
Version-
Updated2/5/2026
Publisherpproenca

Tags

apidatabasegithub