aspnet-core
Skill này làm gì
Skill này hướng dẫn công việc trên các ứng dụng web ASP.NET Core, gồm Blazor, Razor Pages, MVC, API và tính năng thời gian thực. Skill dành cho lập trình viên xây dựng hoặc bảo trì ứng dụng web .NET.
Khi nào nên dùng
- ✓Khi bạn bắt đầu một ứng dụng ASP.NET Core mới và cần chọn giữa Blazor, Razor Pages, MVC hoặc Minimal API.
- ✓Khi bạn cần thêm xác thực, SignalR, gRPC hoặc công việc nền cho một ứng dụng ASP.NET Core.
- ✓Khi bạn muốn rà soát hoặc nâng cấp một dự án ASP.NET Core hiện có lên phiên bản mới hơn.
Liên kết skill
https://github.com/openai/skills/blob/main/skills/.curated/aspnet-core/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tôi muốn xây một ứng dụng web ASP.NET Core nhỏ có đăng nhập. Nên chọn loại ứng dụng nào và bắt đầu thế nào?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill yêu cầu agent xác nhận phiên bản framework, đọc hướng dẫn cho loại ứng dụng đã chọn và chỉ tải các ghi chú tham chiếu phù hợp với công việc.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
- Confirm the target framework, SDK, and current app model.
- Open references/stack-selection.md first for new apps or major refactors.
- Open references/program-and-pipeline.md next for
Program.cs, DI, configuration, middleware, routing, logging, and static assets. - Open exactly one primary app-model reference:
- Add cross-cutting references only as needed:
- Open references/versioning-and-upgrades.md before introducing new platform APIs into an older solution or when migrating between major versions.
- 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
WebApplicationBuilderandWebApplication. Avoid olderStartupandWebHostpatterns 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
- references/_sections.md: Quick index and reading order.
- references/stack-selection.md: Choose the right ASP.NET Core application model and template.
- references/program-and-pipeline.md: Structure
Program.cs, services, middleware, routing, configuration, logging, and static assets. - references/ui-blazor.md: Build Blazor Web Apps, choose render modes, and use components, forms, and JS interop correctly.
- references/ui-razor-pages.md: Build page-focused server-rendered apps with handlers, model binding, and conventions.
- references/ui-mvc.md: Build controller/view applications with clear separation of concerns.
- references/apis-minimal-and-controllers.md: Build HTTP APIs with Minimal APIs or controllers, including validation and response patterns.
- references/data-state-and-services.md: Use EF Core,
DbContext, options,IHttpClientFactory, session, temp data, and app state responsibly. - references/security-and-identity.md: Apply authentication, authorization, Identity, secrets, data protection, CORS, CSRF, and HTTPS guidance.
- references/realtime-grpc-and-background-work.md: Use SignalR, gRPC, and hosted services.
- references/testing-performance-and-operations.md: Add integration tests, browser tests, caching, compression, health checks, rate limits, and deployment concerns.
- references/versioning-and-upgrades.md: Hand
Câu hỏi thường gặp
Skill có giúp chọn đúng loại ứng dụng không?
Có. Skill bắt đầu bằng hướng dẫn chọn stack cho ứng dụng mới hoặc các đợt tái cấu trúc lớn.
Skill có bao quát bảo mật và kiểm thử không?
Có. Skill có các tài liệu về identity, phân quyền, kiểm thử, hiệu năng và triển khai.
Skill chỉ dành cho dự án mới phải không?
Không. Skill cũng bao gồm việc rà soát, tái cấu trúc và nâng cấp ASP.NET Core.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 28k
- Vị trí xếp hạng
- #9844
- Giấy phép
- —
- Cập nhật
- 28/10/2026
Bình luận
- …
Thêm skill từ kho mã này
chatgpt-apps
28kGiúp agent của bạn xây dựng ứng dụng ChatGPT kết hợp server MCP với giao diện widget, gồm thiết kế tool, tài nguyên UI, metadata và thiết lập cục bộ.
cli-creator
28kGiúp agent của bạn biến tài liệu API, spec hoặc script có sẵn thành một công cụ dòng lệnh dùng lại được, chạy từ mọi thư mục và trả về JSON ổn định.
define-goal
28kGiúp agent của bạn biến một ý định mơ hồ thành mục tiêu rõ ràng, đo được, với tiêu chí thành công, phạm vi và điều kiện dừng trước khi bắt đầu việc.
figma-code-connect-components
28kGiúp agent của bạn liên kết các component thiết kế Figma với phiên bản mã của chúng bằng Code Connect, để thiết kế và mã luôn nhất quán.
Skill tương tự
api-connector-builder
280kGiúp agent của bạn xây dựng kết nối API mới theo đúng mẫu đã có, dùng khi bạn cần thêm một tích hợp mà không tạo cách làm mới.
api-design
280kGiúp agent của bạn thiết kế REST API theo các thực hành tốt nhất, hữu ích để định nghĩa cách API giao tiếp, hiển thị lỗi và tổ chức dữ liệu.
backend-patterns
280kGiúp agent của bạn với các mẫu kiến trúc phía máy chủ và tối ưu cơ sở dữ liệu, hữu ích khi xây dựng hoặc rà soát code chạy trên máy chủ.