async-python-patterns

async-python-patterns is a skill for Claude Code, Codex from tmolavi/mcp-agent-skills-hub. It costs 42 tokens per session (320 once invoked), scanned A, a copy of async-python-patterns, MIT.

A guide to writing Python programs that can wait for network, database, or file work while handling other tasks. It covers asyncio and async/await, Python features for running many input/output tasks without blocking.

In plain words
What is it for?
Use it when building async web APIs, web scrapers, WebSocket services, microservices, background jobs, or other applications that handle many independent input/output operations.
Why use it?
It helps avoid slow programs that sit idle while waiting for external systems. It also addresses timeouts, cancellation, error handling, queues, and testing for concurrent work.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/tmolavi/mcp-agent-skills-hub/async-python-patterns
Any agent
npx skills add tmolavi/mcp-agent-skills-hub --skill async-python-patterns
Clone the repo
git clone --depth 1 https://github.com/tmolavi/mcp-agent-skills-hub

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for async-python-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/tmolavi/mcp-agent-skills-hub/async-python-patterns.svg)](https://agentmods.dev/skills/tmolavi/mcp-agent-skills-hub/async-python-patterns)
Your own site
<a href="https://agentmods.dev/skills/tmolavi/mcp-agent-skills-hub/async-python-patterns"><img src="https://agentmods.dev/badge/skills/tmolavi/mcp-agent-skills-hub/async-python-patterns.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 320 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00042 $0.00320
Opus 5 $0.00021 $0.00160
Sonnet 5 $0.00008 $0.00064
Haiku 4.5 $0.00004 $0.00032

Measured 3d ago against content hash 9643ef65c8b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

async-python-patterns scanned grade A with 0 findings 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 3d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to async-python-patterns — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/async-python-patterns/SKILL.md · 40 lines

What it actually says

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.md for detailed patterns and examples.
Files

What ships with it

1 file 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.

Changes

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.

  1. 3d ago First seen · 40 lines · 42 tokens per session scan A 9643ef65c8b3

Subscribe to this mod's changes

async-python-patterns is a skill published in the GitHub repository tmolavi/mcp-agent-skills-hub (8 stars, last pushed 8d ago), licensed MIT. It adds 42 tokens to every session and 320 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to async-python-patterns, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

data-pro-skill

Market research data analysis meta-prompt. Transforms raw quantitative and qualitative data into dense, Tufte-style analytical documents. Document-driven. Invisible agent loop: Statistician -> Critic -> Tufte Designer. Commands: /dps-setup, /dps-cross, /dps-inject-open, /dps-export. Modes: /dps-mode:quant…

pablodiegoo/Data-Pro-Skill · 101 tokens

slides

Create strategic HTML presentations with Chart.js, design tokens, responsive layouts, copywriting formulas, and contextual slide strategies.

nextlevelbuilder/ui-ux-pro-max-skill · 25 tokens

godot-csharp

Use C#/.NET in Godot 4.7: partial classes extending nodes, the PascalCase lifecycle (Ready/Process/PhysicsProcess), [Export] fields, [Signal] delegates as C# events, type-safe node lookup, and calling between C# and GDScript. Use when writing Godot game code in C# (.cs files, .csproj), needing the Godot .NET build…

gamedev-skills/awesome-gamedev-agent-skills · 108 tokens

tower-defense

Build a tower defense: enemies pathing along lanes, wave spawning, towers that auto-target and fire, an economy, and lives. Use for a tower-defense/wave-defense game, or balancing waves and economy.

gamedev-skills/awesome-gamedev-agent-skills · 46 tokens

bailian-train-deploy

用百炼 CLI (bl) 走完"数据→微调训练→导出→部署→调用"的完整闭环,或跳过训练直接部署基座模型。支持文本模型(SFT/DPO/CPT)、音频 TTS 模型(CosyVoice)、图像生成模型(Wan2.7)和视频生成模型(Wan i2v/kf2v)微调。涵盖数据集校验/上传、创建微调任务、等待训练、导出最佳 checkpoint、创建推理部署、等待就绪、给出调用示例。当用户提到在百炼 / DashScope / 阿里云模型工作室上"训练模型""微调""fine-tune""finetune""部署模型""模型上线""把微调模型跑起来/调用""训练一个推理模型""继续预训练""LoRA/SFT/DPO…

modelstudioai/skills · 321 tokens

bailian-docs-llm-wiki

阿里云百炼平台技术文档知识库(LLM Wiki)。当用户查询百炼模型列表、API 参数、错误码、 应用开发(智能体/RAG/知识库/记忆/插件)、模型对比与定价、SDK/OpenAI 兼容接口、 多模态能力(语音/图片/视频)、Token 计费等百炼相关问题时激活。 包含 models 结构化模型市场数据(含 contextWindow/QPM/价格/sample code)、 wiki 合成层(主题页/概念页/对比页)和 raw 原始文档层; 模型规格类问题先查 models/index.md,文档类问题先查 wiki/index.md。.

modelstudioai/skills · 163 tokens