typescript-expert

Refactor JavaScript code to type-safe TypeScript with advanced type definitions.

5|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/sinhong2011/minikyu --skill typescript-expert-sinhong2011
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-expert
Source: https://github.com/sinhong2011/minikyu/tree/main/.opencode/skill/typescript-expert
Command: npx skills add https://github.com/sinhong2011/minikyu --skill typescript-expert-sinhong2011

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the challenges of building complex, maintainable, and type-safe applications by leveraging advanced TypeScript features and best practices.

Core Features & Use Cases

  • Type Safety Enforcement: Ensures compile-time error detection and eliminates runtime type errors.
  • Advanced Type System Utilization: Implements generics, conditional types, and branded types for robust code.
  • Refactoring JavaScript: Guides the migration of JavaScript codebases to TypeScript with confidence.
  • Use Case: Refactor a JavaScript Express.js API to be fully type-safe, defining clear request/response types and ensuring all routes handle data correctly at compile time.

Quick Start

Use the typescript-expert skill to refactor the provided JavaScript code into a type-safe TypeScript module.

Frequently Asked Questions about typescript-expert

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

FAQPage Schema
How do I refactor JavaScript code to TypeScript with strict type safety?

Refactoring JavaScript to TypeScript involves defining clear request and response types, enabling strict mode configuration, and enforcing compile-time error detection to eliminate runtime type errors. This process ensures your application is fully type-safe.

What are advanced TypeScript patterns like conditional types and branded types?

Advanced TypeScript patterns utilize generics, conditional types, and branded types within the advanced type system. These features allow you to implement complex type definitions and build robust, maintainable applications with strong type safety enforcement.

Does TypeScript strict mode configuration eliminate runtime type errors?

Yes, TypeScript strict mode configuration ensures compile-time error detection and eliminates runtime type errors. By enforcing type safety, it catches potential issues during development rather than allowing them to fail in production environments.

How do I define type-safe request and response types for an Express.js API?

To define type-safe request and response types for an Express.js API, you implement clear TypeScript type definitions for all routes. This ensures all routes handle data correctly at compile time, preventing type mismatches during API execution.

What is the best way to implement complex type definitions using generics?

The best way to implement complex type definitions is by utilizing advanced TypeScript type system features like generics. This approach allows you to build type-safe applications and enforce robust code structures without sacrificing performance or maintainability.

When should I not use advanced TypeScript type system features?

You should avoid overusing advanced TypeScript type system features when they introduce unnecessary complexity that hinders performance or maintainability. While generics and conditional types build robust code, prioritize Test-Driven Development (TDD) and readability to ensure long-term maintainability.