What problem does it solve? Extracting features from a Next.js app into shared workspace packages triggers a recurring cluster of failures: tsup dts emission errors, Tailwind v4 CSS not resolving across packages, lost 'use client' directives, CVA variant typing collapsing under strict TypeScript, and pnpm peer-dependency boundary issues. This Skill captures the working resolutions for each of these problems in this codebase. ## Core Features & Use Cases - Package boundary design: Rules for co-locating generator scripts, mirroring tsup entries with package.json subpath exports, and spotting mis-classified primitives before extraction. - Build and bundling fixes: Two-phase dts strategy with transpilePackages, .js extensions for relative imports, and banner-based 'use client' preservation. - Tailwind v4 cross-package setup: @source directive requirements and pure-token theme.css patterns so utility classes from package primitives are emitted. - Strict TypeScript interactions: Fixes for CVA Omit<> collapse, exactOptionalPropertyTypes forwarding, Radix boolean coercion, motion.button spread casts, and noUncheckedIndexedAccess guards. - Use Case: When moving a design-system primitive from apps/web/src into packages/webui, follow the documented checklist to avoid empty styles, dts failures, and server-component import errors. ## Quick Start Ask the assistant to apply the monorepo skill when extracting a feature from apps/web into a new workspace package and have it verify exports, dts, Tailwind @source, and strict-TS variant typing.