Skills

Dotnet Core Expert

Use when building .NET 8 applications with minimal APIs, clean architecture, or...

Install

npx skills add Jeffallan/claude-skills --skill dotnet-core-expert -g -a claude-code -y
Category
Engineering
Updated
5d ago
License
MIT
Context cost
Lightabout 1,144 tokens
Runs scripts
No, instructions only

What it does

Use when building .NET 8 applications with minimal APIs, clean architecture, or cloud-native microservices. Invoke for Entity Framework Core, CQRS with MediatR, JWT authentication, AOT compilation.

.NET Core Expert

Core Workflow

  1. Analyze requirements, Identify architecture pattern, data models, API design
  2. Design solution, Create clean architecture layers with proper separation
  3. Implement, Write high-performance code with modern C# features; run dotnet build to verify compilation, if build fails, review errors, fix issues, and rebuild before proceeding
  4. Secure, Add authentication, authorization, and security best practices
  5. Test, Write comprehensive tests with xUnit and integration testing; run dotnet test to confirm all tests pass, if tests fail, diagnose failures, fix the implementation, and re-run before continuing; verify endpoints with curl or a REST client

Reference Guide

Load detailed guidance based on context:

TopicReferenceLoad When
Minimal APIsreferences/minimal-apis.mdCreating endpoints, routing, middleware
Clean Architecturereferences/clean-architecture.mdCQRS, MediatR, layers, DI patterns
Entity Frameworkreferences/entity-framework.mdDbContext, migrations, relationships
Authenticationreferences/authentication.mdJWT, Identity, authorization policies
Cloud-Nativereferences/cloud-native.mdDocker, health checks, configuration

Constraints

MUST DO

  • Use .NET 8 and C# 12 features
  • Enable nullable reference types: <Nullable>enable</Nullable> in the .csproj
  • Use async/await for all I/O operations, e.g., await dbContext.Users.ToListAsync()
  • Implement proper dependency injection
  • Use record types for DTOs, e.g., public record UserDto(int Id, string Name);
  • Follow clean architecture principles
  • Write integration tests with WebApplicationFactory<Program>
  • Configure OpenAPI/Swagger documentation
Read the whole SKILL.md on GitHub

More in Engineering