首页/后端开发/aspnet-core
A

aspnet-core

by @openaiv1.0.0
3.9(15)

选择正确的ASP.NET Core应用模型,按框架风格实现功能和管道配置

api-developmentbackend-developmentdotnetGitHub
安装方式
npx skills add openai/skills --skill aspnet-core
compare_arrows

Before / After 效果对比

1
使用前

开发者不熟悉ASP.NET Core应用模型选择,加载不必要的依赖导致性能下降,管道配置混乱,代码不符合框架最佳实践。

使用后

根据场景选择最小应用模型,按框架风格配置请求管道,加载必要依赖,代码简洁高效,性能和可维护性显著提升。

description SKILL.md

aspnet-core

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

references/ui-blazor.md

references/data-state-and-services.md

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

Execution Notes

  • When generating new code, start from the correct dotnet new template and keep the generated structure recognizable.

  • When editing an existing solution, follow the solution's conventions first and use these references to avoid framework misuse or outdated patterns.

  • When a task mentions "latest", verify the feature on Microsoft Learn or the ASP.NET Core docs repo before relying on memory.

Weekly Installs253Repositoryopenai/skillsGitHub Stars15.3KFirst SeenMar 4, 2026Security AuditsGen Agent Trust HubPassSocketPassSnykPassInstalled oncodex237cursor228github-copilot227opencode227gemini-cli227kimi-cli226

forum用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价,来写第一条吧

统计数据

安装量296
评分3.9 / 5.0
版本1.0.0
更新日期2026年3月25日
对比案例1 组

用户评分

3.9(15)
5
0%
4
0%
3
0%
2
0%
1
0%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code

时间线

创建2026年3月25日
最后更新2026年3月25日