What problem does it solve?
This Skill automates the generation of comprehensive predicates (for equality checks and filtering) and orders (for sorting) for domain types, leveraging typeclass patterns. This significantly reduces boilerplate code and ensures consistency in how domain data is compared and ordered.
Core Features & Use Cases
- Typeclass-Driven Generation: Automatically creates equality and ordering instances based on existing typeclass implementations.
- Compositional Patterns: Utilizes
Equivalence.mapInput, Equivalence.combine, Order.mapInput, and Order.combine for flexible and powerful data manipulation.
- Use Case: When working with complex domain objects like
Task or Appointment, this Skill provides ready-to-use functions to check if two tasks are equal by ID, sort a list of appointments by status and then by time, or filter appointments scheduled within a specific date range.
Quick Start
Use the domain-predicates skill to generate an equivalence instance for the Task schema.