typescript

Standardize TypeScript coding practices with strict typing and explicit return types.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

TypeScript and JavaScript projects often suffer from inconsistent code, weak type safety, and maintainability issues. This Skill defines clear coding standards to ensure reliable, readable, and scalable codebases.

Core Features & Use Cases

  • Type safety guidelines: enable strict mode, prefer unknown over any, use interfaces for object shapes.
  • Modern syntax and patterns: const/let, arrow functions, template literals, optional chaining, nullish coalescing.
  • Architecture & exports: explicit return types, named exports, modular design, and consistent import styles.
  • Use Case: Starting a new module or refactoring a codebase to align with TypeScript best practices.

Quick Start

Apply the TypeScript Standards to a project by configuring tsconfig.json for strict mode and adopting the guidelines for new modules.

Frequently Asked Questions about typescript

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

FAQPage Schema
How do I enforce TypeScript strict mode and avoid using any in my codebase?

Use this Skill to enforce clean TypeScript coding by standardizing practices such as enabling strict mode in tsconfig.json, avoiding any in favor of unknown, and using interfaces for object shapes.

What are the best practices for TypeScript module architecture and exports?

TypeScript module architecture best practices include using named exports, defining explicit return types, maintaining a modular design, and applying consistent import styles to improve codebase readability.

How do I standardize TypeScript coding standards when refactoring a project?

Standardize TypeScript coding during refactoring by applying guidelines for modern syntax like const/let, arrow functions, optional chaining, and nullish coalescing, alongside rules for error handling and testing.

When do I need TypeScript coding standards for library API development?

You need TypeScript coding standards for library API development when you require strict typing, clean architecture guidelines, and consistent syntax to ensure reliable, readable, and scalable codebases.