Ef Core Patterns
Use EF Core safely with explicit configurations, migrations, concurrency control, bounded queries, and clear transaction behavior. Use when designing persistence models, repositories, DbContext usage, or migration workflows.
Install
npx skills add DIL8654/claude-code-dotnet-template --skill ef-core-patternsgit clone --depth 1 https://github.com/DIL8654/claude-code-dotnet-template.git /tmp/claude-code-dotnet-template
mkdir -p ~/.claude/skills
cp -r /tmp/claude-code-dotnet-template/.claude/skills/ef-core-patterns ~/.claude/skills/ef-core-patternsPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# EF Core Patterns Skill
Use EF Core in a way that is explicit, testable, and operationally safe.
## When to Use
- Adding or changing entities
- Designing DbContext boundaries
- Reviewing repository usage
- Writing migrations
- Tuning query or transaction behavior
---
## Quick Reference: Common Issues
| Issue | Symptom | Impact |
|-------|---------|--------|
| Attribute-heavy entities | Mapping spread across domain classes | Persistence concerns leak into core model |
| Unbounded queries | `ToListAsync()` without limits on large collections | Memory and latency problems |
| Missing concurrency token | Silent last-write-wins updates | Lost data under concurrent edits |
| Generic repository overuse | Repository duplicates `DbContext` blindly | More code, less clarity |
| Manual schema changes | Database changed outside migrations | Drift between code and schema |
---
## Entity Mapping
### Prefer Configuration Classes
```csharp
// GOOD: Separate persistence mapping from domain model
public sealed class WorkItemConfiguration : IEntityTypeConfiguration<WorkItem>
{
public void Configure(EntityTypeBuilder<WorkItem> builder)
{
builder.ToTable("WorkItems");
builder.HasKey(workItem => workItem.Id);
builder.Property(workItem => workItem.Title).HasMaxLength(200).IsRequired();
builder.Property(workItem => workItem.RowVersion).IsRowVersion();
}
}
```Details
- Skill name
ef-core-patterns- Repository
- DIL8654/claude-code-dotnet-template
- Path
.claude/skills/ef-core-patterns/SKILL.md- License
- GPL-3.0
- Repo updated
- 24 March 2026
FAQ
What does the Ef Core Patterns skill do?
Use EF Core safely with explicit configurations, migrations, concurrency control, bounded queries, and clear transaction behavior. Use when designing persistence models, repositories, DbContext usage, or migration workflows.
How do I install the Ef Core Patterns skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add DIL8654/claude-code-dotnet-template --skill ef-core-patterns. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Ef Core Patterns popular?
It lives in DIL8654/claude-code-dotnet-template, which has 9 GitHub stars and 5 forks.
Related skills
API Contract Review
9DIL8654/claude-code-dotnet-template
Review ASP.NET Core Web API contracts for HTTP semantics, versioning, backward compatibility, and response consistency. Use when the user asks to review an API, check endpoints, validate REST behavior, or before releasing contract changes.
Architecture Review
9DIL8654/claude-code-dotnet-template
Review Clean Architecture boundaries, dependency direction, layering decisions, and abstraction quality in .NET solutions. Use when evaluating project structure, new dependencies, service boundaries, or architectural drift.
Azure Integration
9DIL8654/claude-code-dotnet-template
Add Azure services to .NET applications with Managed Identity, typed options, infrastructure isolation, and production-safe configuration. Use when wiring Key Vault, App Configuration, Storage, Service Bus, or Azure Identity patterns.
Pbr Material Pipeline
9mukadeshinigami/claude-pbr-texture-agents
Full workflow for turning a user-supplied PBR texture set (zips of maps, scan or procedural) into the standard deliverables - ball + plane stills, .blend scenes, optional GLB, turntable, texture sheet - with a coordinator and specialist subagents. Use for any "build the scene as usual / new texture project / assemble the maps" request.
Bar
9HaasStefan/skills-lint
A bar skill file that handles repetitive text processing and generation tasks.
Workflow Maker
10charlie947/skills-for-everyone
Turn a process you run (or one you want someone else to run) into a prompt pack a stranger can paste and run. Numbered steps, one paste-able prompt per step, a line under each saying what good output looks like, and an honest run time, all written for one named tool (ChatGPT, Gemini, the Claude app, Cowork or Claude Code). Every tool, menu and setting a step names gets checked against live docs first. Use when the user wants to hand a process to a teammate, a client or a VA, write down how a job gets done so it stops living in their head, or hands over an idea and wants the exact prompts and r
Browse the most popular Claude skills, all productivity & notes skills, or write your own with the skills generator.