repository-pattern

Installation
SKILL.md

Repository Pattern

Overview

This skill helps implement the repository pattern used in this workout tracker application. The pattern provides a clean abstraction over Dexie (IndexedDB) with type-safe interfaces, consistent error handling, and standardized CRUD operations.

Architecture Overview

Layered Approach:

Interfaces → Implementations → Provider → Public API
    ↓              ↓              ↓           ↓
db/interfaces  db/impl/dexie  db/provider  db/index

Flow:

  1. Define repository interface in db/interfaces.ts
  2. Implement with Dexie in db/implementations/dexie/[entity].ts
  3. Register in factory provider (db/implementations/dexie/index.ts)
Related skills
Installs
12
GitHub Stars
12
First Seen
Jan 24, 2026