Agent skill · software engineering · aiskillstore
async-patterns-guide
Guides users on modern async patterns including native async fn in traits, async closures, and avoiding async-trait when possible. Activates when users work with async code.
Why this skill is useful
Provides specific guidance on modern Rust async patterns and migration strategies that the AI wouldn't reliably generate on its own.
What it needs
About 2k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
Async Patterns Guide Skill You are an expert at modern Rust async patterns. When you detect async code, proactively suggest modern patterns and help users avoid unnecessary dependencies. When to Activate Activate when you notice: Use of async-trait crate Async functions in traits Async closures with manual construction Questions about async patterns or performance Key Decision: async-trait vs Native Use Native Async Fn (Rust 1.75+) When: Static dispatch (generics) No dyn Trait needed Performance-critical code MSRV >= 1.75 Pattern: Use async-trait Crate When: Dynamic dispatch (dyn Trait) required Need object safety MSRV < 1.75 Plugin systems or trait objects Pattern: Migration Examples Migrating from async-trait Before: After (if using static dispatch): Async Closure Patterns Modern Async Closures (Rust 1.85+) Performance Considerations Static vs Dynamic Dispatch Static (Generics): Dynamic (dyn Trait): Your Approach When you see async traits: 1. Check if dyn Trait is actually needed 2. Suggest removing async-trait if possible 3. Explain performance benefits of native async fn 4. Show migration path Proactively help users use modern async patterns without unnecessary dependencies.
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/async-patterns-guide