be-create-repository

Generate Entity Framework Core repositories with CRUD operations and DI-friendly patterns.

1|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/bmslabs/bmlabs-projects-templates --skill be-create-repository
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: be-create-repository
Source: https://github.com/bmslabs/bmlabs-projects-templates/tree/main/api-dotnet/.github/skills/be-create-repository
Command: npx skills add https://github.com/bmslabs/bmlabs-projects-templates --skill be-create-repository

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generating consistent, reusable repositories in .NET Core with Entity Framework to standardize data access and persistence across projects.

Core Features & Use Cases

  • Generate a generic base repository implementing IRepository<T> and a concrete Repository<T, Context> with CRUD operations and DI-friendly patterns.
  • Create specific entity repositories that inherit from the base, aligning with the Repository Pattern and enabling custom overrides where needed.
  • Ensure consistent naming, XML documentation, and DI-friendly configuration for rapid project bootstrap.

Quick Start

Provide the entity name to generate a repository class (e.g., "Producto") and the skill will output a ready-to-use Repository class following the established conventions.

Frequently Asked Questions about be-create-repository

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate an Entity Framework Core repository for a specific entity?

To generate an Entity Framework Core repository, provide the entity name and the skill outputs a ready-to-use Repository class with standard CRUD operations, DI-friendly configuration, and XML documentation.

What is the repository pattern in .NET and when should I use it?

The repository pattern in .NET standardizes data access and persistence by centralizing CRUD operations. Use it when you need consistent data layers across services or want to decouple business logic from Entity Framework Core.

Does the generated repository support dependency injection in .NET Core?

Yes, the generated repository supports dependency injection in .NET Core. It creates a generic IRepository&lt;T&gt; interface and a concrete Repository&lt;T, Context&gt; class designed specifically for DI-friendly project bootstrapping.

Can I override CRUD operations in specific entity repositories?

Yes, specific entity repositories inherit from the generic base repository, aligning with the Repository Pattern and enabling custom overrides for CRUD operations where needed.

What is the best way to standardize data access layers across multiple .NET services?

The best way to standardize data access layers is to use a generic base repository implementing IRepository&lt;T&gt; for shared CRUD operations, ensuring consistent naming, XML documentation, and DI readiness across all .NET services.