typescript-best-practices

Enforce TypeScript best practices for naming, functions, modules, and error handling.

Updated Jun 25, 2026
One-click install
npx skills add https://github.com/VSF-QC-TTS/vf-qc-copilot --skill typescript-best-practices-vsf-qc-tts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-best-practices
Source: https://github.com/VSF-QC-TTS/vf-qc-copilot/tree/main/.agents/skills/typescript/typescript-best-practices
Command: npx skills add https://github.com/VSF-QC-TTS/vf-qc-copilot --skill typescript-best-practices-vsf-qc-tts

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires typescript, eslint, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers write idiomatic TypeScript code, ensuring clean, maintainable, and efficient codebases.

Core Features & Use Cases

  • Naming Conventions: Guidelines for class/variable/function naming.
  • Function Best Practices: Recommendations for arrow functions, declarations, and typing.
  • Module Structure: Best practices for module organization and named exports.
  • Async Logic: Guidelines for using async/await and handling promises.
  • Type Safety: Techniques for ensuring type safety and avoiding 'any'.
  • Use Case: When refactoring TypeScript code to improve readability and maintainability.

Quick Start

Run the typescript-best-practices skill on your TypeScript files to apply best practices.

Frequently Asked Questions about typescript-best-practices

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

FAQPage Schema
How do I enforce TypeScript best practices for naming and function structure?

To enforce TypeScript best practices for naming and function structure, apply guidelines for class and variable naming, arrow functions, and declarations to ensure clean, maintainable code. It analyzes your TypeScript files to improve overall readability.

What is the best way to refactor TypeScript code to avoid using any?

The best way to refactor TypeScript code to avoid using any is to apply type safety techniques that enforce strict typing. This ensures type safety and helps write idiomatic TypeScript code, improving codebase maintainability.

How do I handle async logic and promises in a TypeScript project?

To handle async logic and promises in a TypeScript project, follow specific async/await guidelines for managing asynchronous operations. This enforces best practices for error handling and ensures your async logic remains clean and maintainable.

Do I need ESLint to perform static analysis on my TypeScript files?

Yes, you need ESLint to perform static analysis on your TypeScript files. The tool requires both TypeScript and ESLint to analyze your code and enforce best practices for module organization, type safety, and error handling.

What are the recommended module organization strategies for maintainable TypeScript code?

Recommended module organization strategies for maintainable TypeScript code involve using named exports and following specific module structure guidelines. This enforces best practices that ensure your TypeScript projects remain readable and maintainable.