usecase
Installation
SKILL.md
Use Case Skill
Installation: If not already installed, add the package with pnpm add @efesto-cloud/usecase.
Use cases are the application layer's entry points in a hexagonal architecture. They orchestrate domain entities, repositories (persistence), and services (email, auth, storage, etc.) to execute a single well-defined business operation.
Each use case ships four artifacts:
- Interface —
useCase/{domain}/I{Name}.ts— the type contract - Implementation —
useCase/{domain}/impl/{Name}.ts— the class - Symbol —
di/Symbols.ts— a new symbol entry - Binding —
di/container.ts— a DI binding line
Read references/templates.md for ready-to-copy code templates.
Before You Start
Gather context if the user hasn't already provided it: