What problem does it solve?
This Skill automates the creation of high-quality, maintainable utility functions, ensuring they are pure, type-safe, well-documented, and adhere to best practices for reusability and testability.
Core Features & Use Cases
- Pure & Type-Safe Functions: Generates utility functions with explicit TypeScript types, comprehensive JSDoc, and strict adherence to the pure function paradigm (no side effects).
- Modular Organization: Creates focused utility modules (e.g.,
formatters.ts, constants.ts, chartRenderer.ts) to prevent "god objects" and improve code organization.
- Use Case: Create a
formatters.ts utility module with functions to format milliseconds into human-readable duration (e.g., '2h 30m') and bytes into human-readable size (e.g., '1.5 MB'), ensuring all functions are pure and type-safe.
Quick Start
Create a formatters.ts utility module with functions to format milliseconds into human-readable duration (e.g., '2h 30m') and bytes into human-readable size (e.g., '1.5 MB'). Ensure all functions are pure and type-safe.