ef-core Skill for Claude: Entity Framework Core Best Practices
Makes Claude review your Entity Framework Core code and suggest fixes against a checklist of EF Core best practices.
- Installs
- 9.6K
- on skills.sh
- Stars
- 40.7K
- on GitHub
- Updated
- Oct 2026
- last repo commit
SKILL.md lists 5 or 6 best-practice points under each of 8 headings: data context design, entity design, performance, migrations, querying, change tracking and saving, security, and testing. It ends by asking Claude to identify issues in your EF Core code and suggest improvements that follow them.
It is one short file with no code blocks and no scripts.
Good for
- C# developers using Entity Framework Core for data access
- Reviewers who want a consistent EF Core checklist
Install ef-core
Claude Code
- 1
Copy this prompt.
Install the ef-core skill in Claude Code. Run this command: npx skills add https://github.com/github/awesome-copilot --skill ef-core Then check that it loaded and tell me how to use it.
- 2
Paste it into Claude Code. It shows the change and asks before running it.
Requires Node.js.
From its listing on skills.sh. Source.
What's in the skill
When it loads
Get best practices for Entity Framework Core
Sections in SKILL.md
- Data Context Design
- Entity Design
- Performance
- Migrations
- Querying
- Change Tracking & Saving
- Security
- Testing
Key facts
- Installs on skills.sh
- 9,627 (Nov 2, 2026)
- GitHub stars
- 40,666 (Nov 2, 2026)
- License
- MIT
- Last repo commit
- Oct 30, 2026
What it includes
Keep DbContext focused; configure entities with IEntityTypeConfiguration.
Also covers constructor injection, OnModelCreating and the DbContextFactory pattern for console apps or tests.
Data Context DesignKeys, relationships, constraints, navigation properties and owned types.
Suggests owned entity types for value objects.
Entity DesignAsNoTracking for reads, pagination, projection, compiled queries, avoid N+1.
Use Include() to eager load related entities when needed.
PerformanceSmall, descriptively named migrations; check the SQL before production.
Also mentions migration bundles for deployment and data seeding through migrations.
MigrationsKnow when IQueryable runs; prefer typed LINQ over raw SQL.
Also mentions database functions and the specifications pattern.
QueryingBatch SaveChanges, handle concurrency, use transactions, scope the DbContext.
Scoped lifetime is suggested for web apps.
Change Tracking & SavingParameterized queries, careful raw SQL, access permissions, encryption.
Also suggests using migrations to manage database user permissions.
SecurityIn-memory provider for unit tests, SQLite for integration tests.
Also mentions mocking DbContext and DbSet, testing migrations in isolation and snapshot testing for model changes.
Testing
From the official docs
Questions
What does the ef-core skill do?
It makes Claude check your Entity Framework Core code against a best-practice list and suggest improvements. The list has 8 headings with 5 or 6 points each.
How do I use it?
Install it, then ask Claude to review your EF Core code, for example "review this DbContext with the ef-core skill". SKILL.md ends by asking for issues and suggested improvements.
How do I install ef-core?
Use the install box above. The skills CLI command works for Claude Code and Codex, and the Claude tab shows the ZIP upload for the Claude app.
Does it need an API key or database access?
SKILL.md names no key, database connection or tool, and the folder bundles no scripts.
Is it safe to use?
It is advice in one file and bundles no scripts. If you ask Claude to apply the suggestions, it edits your code, so review the changes. Check any migration SQL yourself, as the skill itself advises.
How is it different from csharp-docs?
ef-core covers data access and database practice. csharp-docs covers XML documentation comments. Both are separate skills in github/awesome-copilot.
Information
updated Nov 2, 2026
- Repository
- github/awesome-copilot
- Folder
skills/ef-core
Sources
Docs, issue trackers and discussions this page is built from.
Show all 3Hide
- ef-core SKILL.md · github.com
- awesome-copilot README · github.com
- csharp-docs SKILL.md · github.com