utils-builder

Generate pure, type-safe TypeScript utility modules with JSDoc documentation.

1|Updated Mar 17, 2025
One-click install
npx skills add https://github.com/MaciWP/CV_Astro --skill utils-builder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: utils-builder
Source: https://github.com/MaciWP/CV_Astro/tree/main/.claude/skills/utils-builder
Command: npx skills add https://github.com/MaciWP/CV_Astro --skill utils-builder

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

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.