Agent skill · software engineering · aiskillstore
rn-async-patterns
Async/await correctness in React Native with Zustand. Use when debugging race conditions, missing awaits, floating promises, or async timing issues in Expo/React Native apps.
Why this skill is useful
Provides specific patterns and detection scripts for async issues in React Native that the AI wouldn't reliably generate on its own.
What it needs
Requires eslint installed locally. About 4k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
React Native Async Patterns Problem Statement Async bugs in React Native are insidious because they often work in development but fail under load or on slower devices. The most common issues: missing await on async functions, race conditions between state updates, and assuming operations complete in order. --- Pattern: Floating Promise Detection Problem: Calling an async function without await causes it to run in the background. If subsequent code depends on its completion, you get a race condition. Example (from retake bug): Why it's subtle: Both functions might have async in their signature, but only one was awaited. The code "looks right" at a glance. Detection: Prevention: 1. ESLint rule @typescript-eslint/no-floating-promises - catches this at lint time 2. Code review trigger: Any line calling a function that might be async without await, return, or assignment --- Pattern: Post-Condition Validation Problem: Assuming an async call succeeded without verifying. The call might return early, throw silently, or fail to update state. Example (from retake bug): Principle: Treat every async call as potentially failed until proven otherwise. When to validate: After loading data that subsequent operations depend on After state updates that must complete before continuing Before irreversible operations (submissions, deletions) Pattern template: --- Pattern: Async Function Identification Problem: Not all async functions look async. Zustand actions, callbacks, and promise-returning functions may not have obvious async keywords. Hidden async patterns: Detection: Check function signatures and implementations: --- Pattern: Sequential vs Parallel Async Problem: Running async operations sequentially when they could be parallel (slow), or parallel when they must be sequential (race condition). …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/rn-async-patterns