All skills
openai avatar

/aspnet-core

@c207989 official
by openaiopenai/skills28k stars
1,891

Build, review, refactor, or architect ASP.NET Core web applications using current official guidance for .NET web development. Use when working on Blazor Web Apps, Razor Pages, MVC, Minimal APIs, controller-based Web APIs, SignalR, gRPC, middleware, dependency injection, configuration, authentication, authorization, testing, performance, deployment, or ASP.NET Core upgrades.

Use this Skill: https://skilld.dev/gh/openai/skills/aspnet-core

This session only. Nothing lands on disk.

referencesui-blazor.md

≈620 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Blazor

Primary docs:

Choose Blazor Deliberately

Prefer Blazor when the UI itself should be built as reusable .NET components and the team wants a full-stack .NET model.

Current guidance centers on the Blazor Web App model, which can combine:

  • static SSR for fast first render
  • interactive server rendering
  • interactive WebAssembly rendering
  • per-component render mode choices

Use standalone Blazor WebAssembly only when the app is intentionally client-heavy or must run as static files without a server-rendered host.

Render Mode Heuristics

  • Start with static SSR when the page is mostly read-only and fast first paint matters
  • Use interactive server rendering when you want rich interactivity without shipping the full .NET runtime to the browser
  • Use interactive WebAssembly when offline capability, client-side execution, or browser-local compute is the point
  • Mix render modes only when the split is clear and justified

Component Patterns

  • Keep components focused and composable
  • Move data access and business rules into injected services
  • Pass data through parameters, not hidden global state
  • Use forms and validation with Blazor's built-in editing and validation components
  • Prefer shared Razor Class Libraries for reusable component sets

Data And Interactivity

  • Use DI in components with restraint; avoid turning components into service locators
  • Treat JS interop as an edge mechanism for browser APIs or third-party libraries, not the primary application model
  • Keep long-running work off the UI event path
  • Be deliberate about prerendering, streaming rendering, and enhanced navigation when they improve perceived performance

Security Notes

  • Follow the general ASP.NET Core security guidance first, then load the Blazor-specific docs for details that supersede it
  • Remember that client-side code and browser state are not trusted
  • Keep secrets and privileged operations on the server
  • Use authorization-aware UI only as a convenience layer; enforce rules on the server as well

When Not To Use Blazor

  • Do not force Blazor onto a mostly conventional server-rendered app that already fits Razor Pages or MVC well
  • Do not choose WebAssembly by default for small interaction needs that SSR or interactive server rendering handles more simply

Source: SKILL.md on GitHub

1 warning16d5 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    This skill provides a comprehensive set of guidelines and reference materials for ASP.NET Core development, emphasizing security best practices and official architectural patterns. It does not contain any malicious patterns or unauthorized operations.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

  • Runlayer7mo

    6/16 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at c207989. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Activeupdated 7 months ago
  • Testing
  • aspnet-core
  • dotnet
  • csharp
  • blazor
  • razor-pages
  • mvc
  • minimal-apis
  • ef-core
  • signalr
  • grpc
  • authentication

README badge

README badge for openai/skills/aspnet-core

Instructs Claude on ASP.NET Core application models (Blazor Web Apps, Razor Pages, MVC, Minimal APIs), host and pipeline setup, dependency injection, configuration, authentication, testing, and deployment using current Microsoft documentation. Use for building or refactoring .NET web applications and deciding between framework patterns.

Generated from the current SKILL.md.

Does this skill cover Blazor, Razor Pages, MVC, and Minimal APIs?
Yes. The skill includes dedicated references for each application model (Blazor Web Apps, Razor Pages, MVC, and Minimal/controller-based APIs) and guides you to load only the one you need for your task.
What .NET versions does this skill target?
The skill defaults to .NET 10 / ASP.NET Core 10 for new production work as of March 2026, but adapts to older pinned versions and handles migrations between major versions via the versioning-and-upgrades reference.
Does this skill use third-party libraries or stick to built-in ASP.NET Core features?
The skill prefers built-in features (DI, options, logging, ProblemDetails, OpenAPI, health checks, rate limiting, Identity) before introducing third-party infrastructure.
Can this skill help with authentication, authorization, and data access?
Yes. Cross-cutting references cover security/identity, EF Core, DbContext, and state management, loaded on-demand based on your specific task.
Does this skill guide upgrades from older ASP.NET Core versions?
Yes. The versioning-and-upgrades reference specifically handles breaking changes, obsolete APIs, and migrations between major versions.

Generated from the current SKILL.md. These answers refresh after source changes.