typescript-advanced

Configure tsconfig.json and model complex TypeScript types with advanced features.

9|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/pantheon-org/tekhne --skill typescript-advanced-pantheon-org
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-advanced
Source: https://github.com/pantheon-org/tekhne/tree/main/skills/development/typescript-advanced
Command: npx skills add https://github.com/pantheon-org/tekhne --skill typescript-advanced-pantheon-org

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you write more robust, maintainable, and type-safe TypeScript code by leveraging advanced language features and best practices.

Core Features & Use Cases

  • Compiler Configuration: Optimize tsconfig.json for strictness and performance.
  • Advanced Types: Master generics, conditional types, mapped types, and template literal types.
  • Type Safety: Implement patterns like discriminated unions and branded types to make illegal states unrepresentable.
  • Use Case: You're building a complex API client where request parameters and response types vary based on the endpoint and HTTP method. Use this Skill to define precise types for each route, ensuring type safety across your client.

Quick Start

Use the typescript-advanced skill to learn about configuring tsconfig.json for strict mode.

Frequently Asked Questions about typescript-advanced

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

FAQPage Schema
How do I configure tsconfig.json for strict mode and performance in TypeScript?

To configure tsconfig.json for strict mode, adjust compiler options to enforce type safety and optimize build performance. This Skill provides guidance on setting up strictness rules to ensure robust and maintainable TypeScript code.

How do I use discriminated unions and branded types to make illegal states unrepresentable in TypeScript?

Using discriminated unions and branded types in TypeScript prevents invalid states by narrowing types through common properties. This Skill demonstrates how to implement these type safety patterns to make illegal states completely unrepresentable at compile time.

What is the best way to define precise types for a complex API client with varying request and response types?

The best way to define precise types for a complex API client is by using generics and conditional types. This Skill helps you model request parameters and response types dynamically based on endpoints and HTTP methods to ensure type safety across your client.

How do mapped types and template literal types work in advanced TypeScript type modeling?

Mapped types and template literal types work in advanced TypeScript type modeling by transforming existing types and generating string-based type variations. This Skill covers how to utilize these features for complex type modeling and robust code design.

Can I generate API documentation and implement runtime validation using advanced TypeScript types?

Yes, you can generate API documentation and implement runtime validation using advanced TypeScript types. This Skill addresses challenges in type system design and provides patterns to validate runtime data and generate accurate API documentation.