Agent Skills
› rmyndharis/antigravity-skills
› async-python-patterns
async-python-patterns
GitHub提供Python异步编程指导,涵盖asyncio、并发模式及async/await。适用于构建高性能API、I/O密集型应用、爬虫及实时系统,强调非阻塞操作与错误处理。
Trigger Scenarios
构建异步Web API
实现并发I/O操作
开发网络爬虫
创建实时应用
优化I/O密集型工作负载
Install
npx skills add rmyndharis/antigravity-skills --skill async-python-patterns -g -y
SKILL.md
Frontmatter
{
"name": "async-python-patterns",
"description": "Master Python asyncio, concurrent programming, and async\/await patterns for high-performance applications. Use when building async APIs, concurrent systems, or I\/O-bound applications requiring non-blocking operations."
}
Async Python Patterns
Comprehensive guidance for implementing asynchronous Python applications using asyncio, concurrent programming patterns, and async/await for building high-performance, non-blocking systems.
Use this skill when
- Building async web APIs (FastAPI, aiohttp, Sanic)
- Implementing concurrent I/O operations (database, file, network)
- Creating web scrapers with concurrent requests
- Developing real-time applications (WebSocket servers, chat systems)
- Processing multiple independent tasks simultaneously
- Building microservices with async communication
- Optimizing I/O-bound workloads
- Implementing async background tasks and queues
Do not use this skill when
- The workload is CPU-bound with minimal I/O.
- A simple synchronous script is sufficient.
- The runtime environment cannot support asyncio/event loop usage.
Instructions
- Clarify workload characteristics (I/O vs CPU), targets, and runtime constraints.
- Pick concurrency patterns (tasks, gather, queues, pools) with cancellation rules.
- Add timeouts, backpressure, and structured error handling.
- Include testing and debugging guidance for async code paths.
- If detailed examples are required, open
resources/implementation-playbook.md.
Refer to resources/implementation-playbook.md for detailed patterns and examples.
Resources
resources/implementation-playbook.mdfor detailed patterns and examples.
Version History
- e63f7dd Current 2026-07-05 09:28


