python-async-patterns
Installation
SKILL.md
Python Async/Await Patterns and Best Practices
Purpose
This skill provides comprehensive guidance on Python asynchronous programming patterns for reviewing and writing async code. It covers async/await syntax, best practices, common patterns, anti-patterns, and framework-specific considerations.
Use this skill when:
- Reviewing async Python code
- Writing new async functions or services
- Refactoring sync code to async
- Troubleshooting async performance issues
- Evaluating async library usage
- Implementing async endpoints in web frameworks
Context
Asynchronous programming in Python enables efficient I/O-bound operations by allowing the event loop to switch between tasks while waiting for I/O operations to complete. However, async code introduces complexity and has specific patterns and pitfalls that must be understood for correct implementation.