repository-pattern
CommunityAutomate repository patterns with EF Core.
Authorronnythedev
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Developers spend time duplicating repository scaffolding for each aggregate root, re-implementing CRUD and query logic across Domain and Infrastructure layers. This skill generates a consistent repository contract and EF Core-backed implementation, reducing boilerplate and ensuring alignment with the repository pattern.
Core Features & Use Cases
- Generates a Domain interface I{Entity}Repository that defines query and command methods (GetByIdAsync, GetAllAsync, Add, Update, Remove, ExistsAsync).
- Generates an Infrastructure implementation {Entity}Repository that uses EF Core DbContext for data access, with unit-of-work ready integration and cancellation token support.
- Promotes a per-aggregate-root repository approach (not per-entity) and centralizes data-access concerns behind a single repository per aggregate.
Quick Start
Create repository scaffolding for an aggregate root; for example, generate IProductRepository in the domain and ProductRepository in the infrastructure using EF Core.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: repository-pattern Download link: https://github.com/ronnythedev/dotnet-clean-architecture-skills/archive/main.zip#repository-pattern Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.