typescript-expert-2025

Configure TypeScript projects with tsconfig, linting, and advanced types.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Ghostspeak/GhostSpeak --skill typescript-expert-2025
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-expert-2025
Source: https://github.com/Ghostspeak/GhostSpeak/tree/main/.claude/skills/typescriptskills
Command: npx skills add https://github.com/Ghostspeak/GhostSpeak --skill typescript-expert-2025

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides expert guidance for building and maintaining modern TypeScript projects, helping developers adopt best practices, patterns, and tooling to accelerate high-quality code.

Core Features & Use Cases

  • Expert pattern guidance: covers advanced TypeScript features such as satisfies, as const, template literal types, and mapped types to improve type safety and developer experience.
  • Tooling and runtime guidance: helps choose between Bun, Node 22+, or Deno, configure tsconfig, and publish ESM/CJS packages.
  • Practical workflows: offers best practices for scaffolding projects, linting choices, and performance optimizations for large codebases.

Quick Start

To begin, ask for best-practice TypeScript project setup guidance for your current environment (e.g., "set up a Bun-based TypeScript project with Node-style packaging" or "configure tsconfig for strict mode and ESM") and specify your runtime and linting preferences.

Frequently Asked Questions about typescript-expert-2025

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

FAQPage Schema
How do I configure tsconfig for a modern TypeScript project?

Configure tsconfig by setting strict mode, module resolution, and target runtime. Modern projects typically enable strict, use ESM or CommonJS based on your environment (Bun, Node 22+, or Deno), and adjust lib and target settings. This ensures type safety and compatibility with your chosen runtime.

What's the best way to set up a TypeScript project with Bun or Node 22+?

Choose your runtime (Bun, Node 22+, or Deno), initialize package.json, configure tsconfig for that environment, select a linter (ESLint with TypeScript support), and scaffold your project structure. Each runtime has different module and bundling defaults, so align your tsconfig and tooling choices accordingly.

When should I use advanced TypeScript patterns like satisfies and as const?

Use satisfies to validate a value against a type without changing its inferred type, and as const to narrow literal types and prevent inference widening. These patterns improve type safety in real-world architectures—satisfies catches mismatches early, and as const ensures precise type narrowing for constants and configurations.

What linting setup works best for TypeScript projects?

Linting for TypeScript requires ESLint with typescript-eslint parser and plugins to catch type-related issues and enforce best practices. Pair it with a formatter like Prettier and configure rules aligned with your project's strictness level and coding standards.

How do I publish TypeScript as both ESM and CommonJS packages?

Configure tsconfig to output both module formats, use conditional exports in package.json to direct ESM and CommonJS consumers to the correct entry points, and ensure your build process generates both versions. This lets downstream projects choose their preferred import style.

What are template literal types and when do I use them?

Template literal types combine literal strings with union types to generate precise string types. Use them to model constrained string patterns, enforce naming conventions, or derive types from string patterns—they're powerful for type-safe APIs and configuration objects.