What problem does it solve? Setting up a TypeScript library involves many error-prone decisions: package.json exports for dual CJS/ESM output, tsconfig options, build tool selection, type declaration generation, testing, and npm release workflows. This Skill consolidates proven patterns from projects like unocss, shiki, unplugin, vite, vitest, vueuse, zod, trpc, and drizzle-orm into on-demand reference guides. ## Core Features & Use Cases - Project & Build Setup: Covers project scaffolding (single package or pnpm monorepo with catalogs), package.json exports for dual CJS/ESM, tsconfig configuration, and build tooling with tsdown or unbuild. - API & Type Design: Provides patterns for options resolution, factory functions, builders, plugins (unplugin), lazy getters, plus advanced TypeScript type patterns like brand types, module augmentation, and type accumulation. - Testing & Release: Guides vitest setup (fixtures, type-level tests, coverage), ESLint via @antfu/eslint-config, GitHub Actions CI, OIDC-based npm publishing with provenance, and pkg-pr-new PR previews. - Use Case: You are starting a new npm package and need correct exports, a tsdown build producing .mjs/.cjs/.d.ts, vitest tests, and a tag-triggered OIDC release workflow—load only the relevant reference files for each step. ## Quick Start Ask the AI to set up a new TypeScript library with dual CJS/ESM exports, a tsdown build, vitest tests, and an npm release workflow.