Recommends database indexes for EF Core entities by analyzing query patterns (filters, joins, ordering) and generates HasIndex configuration. Useful for optimizing slow queries or designing indexes.
Ships in TheCodeMan .NET AI ToolKit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Find the indexes a model is missing by looking at how its entities are queried, and emit the HasIndex configuration (plus column order and includes) — without over-indexing.
Works on a target: a folder, project/solution, or GitHub URL. Find query patterns and current indexes with:
grep -rn "\.Where(\|\.OrderBy\|\.Join(\|\.FirstOrDefault\|\.Single" --include=*.cs <target>
grep -rn "HasIndex\|IsUnique" --include=*.cs <target>
For each frequently-queried entity, map predicates → index:
AND equality filters → composite index (most selective / most common first).OrderBy after a filter → include the sort column in the composite to avoid a sort..IncludeProperties(...)).modelBuilder.Entity<Order>()
.HasIndex(o => new { o.CustomerId, o.Status, o.CreatedAt }) // filter CustomerId+Status, sort CreatedAt
.HasDatabaseName("IX_Orders_Customer_Status_Created");
modelBuilder.Entity<Order>()
.HasIndex(o => o.ExternalRef).IsUnique();
EXPLAIN ANALYZE (Postgres) / actual execution plan (SQL Server) and ToQueryString() to verify the index is used."What indexes does this project need?", "why is this query slow — missing index?", "design a composite index for filtering by customer+status and sorting by date". Pairs with ef-core-query-optimizer.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ef-core, index-advisor, database-indexing, query-optimization
49 skills in this plugin
/adonet-data-access-auditorAudit and fix classic ADO.NET data-access code (SqlConnection / SqlCommand / SqlDataReader / DataSet) on .NET Framework. Use this skill whenever the user shares raw ADO.NET code, a DAL / repository built on SqlCommand, stored-proc calls, string-concatenated SQL, or mentions SQL injection, parameterized queries, connection leaks, "using / Dispose", reading the same column multiple times, transactions, or "why does my old data layer leak connections / is it safe". Always use this skill for classic ADO.NET review instead of answering from memory; it applies a fixed security + correctness + performance checklist and rewrites the code./async-await-auditorAudit C#/.NET code for async/await anti-patterns and concurrency bugs. Use this skill whenever the user shares async C# code or asks about deadlocks, async void, .Result/.Wait(), blocking calls, ConfigureAwait, sync-over-async, fire-and-forget tasks, CancellationToken usage, or "why does my async code hang/deadlock". Always use this skill for async correctness/performance reviews instead of answering from memory; it applies a fixed checklist and rewrites the code./authorization-policy-generatorDesign ASP.NET Core authorization — policy-based, role-based, and claims/requirement-based with custom authorization handlers and resource-based checks. Use this skill whenever the user wants authorization policies, role/claim checks, custom AuthorizationHandler, resource-based authorization, permission checks, or asks "how do I authorize this / policy vs role / restrict this endpoint to X". Always use this skill for authorization requests; it generates policies, handlers, and endpoint wiring./dotnet-ai-toolkit:ef-index-advisorfrom TheCodeMan .NET AI ToolKit
npx claudepluginhub stefanthecode/dotnet-ai-toolkit --plugin dotnet-ai-toolkitOther plugins' skills for the same job