byanantbhandarkar· 31 skills
Stars
14
Category
Make It Right (ASP.NET Core module). ASP.NET Core + Minimal APIs + EF Core + Entity Framework migrations specific reliability augmentation. Use alongside mir-backend and mir-backend-dotnet when the target stack is ASP.NET Core or Minimal APIs — it carries the mechanical footguns the runtime-agnostic tiers deliberately omit: DI lifetime errors in practice (AddDbContext Scoped vs singleton capture, IHttpContextAccessor caveats), middleware pipeline ORDER (UseRouting → UseAuthentication → UseAuthorization → endpoints; wrong order silently disables auth), model binding overposting / mass assignment onto EF entities, response DTO discipline to prevent field leakage, EF Core N+1 (lazy loading raises in async contexts, use Include/projection/AsNoTracking), async-all-the-way in endpoints with CancellationToken from the request, object-level authorization (IDOR via valid token without resource check), antiforgery for cookie auth, and the Options pattern for config. TRIGGER only when the .NET backend stack uses ASP.NET Core or Minimal APIs — building, reviewing, or debugging a controller, endpoint, middleware, EF Core query, or migration. Always loads TOGETHER WITH mir-backend (gates) and mir-backend-dotnet (CLR runtime concerns: sync-over-async, thread-pool starvation, ValueTask, IDisposable, DI captive dependency, CancellationToken); this module adds only ASP.NET Core / EF Core library mechanics. SKIP for other frameworks or runtimes (WCF, Nancy, non-.NET stacks).
$npx -y skills add anantbhandarkar/make-it-right --skill mir-backend-dotnet-aspnetcoreInstalls into the current project.
Run `npx skills use "https://github.com/anantbhandarkar/make-it-right" --skill "anantbhandarkar/make-it-right/mir-backend-dotnet-aspnetcore"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/anantbhandarkar/make-it-right" that are relevant to the current task. Run `npx skills add "https://github.com/anantbhandarkar/make-it-right"` and select the relevant skills, then follow their instructions.