Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

asyncer

Skill by fastapi

Guides Python code that mixes async functions, blocking sync code and worker threads using the Asyncer library. It covers task groups, asyncify, syncify and runnify. Built for developers whose project depends on asyncer.

  • Score 84
  • 2.5k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install asyncer

Built from the published package, never by AI.

git clone --depth 1 https://github.com/fastapi/asyncer /tmp/asyncer && mkdir -p ~/.claude/skills && cp -r /tmp/asyncer/asyncer/.agents/skills/asyncer ~/.claude/skills/asyncer

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install asyncer in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The asyncer skill gives an AI assistant patterns for the Asyncer library, a small typed layer on top of AnyIO. It explains when to use asyncer.create_task_group() with soonify() for concurrent async calls, asyncify() for blocking sync functions, syncify() for calling async code from worker threads, and runnify() for running an async function from sync top-level code. It also lists replacements for asyncio.gather, to_thread calls and anyio.run wrappers.

The skill also lists common mistakes, such as calling blocking functions directly from async def, using syncify() inside async functions, and reading SoonValue.value before the task has completed. It is written for Python developers whose project depends on asyncer. The source is a SKILL.md file published under the fastapi name.

Written from the project's SKILL.md and checked against it.

What it can do

  • Concurrent async callsRuns several async functions at once with create_task_group() and soonify() and collects their results.
  • asyncifyLets async code call a blocking sync function without blocking the event loop.
  • syncifyLets sync code running in a worker thread call an async function.
  • runnifyRuns one async function from sync top-level code when no event loop is running.
  • Replacement guidanceMaps asyncio.gather, to_thread, run_in_executor and anyio.run calls to Asyncer helpers.
  • Common mistakes checklistLists frequent Asyncer errors such as misusing syncify or reading SoonValue too early.

What you need

  • Python
  • The asyncer package in the project

Try asking

  • Replace this asyncio.gather call with an Asyncer task group
  • Wrap this blocking render function so it can be awaited in FastAPI
  • Use syncify to call an async client from a sync worker thread

Good to know

  • syncify() outside a worker thread starts a new event loop, which is expensive if repeated in a loop.
  • Do not use runnify() from a thread that already has a running event loop.
  • Use abandon_on_cancel instead of the deprecated cancellable argument.
  • Lower-level AnyIO primitives are still needed for streams, locks, events and cancellation scopes.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: asyncer/.agents/skills/asyncer/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md8 KB

Alternatives to asyncer

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

asyncer: common questions

When should I use asyncify instead of asyncio.to_thread?

The source says to use asyncer.asyncify() when you want better argument and return typing than anyio.to_thread.run_sync, asyncio.to_thread or loop.run_in_executor provide.

Why is task_group.soon not valid in Asyncer?

The source states that Asyncer's API is task_group.soonify(...) and that soon(...) should not be used.

Can I read SoonValue.value inside the task group?

Only if the task has finished. The source says to check soon_value.ready first, and to read values after the async with block in most cases.

How do I install asyncer?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is asyncer free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is asyncer safe to use?

It scores 84 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to asyncer?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

asyncer Install

Add to stack

Loading.