What problem does it solve?
Contributors often face challenges understanding and adhering to a library's unique architectural patterns and functional programming paradigms. This Skill streamlines the development process for functype, ensuring consistency and reducing the learning curve for new and existing contributors.
Core Features & Use Cases
- Architectural Guidance: Understand functype's Scala-inspired patterns like Constructor, Base, and Companion, ensuring consistent code structure.
- Interface Implementation: Get checklists and examples for correctly implementing functional interfaces such as Functor, Monad, and Foldable.
- New Type Creation: Utilize a step-by-step guide and script to generate boilerplate for new data structures, accelerating development.
- Use Case: When adding a new
MyNewType to the library, this skill guides you through defining its interface, implementing the constructor, adding companion methods, and ensuring all functional laws are met, saving hours of trial-and-error.
Quick Start
To generate boilerplate for a new type (e.g., Result):
./claude/skills/functype-developer/scripts/new-type-template.sh Result
To run the full validation workflow before committing:
pnpm validate