ef-core
Skill0 starsChanged 4 days agoMITView on GitHub
Use when working with Entity Framework Core in .NET applications, needing guidance on data context design, entity design, performance optimization, migrations, querying patterns, change tracking, security, or testing strategies.
7 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- codewithmukesh/dotnet-agent-kittheir own version, first seen Nov 29, 2026
- codewithmukesh/dotnet-claude-kittheir own version, first seen Nov 8, 2026
- github/awesome-copilotedited, first seen Oct 25, 2026
- Resgrid/Coretheir own version, first seen Oct 8, 2026
- RorroRojas3/maf-agentsedited, first seen Sep 10, 2026
- solakpetri/Enzo.Ai.Skillstheir own version, first seen Aug 13, 2026
Used with
Projects with it also use de-sloppify, instinct-system and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
ResgridSkillde-sloppify
Systematic code cleanup pipeline for .NET projects. Runs 7 ordered steps: formatting, unused usings, analyzer warnings, dead code removal, TODO resolution, sealed class audit, and CancellationToken propagation. Each step is verified independently with tests between phases. Load this skill when: "clean up", "de-sloppify", "tidy up", "remove dead code", "code cleanup", "housekeeping", "tech debt", "fix warnings", "seal classes", "add CancellationToken", "unused usings", "format code".
Also in 3 projects that use this
ResgridSkillinstinct-system
Confidence-scored instinct system for learning project-specific patterns through an observe-hypothesize-confirm cycle. Instincts start as low-confidence hypotheses and graduate to permanent rules in MEMORY.md once confirmed. Stored per-project in .Codex/instincts.md. Load this skill when you notice a recurring pattern, want to track a project convention, encounter "learn this", "I think they always", "notice a pattern", "instinct", "hypothesis", "confidence", or when starting a session (to load existing instincts).
Also in 3 projects that use this
MovGP0Skillmodern-csharp
Modern C# style guidance for Bendex and MicroSea code changes, including primary constructors, expression-bodied members, var usage, target-typed new, lambdas, and pattern matching.
Also in 3 projects that use this
sirdavidhuangSkillopentelemetry
Implement OpenTelemetry (OTEL) observability - Collector configuration, Kubernetes deployment, traces/metrics/logs pipelines, instrumentation, and troubleshooting. Use when working with OTEL Collector, telemetry pipelines, observability infrastructure, or Kubernetes monitoring.
Also in 3 projects that use this
MicrosoftSkillresilience
Apply resilience patterns (retry, backoff, circuit breaking) when writing or reviewing code that makes outbound HTTP/REST calls, database operations, or any I/O that can experience transient failures. Use this skill when: (1) writing new code that calls external services or APIs, (2) reviewing code that uses fetch, HTTP clients, or service-to-service calls, (3) adding queue consumers or workers that interact with remote systems, (4) debugging intermittent failures in production.
Also in 3 projects that use this
vmoranvSkillconfiguration
Configuration reference: every environment variable, profile, and threshold for jshookmcp
Also in 3 projects that use this
- +2 more from Resgrid
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- github/awesome-copilot★ 42k97% same
- RorroRojas3/maf-agents★ 097% same
Wrote their own version · 5
- codewithmukesh/dotnet-agent-kit★ 853same name
- codewithmukesh/dotnet-claude-kit★ 853same name
- Resgrid/Core★ 240same name
- rloisell/rl-agents-n-skills★ 8same name
- solakpetri/Enzo.Ai.Skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository67 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- abp-angularSkill
- abp-application-layerSkill
- abp-app-nolayersSkill
- abp-authorizationSkill
- abp-blazorSkill
- abp-cliSkill
- abp-coreSkill
- abp-dddSkill
- abp-dependency-rulesSkill
- abp-development-flowSkill
- abp-ef-coreSkill
- abp-infrastructureSkill
- abp-microserviceSkill
- abp-moduleSkill
- abp-mongodbSkill
- abp-multi-tenancySkill
- abp-mvcSkill
- abp-testingSkill
- aspnet-core-apiSkill
- brainstormingSkill
- building-mcp-serversSkill
- caveman-commitSkill
- caveman-compressSkill
- caveman-reviewSkill
- cavemanSkill
- chrome-devtoolsSkill
- create-agent-harnessSkill
- defuddleSkill
- design-patternsSkill
- dispatching-parallel-agentsSkill
- efcore-patternsSkill
- entity-framework-coreSkill
- executing-plansSkill
- find-skillsSkill
- finishing-a-development-branchSkill
- fluentui-blazorSkill
- github-issuesSkill
- harness-repo-structureSkill
- json-canvasSkill
- memory-mergerSkill
- microsoft-agent-frameworkSkill
- microsoft-code-referenceSkill
- microsoft-docsSkill
- microsoft-skill-creatorSkill
- migrate-aspnetboilerplate-to-abpSkill
- modern-csharp-coding-standardsSkill
- performance-optimizationSkill
- postgresql-code-reviewSkill
- postgresql-optimizationSkill
- premium-frontend-uiSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- rtk-token-killerSkill
- security-jwtSkill
- sonarqube-fixSkill
- sql-code-reviewSkill
- sql-optimizationSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
30 rules. 0 are common, 30 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
30
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Keep DbContext classes focused and cohesive
- Distinctive: line 14
Use constructor injection for configuration options
- Distinctive: line 17
Consider using DbContextFactory pattern for console apps or tests
- Distinctive: line 21
Use meaningful primary keys (consider natural vs surrogate keys)
- Distinctive: line 23
Use data annotations or fluent API for constraints and validations
- Distinctive: line 25
Consider using owned entity types for value objects
- Distinctive: line 29
Use AsNoTracking() for read-only queries
- Distinctive: line 31
Use Include() to eager load related entities when needed
- Distinctive: line 32
Consider projection (Select) to retrieve only required fields
- Distinctive: line 33
Use compiled queries for frequently executed queries
- Distinctive: line 34
Avoid N+1 query problems by properly including related data
- Distinctive: line 38
Create small, focused migrations
- Distinctive: line 40
Verify migration SQL scripts before applying to production
- Distinctive: line 41
Consider using migration bundles for deployment
- Distinctive: line 42
Add data seeding through migrations when appropriate
- Distinctive: line 46
Use IQueryable judiciously and understand when queries execute
- Distinctive: line 47
Prefer strongly-typed LINQ queries over raw SQL
- Distinctive: line 48
Use appropriate query operators (Where, OrderBy, GroupBy)
- Distinctive: line 49
Consider database functions for complex operations
- Distinctive: line 54
Use appropriate change tracking strategies
- Distinctive: line 57
Consider using transactions for multiple operations
- Distinctive: line 58
Use appropriate DbContext lifetimes (scoped for web apps)
- Distinctive: line 62
Avoid SQL injection by using parameterized queries
- Distinctive: line 65
Consider data encryption for sensitive information
- Distinctive: line 66
Use migrations to manage database user permissions
- Distinctive: line 70
Use in-memory database provider for unit tests
- Distinctive: line 71
Create separate testing contexts with SQLite for integration tests
- Distinctive: line 73
Test migrations in isolated environments
- Distinctive: line 74
Consider snapshot testing for model changes
- Distinctive: line 76
When reviewing my EF Core code, identify issues and suggest improvements that follow these best practices.
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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)
- Implement proper relationships (one-to-one, one-to-many, many-to-many)
- Use data annotations or fluent API for constraints and validations
- Implement appropriate navigational properties
- Consider using owned entity types for value objects
Performance
- Use AsNoTracking() for read-only queries
- Implement pagination for large result sets with Skip() and Take()
- Use Include() to eager load related entities when needed
- Consider projection (Select) to retrieve only required fields
- Use compiled queries for frequently executed queries
- Avoid N+1 query problems by properly including related data
Migrations
- Create small, focused migrations
- Name migrations descriptively
- Verify migration SQL scripts before applying to production
- Consider using migration bundles for deployment
- Add data seeding through migrations when appropriate
Querying
- Use IQueryable judiciously and understand when queries execute
- Prefer strongly-typed LINQ queries over raw SQL
- Use appropriate query operators (Where, OrderBy, GroupBy)
- Consider database functions for complex operations
- Implement specifications pattern for reusable queries
Change Tracking & Saving
- Use appropriate change tracking strategies
- Batch your SaveChanges() calls
- Implement concurrency control for multi-user scenarios
- Consider using transactions for multiple operations
- Use appropriate DbContext lifetimes (scoped for web apps)
Security
- Avoid SQL injection by using parameterized queries
- Implement appropriate data access permissions
- Be careful with raw SQL queries
- Consider data encryption for sensitive information
- Use migrations to manage database user permissions
Testing
- Use in-memory database provider for unit tests
- Create separate testing contexts with SQLite for integration tests
- Mock DbContext and DbSet for pure unit tests
- Test migrations in isolated environments
- Consider snapshot testing for model changes
When reviewing my EF Core code, identify issues and suggest improvements that follow these best practices.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

