Loading...
Loading...
Found 8 Skills
Subprocess and concurrency discipline for Python: how to run external programs safely, and how to pick the right concurrency model instead of the habitual one. Use when spawning processes with subprocess or asyncio subprocesses, writing threading or ThreadPoolExecutor code, using multiprocessing or ProcessPoolExecutor, sizing worker pools, bounding fan-out, or diagnosing deadlocks, hangs, orphaned children, and zombie processes. Covers argv vs shell, timeouts that kill the whole process tree, pipe deadlocks, start methods (spawn/forkserver/fork), pickling limits, GIL and free-threading, and cancellation. For event-loop and coroutine rules (TaskGroup, blocking calls, cancellation), use python-async-best-practices instead.
Complete guide for asyncio concurrency patterns including event loops, coroutines, tasks, futures, async context managers, and performance optimization
Database and HTTP connection pooling patterns for Python async applications. Use when configuring asyncpg pools, aiohttp sessions, or optimizing connection lifecycle in high-concurrency services.
Guidance for implementing proper asyncio task cancellation with signal handling in Python. This skill applies when implementing concurrent task runners that need graceful shutdown, handling KeyboardInterrupt/SIGINT in asyncio contexts, or managing task cleanup when using semaphores for concurrency limiting. Use when tasks involve asyncio.gather, CancelledError handling, or cleanup of tasks that haven't started execution.
Sets up async tests with proper fixtures and mocks using pytest-asyncio patterns. Use when testing async functions, creating async fixtures, mocking async services, or handling async context managers. Covers @pytest_asyncio.fixture, AsyncMock with side_effect, async generator fixtures (yield), and testing async context managers. Works with Python async/await patterns, pytest-asyncio, and unittest.mock.AsyncMock.
Async REPL Protocol
ASGI server for Python web applications - Fast, production-ready server for async frameworks
This skill provides async/await patterns and best practices for concurrent programming