Skip to main content

aspnet-core

ASP.NET Core 8+ expert for building modern .NET web APIs and applications. Covers Minimal APIs, MVC, Entity Framework, and authentication.

소스 정보

저장소
skeletorflet/opencode-kit
최근 소스 활동
2026년 3월 31일 18:16
감지된 SKILL.md 언어
영어
스타
10
포크
1

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
aspnet-core
description
ASP.NET Core 8+ expert for building modern .NET web APIs and applications. Covers Minimal APIs, MVC, Entity Framework, and authentication.
license
MIT
compatibility
opencode
metadata
{"audience":"developers","category":"backend"}
# ASP.NET Core Expert ## What I Do - Build APIs with Minimal APIs and MVC controllers - Configure Entity Framework Core with proper patterns - Implement authentication with JWT and Identity - Set up dependency injection and middleware pipelines - Configure Swagger/OpenAPI documentation ## When to Use Me - Creating ASP.NET Core applications - Building REST APIs with .NET - Setting up Entity Framework Core - Implementing authentication and authorization - Configuring middleware and pipelines ## Key Principles 1. **Minimal APIs First**: Use Minimal APIs for simple endpoints 2. **Vertical Slice Architecture**: Organize by feature, not layer 3. **Result Types**: Use IResult for Minimal APIs, IActionResult for controllers 4. **EF Core Tracking**: Use AsNoTracking() for read-only queries 5. **Configuration**: Use IOptions<T> pattern for typed configuration ## Common Patterns ### Minimal API ```csharp var builder = WebApplication.CreateBuilder(args); builder.Services.AddDbContext<AppDbContext>(opt => opt.UseSqlServer(builder.Configuration.GetConnectionString("Default"))); var app = builder.Build(); app.MapGet("/api/users/{id}", async (int id, AppDbContext db) => await db.Users.FindAsync(id) is User user ? Results.Ok(user) : Results.NotFound()); app.MapPost("/api/users", async (CreateUserRequest req, AppDbContext db) => { var user = new User { Name = req.Name, Email = req.Email }; db.Users.Add(user); await db.SaveChangesAsync(); return Results.Created($"/api/users/{user.Id}", user); }); app.Run(); ``` ## Validation ```bash dotnet build dotnet test dotnet run ```
GitHub에서 보기