Skip to content
Back to skills

Aspnet Core Patterns

ASecurity

ASP.NET Core patterns for middleware order, DI lifetimes, HttpContext, CORS, CSRF, uploads, and 9 to 11 changes. Load before any edit in an ASP.NET Core app, however small, and for ASP.NET questions.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsc#api

Works with

  • api

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add ku5ic/claude-kit --skill aspnet-core-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Aspnet Core Patterns?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Aspnet Core Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ku5ic-aspnet-core-patterns/badge)](https://www.skillsdirectory.com/skills/ku5ic-aspnet-core-patterns)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: aspnet-core-patterns
description: ASP.NET Core patterns for middleware order, DI lifetimes, HttpContext, CORS, CSRF, uploads, and 9 to 11 changes. Load before any edit in an ASP.NET Core app, however small, and for ASP.NET questions.
---

# ASP.NET Core patterns

Default assumption: ASP.NET Core 11 on .NET 11, per the ASP.NET Core release notes and the .NET support policy. 11 (STS) and 10 (LTS) are supported to 2028-11-14; 8 and 9 reached end of support on 2026-11-10.

A row applies when the app's `TargetFramework` is at least the row's version.

C# itself is csharp-patterns.

## Reference files

Loading this skill isn't enough. Before your next edit, read the file of every row that matches it. The rules live in those files, and this one only points at them.

| Before                                                                                 | Read                                                     |
| -------------------------------------------------------------------------------------- | -------------------------------------------------------- |
| Writing ASP.NET Core code, or raising the target framework                             | [reference/upgrades.md](reference/upgrades.md)           |
| Writing, changing, or reviewing ASP.NET Core code                                      | [reference/anti-patterns.md](reference/anti-patterns.md) |
| Writing an endpoint, antiforgery, or a background task, or resolving a service         | [reference/practices.md](reference/practices.md)         |
| Editing `Program.cs`: middleware, CORS, HTTPS, auth, error pages, OpenAPI, or services | [reference/program.md](reference/program.md)             |
| Configuring the ASP.NET Core or .NET SDK analyzers                                     | [reference/tooling.md](reference/tooling.md)             |

Files in this skill

  • SKILL.md1.8 KB
  • reference/anti-patterns.md4.4 KB
  • reference/practices.md987 B
  • reference/program.md2.8 KB
  • reference/tooling.md1.2 KB
  • reference/upgrades.md7.1 KB
  • sources.md8.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.