# Asyncio Programming

Asyncio Programming is a Claude Code skill for structuring Python coroutines, running concurrent tasks, and handling async I/O in web services and network requests.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 177 installs · ★ 7 repo stars
- Author: pluginagentmarketplace
- License: LicenseRef-Proprietary · policy=link-only · description only; the file stays with the author
- Source: https://github.com/pluginagentmarketplace/custom-plugin-python/tree/HEAD/skills/asyncio-programming/SKILL.md
- Updated: 2026-01-05
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/asyncio-programming

## What it does

The skill covers Python’s `async` and `await` syntax, coroutines, the event loop, and how asynchronous execution differs from synchronous code. Examples use `asyncio.gather()` and `asyncio.wait()` to coordinate tasks, handle failures, and cancel work that has not finished. `TaskGroup` appears as an option for Python 3.11 and later.

Other sections show HTTP calls with `aiohttp`, file access with `aiofiles`, and PostgreSQL queries through `asyncpg`. Web topics include async routes in FastAPI, an `aiohttp` server, WebSockets, and background tasks. The examples rely on their named libraries, so those packages must be available in the project; an `async` function alone does not make blocking work non-blocking.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-python --skill asyncio-programming -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/asyncio-programming/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/asyncio-programming/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-python --skill asyncio-programming -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/asyncio-programming/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-python --skill asyncio-programming -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/asyncio-programming/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install pluginagentmarketplace/custom-plugin-python skills/asyncio-programming
```

2. **Manually: put the files in place**
- File: `.github/skills/asyncio-programming/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-python --skill asyncio-programming -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/pluginagentmarketplace/custom-plugin-python --path skills/asyncio-programming
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/asyncio-programming/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-python --skill asyncio-programming -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/pluginagentmarketplace/custom-plugin-python/tree/HEAD/skills/asyncio-programming/SKILL.md

## When to use it
- convert sequential network calls to concurrent coroutines
- collect task results and handle exceptions
- cancel pending tasks after a timeout
- read or write files without blocking the event loop
- add an async route or background task to a web app

## Example prompts
- Show me how to run these HTTP requests concurrently with `asyncio.gather()`.
- Explain how to cancel unfinished tasks after a timeout with `asyncio.wait()`.
- Add an async FastAPI route that fetches a record from the database.

## Similar
- [asyncio](https://affpapa.org/en/nevibecode/skills/asyncio.md) — skill · 499 installs
- [python-backend](https://affpapa.org/en/nevibecode/skills/orchestkit-python-backend.md) — skill · 250 installs
- [asyncio-concurrency-patterns](https://affpapa.org/en/nevibecode/skills/asyncio-concurrency-patterns.md) — skill · 491 installs
- [async-programming](https://affpapa.org/en/nevibecode/skills/async-programming.md) — skill · 259 installs
- [python-patterns](https://affpapa.org/en/nevibecode/skills/python-patterns.md) — skill · 1135 installs
- [fastapi-development](https://affpapa.org/en/nevibecode/skills/manutej-fastapi-development.md) — skill · 453 installs

From the same set: [pluginagentmarketplace/custom-plugin-python](https://affpapa.org/en/nevibecode/by/pluginagentmarketplace/custom-plugin-python.md) — 12 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
