ef-core-persistence

ef-core-persistence is a skill for Claude Code from vaquarkhan/Fullstack-development-agent-skills. It costs 40 tokens per session (507 once invoked), scanned A, original, MIT.

Guidance for storing and querying relational database data with EF Core 8, a .NET library that maps database tables to application objects.

In plain words
What is it for?
Use it to define entities and mappings, create and review migrations, configure database connections, add auditing or tenant filters, optimize queries, and test with realistic SQL Server or PostgreSQL containers.
Why use it?
It helps avoid slow queries, unsafe schema changes, concurrency problems, and testing approaches that do not resemble production databases.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the fullstack-development-agent-skills plugin — 129 skills, 10 commands shipped together

Good fit Use it to define entities and mappings, create and review migrations, configure database connections, add auditing or tenant filters, optimize queries, and test with realistic SQL Server or PostgreSQL containers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vaquarkhan/fullstack-development-agent-skills/ef-core-persistence
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add vaquarkhan/Fullstack-development-agent-skills --skill ef-core-persistence
Clone the repo
git clone --depth 1 https://github.com/vaquarkhan/Fullstack-development-agent-skills

Made for: Claude Code.

Or install fullstack-development-agent-skills, the plugin that ships this one along with the rest of its 129 skills, 10 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ef-core-persistence

README.md
[![agentmods](https://agentmods.dev/badge/skills/vaquarkhan/fullstack-development-agent-skills/ef-core-persistence/github.svg)](https://agentmods.dev/skills/vaquarkhan/fullstack-development-agent-skills/ef-core-persistence)
Your own site
<a href="https://agentmods.dev/skills/vaquarkhan/fullstack-development-agent-skills/ef-core-persistence"><img src="https://agentmods.dev/badge/skills/vaquarkhan/fullstack-development-agent-skills/ef-core-persistence/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ef-core-persistence

Your own site · 80×15
<a href="https://agentmods.dev/skills/vaquarkhan/fullstack-development-agent-skills/ef-core-persistence"><img src="https://agentmods.dev/badge/skills/vaquarkhan/fullstack-development-agent-skills/ef-core-persistence.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 507 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.00507
Opus 5.5 $0.00016 $0.00203
Sonnet 5.5 $0.00008 $0.00101
Haiku 4.5 $0.00004 $0.00051

Measured 1mo ago against content hash d7c398dcc41a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ef-core-persistence scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skill-packs/dotnet/efcore/ef-core-persistence/SKILL.md · 61 lines

How it starts

The opening of the file, as written. The whole thing — 61 lines — stays where its author put it; the contents beside it link to each section on GitHub.

EF Core Persistence

Use When

  • Implementing EF Core data access in ASP.NET Core services
  • Designing entities, configurations, migrations, and query performance
  • Pairing with aspnetcore-minimal-apis or skills/dotnet-aspnet-core-microservices

Workflow

  1. Define entities and IEntityTypeConfiguration classes per aggregate.
  2. Register DbContext with pooled factory; configure connection resiliency.
  3. Use migrations with review for locking — prefer expand/contract for large tables.
  4. Implement repositories or specifications; project to DTOs in queries.
  5. Add interceptors for auditing, soft delete, or multi-tenant filters.
  6. Test with Testcontainers SQL Server/Postgres or in-memory only for unit scope.

Required Checks

  • No N+1 — use Select projections or explicit Include with purpose
  • AsNoTracking on read-only queries
  • Concurrency tokens on contested aggregates
  • Migrations tested against production-like row counts when tables are large

Examples And Templates

See examples/ for side-by-side good vs bad patterns agents commonly get wrong. See templates/ for copy-paste starters aligned with this skill.

Decision Framework

  • Prefer configurations over data annotations for team consistency.
  • Owned types for value objects; avoid primitive obsession on entities.
  • Raw SQL only for reporting or bulk ops — document and parameterize.
  • Split read models (Dapper/raw SQL) when EF projections are insufficient.

Common Rationalizations And Rebuttals

  • "Lazy loading is convenient." -> Causes N+1 in APIs; use explicit loading or projections.
  • "One DbContext for everything." -> Bounded contexts may need separate contexts.
  • "Migrate in app startup always." -> Run migrations in CI/CD job with rollback plan.

Evidence Pack

  • Migration script with expand/contract notes
  • Query plan or EF logging proof for critical list endpoints
  • Concurrency conflict test output
  • Interceptor audit sample (created/updated by)

Exit Criteria

  • Queries are tracked appropriately; hot paths avoid N+1
  • Migrations are safe for production table sizes
  • Multi-tenant or soft-delete rules enforced at persistence layer

Read the full file on GitHub · 61 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 61 lines · 40 tokens per session scan A d7c398dcc41a

Subscribe to this mod's changes

ef-core-persistence is a skill published in the GitHub repository vaquarkhan/Fullstack-development-agent-skills (3 stars, last pushed 1mo ago), licensed MIT. It adds 40 tokens to every session and 507 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

sod

Use when needing a multi-paradigm .NET ORM — EntityBase + EntityQuery CRUD, OQL chain queries with oql.Limit paging, MyBatis-style SQL-MAP XML via SqlMapper, AdoHelper raw SQL, MyDB.GetDBHelperByConnectionName. Also for identity keys not written back after Insert, dirty-field updates, and provider switching across…

znlgis/opengis-skills · 102 tokens

ruoyi-cloud

Use when scaffolding a Java Spring Cloud microservice backend — Nacos discovery and config, Spring Cloud Gateway auth filter, Sentinel rate limiting, Seata distributed transactions, RBAC menus, code generator for CRUD plus Vue pages. RuoYi-Cloud v3.6.8 (Spring Boot 4.0.3, Spring Cloud 2025.1.0, JDK 17). Also for…

znlgis/opengis-skills · 124 tokens

crawl-engine-map

Module map of the crawlberg core crate (engine, HTTP, tower layers, HTML pipeline, feature-gated browser/ai/mcp/api/warc modules, types). Use when finding where crawl logic lives in crates/crawlberg.

xberg-io/crawlberg · 48 tokens

spring-boot-4-conventions

Spring Framework 7 / Spring Boot 4 idioms and defaults. Use when writing or reviewing controllers, services, configuration, HTTP clients, async/virtual-thread code, or anything touching Spring's programming model.

loiane/specs-driven-development-spring-angular · 50 tokens

others-skills

Use when needing Go language development, desktop RPA automation, self-hosted email marketing, Java Spring Cloud scaffolding, SSL/TLS certificate automation, Docker Compose multi-container orchestration, FFmpeg audio/video transcoding or HLS slicing, or building a bilingual children's Phaser/Vue game collection. Index…

znlgis/opengis-skills · 104 tokens

spring-boot

Spring Boot 3.x - Java framework for production-ready applications with dependency injection, REST APIs, data access, security, and actuator monitoring.

bobmatnyc/claude-mpm-skills · 31 tokens