async-patterns

Detect and fix incorrect async/await patterns in TypeScript projects.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/gil00pita/lanify --skill async-patterns-gil00pita
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: async-patterns
Source: https://github.com/gil00pita/lanify/tree/main/.agents/skills/async-patterns
Command: npx skills add https://github.com/gil00pita/lanify --skill async-patterns-gil00pita

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill helps software engineers improve code reliability by detecting and correcting improper async/await usage, eliminating unnecessary async wrappers, and parallelizing independent awaits.

Core Features & Use Cases

  • Detect and fix unnecessary async wrappers (require-await) to reduce overhead.
  • Parallelize independent awaits using Promise.all to improve performance.
  • Detect await on non-promise values and provide guidance to correct the pattern.
  • Generate actionable suggestions and quick fixes with example contexts.

Quick Start

Run the detect-async-issues script on your TypeScript source to identify opportunities and apply parallelization safely.

Frequently Asked Questions about async-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find sequential awaits that can run in parallel in TypeScript?

To detect unnecessary async wrappers in TypeScript, run the detect-async-issues script to scan your source files, which generates a JSON report highlighting require-await overhead and providing recommended fixes.

Why does awaiting non-promise values cause issues in my async functions?

Awaiting non-promise values in async functions introduces unnecessary overhead without benefit. The detect-async-issues script identifies these patterns in your TypeScript code and provides guidance to correct them for cleaner execution.

Can I scan TypeScript files for async code quality issues without checking node_modules?

Yes, you can scan TypeScript files for async code quality issues while automatically excluding node_modules. The analysis scripts traverse your project directory to detect async patterns and output a JSON report with actionable suggestions.

What is the best way to parallelize independent async calls in a TypeScript project?

The best way to parallelize independent async calls in a TypeScript project is to group them using Promise.all. The analysis scripts identify these sequential awaits and provide safe refactoring guidance to improve performance.

Are there limitations to refactoring async patterns in JavaScript files?

A limitation of refactoring async patterns in JavaScript files is that the analysis focuses on detecting issues and providing guidance rather than applying automatic fixes, requiring careful manual refactoring to ensure code reliability.