What problem does it solve?
This Skill provides patterns and code snippets to build lightweight, dependency-free TypeScript tools and libraries, reducing bloat and improving performance.
Core Features & Use Cases
- Zero Dependencies: Inline small utilities and use Node.js built-ins to avoid external package bloat.
- Type Safety: Leverage advanced TypeScript features like
const generics and conditional types for robust, type-safe code.
- Composable Primitives: Build complex functionality by composing simple, single-purpose functions.
- Use Case: When creating a new CLI tool, a small utility library, or refactoring existing code to remove unnecessary dependencies, these patterns will guide you to a more maintainable and efficient solution.
Quick Start
Use the lean-ts-patterns skill to inline a simple ANSI color utility function into your project.