← Browse

@skeletorflet/aspnet-core

A

ASP.NET Core web framework. Use when building .NET web APIs, Minimal APIs, MVC apps, Blazor components, Entity Framework Core, Identity/JWT auth, or middleware pipelines.

skillclaude

Install

agr install @skeletorflet/aspnet-core --target claude

Writes 1 file into .claude/skills/, pinned to git-db6d94e4.

  • .claude/skills/aspnet-core/SKILL.md

Document


name: aspnet-core description: ASP.NET Core web framework. Use when building .NET web APIs, Minimal APIs, MVC apps, Blazor components, Entity Framework Core, Identity/JWT auth, or middleware pipelines.

aspnet-core

Cross-platform, high-performance framework for modern web applications on .NET.

Core Concepts

  • Minimal APIs: lightweight HTTP endpoints with top-level statements, minimal ceremony for microservices
  • MVC pattern: controllers with attribute routing, model binding, and view rendering (Razor)
  • Middleware pipeline: request/response components in configurable order (auth, logging, CORS, static files)
  • DI Container: built-in dependency injection with scoped, transient, and singleton lifetimes

Common Patterns

  • Entity Framework Core: code-first migrations, LINQ queries, eager loading, change tracking
  • Blazor WASM/Server: client-side WebAssembly or server-rendered interactive components via SignalR
  • Identity/JWT auth: ASP.NET Core Identity for user management, JWT bearer tokens for API auth
  • Background services: IHostedService / BackgroundService for scheduled tasks and queue processing

Best Practices

  • Program.cs as single startup entry point with clean separation of service registration and middleware config
  • Action filters for cross-cutting concerns like validation, logging, and caching
  • IOptions<T> pattern for strongly-typed configuration with reload-on-change support
  • Integration tests with WebApplicationFactory over the full HTTP pipeline

Common Code Patterns

  • app.MapGet("/api/products", handler) for Minimal API endpoints
  • services.AddDbContext<AppDbContext>(o => o.UseSqlServer(connStr)) for DI registration

Trustgrade A

  • passBody integrity

    Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.

  • passType matchnot applicable to this artifact type

    Whether the artifact is really the kind of thing its metadata claims it is.

  • passFreshness

    How long since the source repository was last pushed to.

  • passPrompt injection

    Scans the artifact's own text for instructions aimed at your agent rather than at you.

  • passLicense

    Whether the source repository declares an SPDX license permissive enough to redistribute.

How the grade is calculated

Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:

  • Aevery check passed
  • Bone warning
  • Ctwo warnings
  • Dprompt injection or body integrity failed, or three warnings
  • Fone of those failed, and something else is wrong

These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.

Versions

  • git-db6d94e463cd2026-07-31