ts-library

Guide TypeScript library development with ESM-first, dual-format build tooling.

1|1|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/Kurrawong/prez-lite --skill ts-library-kurrawong
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ts-library
Source: https://github.com/Kurrawong/prez-lite/tree/main/.claude/skills/ts-library
Command: npx skills add https://github.com/Kurrawong/prez-lite --skill ts-library-kurrawong

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide and best practices for developing robust, maintainable, and performant TypeScript libraries, streamlining the entire development lifecycle from setup to release.

Core Features & Use Cases

  • Project Setup: Guidance on structuring new TypeScript libraries and monorepos.
  • Build Tooling: Configuration for modern build tools like tsdown and unbuild.
  • API Design: Patterns for creating type-safe, flexible, and user-friendly APIs.
  • Testing & Release: Strategies for effective testing and automated release workflows.
  • Use Case: When starting a new open-source TypeScript package, use this Skill to ensure it follows industry best practices for exports, typing, and build processes.

Quick Start

Use the ts-library skill to set up a new TypeScript library project.

Frequently Asked Questions about ts-library

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

FAQPage Schema
How do I set up a TypeScript library with ESM-first and dual-format support?

To set up a TypeScript library with ESM-first and dual-format support, follow modern project structuring patterns that configure package exports for both module systems. This approach ensures broad consumer compatibility while leveraging native ESM features.

What is the best way to configure build tools like tsdown and unbuild for a TypeScript package?

Configuring build tools like tsdown and unbuild for a TypeScript package involves defining compilation targets and entry points to generate optimized, dual-format bundles. This streamlines the build process and ensures correct export resolution.

How does type inference improve API design in TypeScript libraries?

Type inference improves API design in TypeScript libraries by automatically deducing complex return types, reducing the need for explicit manual annotations. This creates type-safe, flexible, and user-friendly developer experiences without excessive boilerplate.

Can I use this Skill for monorepo project setup and automated release workflows?

Yes, you can use this Skill for monorepo project setup and automated release workflows. It provides specific guidance on structuring monorepos and implementing release strategies to streamline the development lifecycle from setup to publication.

What testing strategies should I use when authoring a high-quality TypeScript library?

Effective testing strategies for a high-quality TypeScript library focus on validating type safety, API behavior, and build outputs. Integrating these tests into automated workflows ensures robust and maintainable package releases.