typescript

Enforce TypeScript code style and optimization guidelines across .ts, .tsx, and .mts files.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/razgulay/my-lobe-chat --skill typescript-razgulay
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript
Source: https://github.com/razgulay/my-lobe-chat/tree/main/.agents/skills/typescript
Command: npx skills add https://github.com/razgulay/my-lobe-chat --skill typescript-razgulay

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a unified set of TypeScript coding standards and best practices to improve code quality, readability, and maintainability across projects.

Core Features & Use Cases

  • Enforces strong typing and safe patterns to reduce runtime errors.
  • Guides on structuring types, interfaces, and generics for scalable apps.
  • Helps during code reviews and refactoring to ensure consistent TypeScript quality.
  • Real-world use: Aligns a new TS project with a proven style guide to accelerate onboarding.

Quick Start

Analyze a TypeScript file or project to surface style and type-safety recommendations.

Frequently Asked Questions about typescript

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

FAQPage Schema
How do I enforce TypeScript code style and type-safety in my project?

To enforce TypeScript code style and type-safety, apply rules for avoiding explicit any, preferring interfaces for object shapes, and utilizing as const satisfies. This provides a unified set of standards to improve code quality and maintainability across projects.

What are the best practices for structuring TypeScript types and interfaces?

Best practices for structuring TypeScript types include preferring interfaces for object shapes and utilizing as const satisfies. This guides you in structuring types, interfaces, and generics to build scalable applications with reduced runtime errors.

How do I review TypeScript files for clean and safe code patterns?

To review TypeScript files for clean and safe code patterns, analyze .ts, .tsx, and .mts files to surface style and type-safety recommendations. This helps during code reviews and refactoring to ensure consistent TypeScript quality.

Does this TypeScript style guide apply to .tsx and .mts files?

Yes, this TypeScript style guide applies directly to .tsx and .mts files. It enforces optimization guidelines and safe asynchronous patterns during TypeScript development, code reviews, and pattern discussions across these specific file extensions.

Why should I avoid explicit any in TypeScript development?

You should avoid explicit any in TypeScript development to enforce strong typing and safe patterns that reduce runtime errors. Adopting asynchronous patterns and utilizing as const satisfies further ensures reliability and clean code.