What problem does it solve?
This Skill provides a comprehensive convention for organizing and exporting types in TypeScript-based projects (e.g., apps/type), addressing issues like export conflicts, duplicated exports, and inconsistent export entry points. It guides how to structure directories, when to export all versus individual members, and how to consolidate common types within a predictable export surface.
Core Features & Use Cases
- Full export syntax: Always use export * from "./module" to re-export all members, avoiding scattered named exports.
- Unified export entry points: Create index.ts files at root and per-module levels to provide a single export surface.
- Avoid duplicate exports: Centralize shared types and options to prevent conflicts and streamline maintenance.
- Use-case: In a large type project, consolidating all types under apps/type with a consistent export path simplifies imports and reduces refactoring risk.
Quick Start
Tell the AI to apply the type project organization rules to the repository: replace scattered type exports with a unified export approach, create index.ts exports at each level, and move shared types to a common common/ area.