0xdarkmatter/claude-mods/python-async-ops
Claude Code and agent skill by 0xdarkmatter/claude-mods
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Python asyncio patterns for concurrent programming. Triggers on: asyncio, async, await, coroutine, gather, semaphore, TaskGroup, event loop, aiohttp, concurrent.
Install
npx vskill@latest install 0xdarkmatter/claude-mods/python-async-opsSKILL.md
Python Async Patterns
Asyncio patterns for concurrent Python programming.
When to Use Async vs Sync
| Use Async When | Use Sync When | |
|---|---|---|
| I/O-bound operations (HTTP, DB, files) | CPU-bound computations | |
| High concurrency (100s+ connections) | Simple scripts, one-off tasks | |
| WebSocket/streaming connections | Small data processing | |
| Microservices with network calls | Single sequential operations |
Decision tree:
- Is it CPU-bound? → Sync (or multiprocessing)
- Is it I/O-bound with high concurrency? → Async
- Is it simple I/O with few connections? → Sync is fine
Core Concepts
Pattern 1: Concurrent with gather
Pattern 2: Bounded Concurrency
Pattern 3: TaskGroup (Python 3.11+)
Pattern 4: Timeout
Critical Warnings
Quick Reference
| Pattern | Use Case | |
|---|---|---|
gather(*tasks) | Multiple independent operations | |
Semaphore(n) | Rate limiting, resource constraints | |
TaskGroup() | Structured concurrency (3.11+) | |
Queue() | Producer-consumer | |
timeout(s) | Timeout wrapper (3.11+) | |
Lock() | Shared mutable state |
Async Context Manager
Additional Resources
For detailed patterns, load:
./references/concurrency-patterns.md- Queue, Lock, producer-consumer./references/aiohttp-patterns.md- HTTP client/server patterns./references/mixing-sync-async.md- run_in_executor, thread pools./references/debugging-async.md- Debug mode, profiling, finding issues./references/production-patterns.md- Graceful shutdown, health checks, signal handling./references/error-handling.md- Retry with backoff, circuit breakers, partial failures./references/performance.md- uvloop, connection pooling, buffer sizing
Scripts
./scripts/find-blocking-calls.sh- Scan code for blocking calls in async functions
Assets
./assets/async-project-template.py- Production-ready async app skeleton
See Also
Prerequisites:
python-typing-ops- Type hints for async functions
Related Skills:
python-fastapi-ops- Async web APIspython-observability-ops- Async logging and tracingpython-database-ops- Async database access
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/python-async-ops/SKILL.md
Popularity
- Repository stars
- 16
- Repository forks
- 1
- 7-day trend score
- 14
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 29 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/0xdarkmatter/claude-mods/python-async-ops)