typescript

Enforce TypeScript type safety and async best practices for .ts files.

Updated Feb 12, 2026
One-click install
npx skills add https://github.com/wibus-wee/bbot --skill typescript-wibus-wee
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript
Source: https://github.com/wibus-wee/bbot/tree/main/.agents/skills/typescript
Command: npx skills add https://github.com/wibus-wee/bbot --skill typescript-wibus-wee

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides comprehensive guidelines and best practices for writing high-quality, maintainable, and performant TypeScript code, ensuring type safety and adherence to modern coding standards.

Core Features & Use Cases

  • Type Safety Enforcement: Guides on avoiding any, using accurate types, and leveraging interface vs. type.
  • Async Pattern Optimization: Recommends async/await and promise-based APIs for efficient asynchronous operations.
  • Code Structure & Readability: Promotes consistent naming, destructuring, and the use of constants.
  • Performance Tips: Offers advice on loop optimization and efficient data querying.
  • Use Case: When developing a new feature in a TypeScript project, consult this Skill to ensure your code adheres to best practices for type safety, async operations, and overall quality.

Quick Start

Review the attached TypeScript file for adherence to type safety and async best practices.

Frequently Asked Questions about typescript

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

FAQPage Schema
What's the best way to enforce type safety and avoid 'any' in TypeScript files?

To enforce type safety in TypeScript, use accurate types instead of 'any' and leverage 'interface' versus 'type' appropriately. This ensures strict typing across .ts and .tsx files for maintainable code.

How do I optimize asynchronous patterns in TypeScript code?

Optimize TypeScript async patterns by using modern async/await and promise-based APIs. This approach ensures efficient asynchronous operations and adherence to recommended coding standards.

Does this Skill work with .ts, .tsx, and .mts file extensions?

Yes, this Skill enforces code style and type safety guidelines for .ts, .tsx, and .mts files. It addresses code quality, performance, and logging standards across these specific TypeScript extensions.

How do I structure TypeScript code for better readability and performance?

Structure TypeScript code for readability by using consistent naming, destructuring, and constants. Improve performance by applying loop optimization and efficient data querying techniques as recommended.

When should I use 'interface' vs 'type' in TypeScript?

Use 'interface' versus 'type' based on specific structural needs to enforce accurate types. This distinction helps maintain strict typing and avoids the generic 'any' type in your TypeScript project.

Why does my TypeScript code quality degrade when mixing async patterns?

TypeScript code quality degrades when not using modern async/await patterns. Adhere to promise-based APIs and strict typing guidelines to resolve asynchronous inconsistencies and improve code structure.