Skip to content
Back to skills

Forge Python Async

ASecurity

Write correct asyncio code: no blocking calls, structured concurrency, timeouts, cancellation and bounded parallelism

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
ai-agentspythonfastapitestingapi

Works with

  • api

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add ansh44233/forge --skill forge-python-async --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Forge Python Async?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Forge Python Async
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ansh44233-forge-python-async/badge)](https://www.skillsdirectory.com/skills/ansh44233-forge-python-async)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: forge-python-async
description: "Write correct asyncio code: no blocking calls, structured concurrency, timeouts, cancellation and bounded parallelism"
---

<!-- Generated from catalog/skills/python-async/SKILL.md by scripts/build-plugin.ts. Edit the catalog, not this file. -->

# Python async

Use in async Python code (asyncio, FastAPI, aiohttp, Starlette).

## Correctness
- Never call blocking I/O or CPU-heavy work in `async def`; use async libraries or `asyncio.to_thread`.
- Await every coroutine; keep references to tasks you create.
- Use `asyncio.TaskGroup` (3.11+) for structured concurrency so errors and cancellation propagate.

## Limits
- `asyncio.timeout()` around external calls.
- Bound concurrency with `asyncio.Semaphore`; never `gather` thousands of requests at once.

## Testing
- `pytest-asyncio` or `anyio`; test cancellation and timeout paths.

## Verify
Run tests with `PYTHONASYNCIODEBUG=1` (or `asyncio.run(..., debug=True)`) and confirm no 'coroutine was never awaited' or slow-callback warnings.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.