跳到正文
Skillpedia
API 与服务器(后端)28k · #9844

aspnet-core

它能做什么

这项技能指导 ASP.NET Core 网络应用的工作,涵盖 Blazor、Razor Pages、MVC、API 和实时功能。适合构建或维护 .NET 网络应用的开发者。

适用场景

  • ✓当你要开始一个新的 ASP.NET Core 应用,需要在 Blazor、Razor Pages、MVC 或 Minimal APIs 之间做选择的时候。
  • ✓当你需要为 ASP.NET Core 应用添加身份验证、SignalR、gRPC 或后台任务的时候。
  • ✓当你想审阅现有的 ASP.NET Core 项目或将其升级到更新版本的时候。

技能链接

https://github.com/openai/skills/blob/main/skills/.curated/aspnet-core/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/openai/skills/blob/main/skills/.curated/aspnet-core/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我想构建一个带登录功能的小型 ASP.NET Core 网络应用。应该选择哪种应用类型,又该如何开始?”

每周 5 个新技能,1 分钟读完。

工作原理

它要求智能体确认框架版本,阅读所选应用类型的指导,并只加载与任务匹配的参考说明。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

ASP.NET Core

Overview

Choose the right ASP.NET Core application model, compose the host and request pipeline correctly, and implement features in the framework style Microsoft documents today.

Load the smallest set of references that fits the task. Do not load every reference by default.

Workflow

  1. Confirm the target framework, SDK, and current app model.
  2. Open references/stack-selection.md first for new apps or major refactors.
  3. Open references/program-and-pipeline.md next for Program.cs, DI, configuration, middleware, routing, logging, and static assets.
  4. Open exactly one primary app-model reference:
  5. Add cross-cutting references only as needed:
  6. Open references/versioning-and-upgrades.md before introducing new platform APIs into an older solution or when migrating between major versions.
  7. Use references/source-map.md when you need the Microsoft Learn section that corresponds to a task not already covered by the focused references.

Default Operating Assumptions

  • Prefer the latest stable ASP.NET Core and .NET unless the repository or user request pins an older target.
  • As of March 2026, prefer .NET 10 / ASP.NET Core 10 for new production work. Treat ASP.NET Core 11 as preview unless the user explicitly asks for preview features.
  • Prefer WebApplicationBuilder and WebApplication. Avoid older Startup and WebHost patterns unless the codebase already uses them or the task is migration.
  • Prefer built-in DI, options/configuration, logging, ProblemDetails, OpenAPI, health checks, rate limiting, output caching, and Identity before adding third-party infrastructure.
  • Keep feature slices cohesive so the page, component, endpoint, controller, validation, service, data access, and tests are easy to trace.
  • Respect the existing app model. Do not rewrite Razor Pages to MVC or controllers to Minimal APIs without a clear reason.

Reference Guide

常见问题

它能帮助选择合适的应用类型吗?

可以,这项技能从针对新应用或大型重构的技术栈选择指南开始。

它涵盖安全和测试吗?

涵盖,它包括关于身份、授权、测试、性能和部署的参考资料。

它只适用于新项目吗?

不是,它也涵盖审阅、重构和 ASP.NET Core 升级。

详情

作者的原始描述

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.

repo: openai/skills

热度

GitHub 星标
28k
排名
#9844
许可证
—
更新时间
2026/10/28

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能