Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add vikasudasi/skill-vault --skill python-asyncio-concurrencygit clone --depth 1 https://github.com/vikasudasi/skill-vaultWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/vikasudasi/skill-vault/python-asyncio-concurrency)<a href="https://agentmods.dev/skills/vikasudasi/skill-vault/python-asyncio-concurrency"><img src="https://agentmods.dev/badge/skills/vikasudasi/skill-vault/python-asyncio-concurrency/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/vikasudasi/skill-vault/python-asyncio-concurrency"><img src="https://agentmods.dev/badge/skills/vikasudasi/skill-vault/python-asyncio-concurrency.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00030 | $0.00412 |
| Opus 5.5 | $0.00012 | $0.00165 |
| Sonnet 5.5 | $0.00006 | $0.00082 |
| Haiku 4.5 | $0.00003 | $0.00041 |
Grade A, and why
python-asyncio-concurrency scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
async def fetch(url: str) -> str: ... What it actually says
Correct Python asyncio
Use when writing concurrent async code — background tasks, parallel I/O, or orchestrating many awaitables without blocking the loop.
Run and await
import asyncio
async def fetch(url: str) -> str: ...
async def main() -> None:
results = await asyncio.gather(fetch("a"), fetch("b"))
Never block the loop
One event loop runs all coroutines — a blocking time.sleep() or sync I/O inside
a coroutine stalls everything. Use asyncio.sleep(), re-encode sync work with
await asyncio.to_thread(...), or push CPU-bound work to a process.
Tasks and cancellation
asyncio.create_task()schedules background work; keep a reference or it may be garbage-collected mid-flight.- Use
asyncio.timeout(...)(3.11+) for bounds; handleTimeoutError.
Locking across coroutines
lock = asyncio.Lock()
async with lock:
... # critical section
An asyncio.Lock is per-loop — a plain threading.RLock is for threads and
won't serialize coroutines correctly. Match the lock to your concurrency model.
Pitfalls
- Forgetting to
awaitreturns a coroutine that never runs → "coroutine was never awaited" warning. Intentional fire-and-forget still needs a task. - Don't share mutable state across tasks without a lock.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 59 lines · 30 tokens per session scan A 7e5920a19ec0
python-asyncio-concurrency is a skill published in the GitHub repository vikasudasi/skill-vault (0 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 30 tokens to every session and 412 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
asyncio
Python asyncio - Modern concurrent programming with async/await, event loops, tasks, coroutines, primitives, aiohttp, and FastAPI async patterns.
asyncio-concurrency-patterns
Complete guide for asyncio concurrency patterns including event loops, coroutines, tasks, futures, async context managers, and performance optimization.
python-async-patterns
5 async patterns with full implementations for Python concurrent programming.
using-asyncio-python
Apply Using Asyncio in Python practices (Caleb Hattingh). Covers Introducing Asyncio (Ch 1: what it is, I/O-bound concurrency), Threads (Ch 2: drawbacks, race conditions, GIL, ThreadPoolExecutor), Asyncio Walk-Through (Ch 3: event loop, coroutines, async def/await, tasks, futures, gather, wait, async with, async for…
debug-assistant
Helps debug Python errors and exceptions.
fastapi
Use when building, reviewing, testing, securing or shipping a FastAPI / async Python service — routers, Pydantic v2 schemas, dependency injection, async SQLAlchemy 2.0, OAuth2/JWT, ASGITransport tests, production wiring. NOT language-level Python or packaging (that is python), NOT engine-level SQL (that is…