javascript-typescript

Provide modern JavaScript and TypeScript development patterns and best practices.

20|5|Updated Jan 5, 2026
One-click install
npx skills add https://github.com/miles990/claude-software-skills --skill javascript-typescript-miles990
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: javascript-typescript
Source: https://github.com/miles990/claude-software-skills/tree/main/programming-languages/javascript-typescript
Command: npx skills add https://github.com/miles990/claude-software-skills --skill javascript-typescript-miles990

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides comprehensive guidance and best practices for modern JavaScript and TypeScript development, enabling developers to build robust, scalable, and maintainable applications.

Core Features & Use Cases

  • Type Safety: Leverage TypeScript's advanced type system for robust code.
  • Async Patterns: Implement efficient asynchronous operations using Promises and async/await.
  • Functional Programming: Utilize higher-order functions, currying, and immutability for cleaner code.
  • Modern JS Features: Master destructuring, optional chaining, and other modern syntax.
  • Use Case: Refactor a legacy JavaScript codebase to TypeScript, improving type safety and reducing runtime errors, or implement a complex asynchronous data fetching and processing pipeline.

Quick Start

Show me examples of using discriminated unions in TypeScript.

Frequently Asked Questions about javascript-typescript

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

FAQPage Schema
How do I use discriminated unions and type guards in TypeScript?

TypeScript discriminated unions combine literal types with type guards to narrow runtime objects. This pattern enables safe property access and scalable type definitions, reducing runtime errors in complex asynchronous data pipelines.

What's the best way to handle asynchronous operations with async/await and Promises?

Async/await syntax builds on Promises to handle asynchronous operations sequentially. This pattern simplifies complex data fetching pipelines, preventing callback hell while ensuring robust error handling for scalable applications.

Can I use functional programming concepts like currying and immutability in modern JavaScript?

Modern JavaScript supports functional programming through higher-order functions, currying, and immutable data patterns. Leveraging these concepts produces composable, maintainable code structures without mutating original state.

How do I refactor legacy JavaScript code to TypeScript for better type safety?

Refactoring legacy JavaScript to TypeScript involves adding type definitions and utilizing the advanced type system. This process improves type safety and reduces runtime errors while maintaining existing application logic.

When do I need optional chaining and nullish coalescing in ES6+ development?

Optional chaining and nullish coalescing manage undefined or null values in ES6+ development. These modern syntax features prevent runtime crashes during deep property access and provide safe default fallbacks.

Do I need custom error handling and module patterns for scalable JavaScript applications?

Custom error handling and module patterns are essential for scalable JavaScript applications. They encapsulate logic, standardize error management, and ensure maintainable codebases as project complexity grows.