Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Reviews and optimizes Entity Framework Core data access: query shape, round-trips, tracking, bulk writes, paging, and indexes.
95% 95%0 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 21 of 22 without it.
This test ran on v2. v3 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Diagnose and fix slow or incorrect application data access built on EF Core. In a source-only review, trace the code without executing it and separate proven code behavior from runtime assumptions. When SQL, logs, or plans are available, use them to confirm the bottleneck. Prefer changes that reduce round-trips, duplicated rows, scans, or per-call translation cost over micro-optimizations.
Includes blow up or duplicate rowsSkip grows, or bulk updates load rows just to modify themDbContext or recommend AsNoTracking, Include, AsSplitQuery, or other EF Core APIs.DbContext, DbSet, repository implementation, unit of work, query helper, or model-building code. Follow the implementation rather than assuming what an interface method does.Queryable or Enumerable, including inside helpers; an IEnumerable can remain a deferred database sequence.DbContext instanceFor a source-only request, recommend runtime validation as a next step.
For raw SQL, prefer EF Core's interpolated overloads (FromSql / FromSqlInterpolated and ExecuteSql[Async]) so values are sent as parameters.
When the user requests a source-only review, distinguish a demonstrated defect from an optimization that still needs workload or deployment evidence:
SaveChanges[Async] is not SaveChanges in a loop. Do not call it a per-row round-trip defect; suggest a bulk API only when the operation is demonstrably large and bypassing tracking semantics is safe.HasIndex calls in one supplied file do not prove that the deployed database lacks indexes. Use relevant model-building code, migrations, or a query plan as evidence. Do not pad a source review with generic conditional index advice when that evidence is absent.AsNoTracking is actionable only on proven read-only entity results. Scalar-only projections have nothing to track, but an entity inside a DTO/record is still tracked by default.Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.