python

📁 pproenca/dot-skills 📅 Jan 22, 2026
46
总安装量
46
周安装量
#4634
全站排名
安装命令
npx skills add https://github.com/pproenca/dot-skills --skill python

Agent 安装分布

claude-code 40
opencode 35
gemini-cli 35
codex 34
cursor 30

Skill 文档

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

Priority Category Impact Prefix
1 I/O & Async Patterns CRITICAL io-
2 Data Structure Selection CRITICAL ds-
3 Memory Optimization HIGH mem-
4 Concurrency & Parallelism HIGH conc-
5 Loop & Iteration MEDIUM loop-
6 String Operations MEDIUM str-
7 Function & Call Overhead LOW-MEDIUM func-
8 Python Idioms & Micro LOW py-

Table of Contents

  1. I/O & Async Patterns — CRITICAL

  2. Data Structure Selection — CRITICAL

  3. Memory Optimization — HIGH

  4. Concurrency & Parallelism — HIGH

  5. Loop & Iteration — MEDIUM

  6. String Operations — MEDIUM

  7. Function & Call Overhead — LOW-MEDIUM

  8. Python Idioms & Micro — LOW

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