Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Forge Rust Async?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ansh44233-forge-rust-async)
---
name: forge-rust-async
description: "Write async Rust with Tokio correctly: no blocking in async, cancellation-safe selects, bounded channels and structured tasks"
---
<!-- Generated from catalog/skills/rust-async/SKILL.md by scripts/build-plugin.ts. Edit the catalog, not this file. -->
# Rust async
Use in Rust code using Tokio or another async runtime.
## Runtime
- Never block in async code: use `tokio::task::spawn_blocking` for CPU or sync I/O.
- Don't hold a `std::sync::Mutex` guard across `.await`; use `tokio::sync::Mutex` only when needed.
## Tasks
- Keep `JoinHandle`s or use `JoinSet`; propagate errors and panics.
- Use bounded `mpsc` channels for backpressure.
- Know which futures are cancellation-safe before using them in `tokio::select!`.
## Timeouts
- `tokio::time::timeout` around network calls; graceful shutdown via a cancellation token.
## Verify
`cargo test` and `cargo clippy -- -D warnings` pass; a test exercises timeout and shutdown paths.