Start a fresh conversation. Replace the highlighted placeholders.
Use ef-core to review [EF Core code or design] and provide prioritized improvements for context and entity design, query performance, migrations, and security.
Required inputs
[EF Core code or design]
User-approved starter prompt based on a pinned source version; check current skill requirements before running. Task evidence ↗
SKILL.md
name: ef-coredescription: 'Get best practices for Entity Framework Core'
Entity Framework Core Best Practices
Your goal is to help me follow best practices when working with Entity Framework Core.
Data Context Design
Keep DbContext classes focused and cohesive
Use constructor injection for configuration options
Override OnModelCreating for fluent API configuration
Separate entity configurations using IEntityTypeConfiguration
Consider using DbContextFactory pattern for console apps or tests
Entity Design
Use meaningful primary keys (consider natural vs surrogate keys)