specification-pattern
Installation
SKILL.md
Specification Pattern Generator
Overview
The Specification pattern encapsulates query logic:
- Reusable criteria - Define once, use everywhere
- Composable - Combine with And/Or
- Testable - Test query logic in isolation
- Type-safe - Compile-time checking
Quick Reference
| Component | Purpose |
|---|---|
ISpecification<T> |
Base specification interface |
BaseSpecification<T> |
Abstract implementation |
SpecificationEvaluator |
Applies spec to IQueryable |