repository-pattern

Installation
SKILL.md

Repository Pattern Generator

Overview

This skill generates Repositories that provide an abstraction over data access:

  • Interface in Domain layer - Defines data access contract
  • Implementation in Infrastructure - Uses EF Core
  • Per Aggregate Root - Not per entity
  • Unit of Work integration - SaveChanges via IUnitOfWork

Quick Reference

Repository Method Purpose Returns
GetByIdAsync Retrieve by primary key Entity?
GetByXxxAsync Retrieve by business key Entity?
GetAllAsync Retrieve all (use sparingly) IReadOnlyList<Entity>
Add Track new entity void
Related skills
Installs
10
GitHub Stars
52
First Seen
Mar 1, 2026