typescript-async-safety

Identify TypeScript async safety problems and enforce type-safety patterns.

2|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/buchananwill/ue-claude-scaffold --skill typescript-async-safety
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-async-safety
Source: https://github.com/buchananwill/ue-claude-scaffold/tree/main/skills/typescript-async-safety
Command: npx skills add https://github.com/buchananwill/ue-claude-scaffold --skill typescript-async-safety

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

TypeScript projects often suffer from subtle async bugs, unsafe type usage, and brittle error handling that degrade reliability and maintainability. This skill provides guidance and patterns to enforce type-safety, correct async behavior, and predictable error propagation across public APIs and internal boundaries.

Core Features & Use Cases

  • Explicitly avoided: avoid using any and non-null assertions without guards.
  • Async correctness patterns: run parallel when safe, use await or Promise.all, and prevent floating promises.
  • Immutability and safe API design: encourage pure updates and safe state transitions.

Quick Start

Review a TypeScript project and implement recommended async safety patterns.

Frequently Asked Questions about typescript-async-safety

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

FAQPage Schema
How do I fix floating promise bugs in TypeScript async code?

To fix floating promise bugs in TypeScript async code, apply patterns that enforce proper await handling and Promise.all for parallel execution, ensuring predictable error propagation across module boundaries.

What is the best way to enforce type-safety and avoid non-null assertions in TypeScript?

The best way to enforce type-safety and avoid non-null assertions is to apply explicit return types and guard non-null assertions, preventing unsafe type usage and ensuring robust API boundaries.

How do I handle error propagation correctly in TypeScript async functions?

To handle error propagation correctly in TypeScript async functions, implement robust error handling patterns that prevent brittle failures and ensure errors propagate predictably across public APIs and internal boundaries.

Can I use immutability patterns to improve TypeScript state transitions?

Yes, you can use immutability patterns to improve TypeScript state transitions by encouraging pure updates and safe state transitions, which enhances reliability and maintainability in async codebases.

When should I run async operations in parallel using TypeScript?

You should run async operations in parallel using TypeScript when it is safe to do so, utilizing Promise.all to execute concurrent tasks while maintaining proper error handling and preventing floating promises.

Why does using any in TypeScript degrade code quality in async projects?

Using any in TypeScript degrades code quality in async projects because it bypasses type-safety checks, leading to subtle async bugs and unsafe type usage that compromise reliability across modules.