$npx skillfedfor your agent

Dotnet Idioms

Learn idiomatic .NET 8+ development through minimal APIs, dependency injection, and async-first patterns. Covers Entity Framework Core configuration, middleware design, and testing with xUnit. Build clean, performant, cloud-native applications aligned with modern .NET best practices.

Dotnet Idioms teaches .NET 8+ patterns for minimal APIs, dependency injection, and async-first design.

AI-generated summary based on this skill's SKILL.md

150 48 MITupdated by irahardianto

Decision gist · record as of 2026-07-17

Dotnet Idioms teaches .NET 8+ patterns for minimal APIs, dependency injection, and async-first design. Learn idiomatic .NET 8+ development through minimal APIs, dependency injection, and async-first patterns. Covers Entity Framework Core configuration, middleware design, and testing with xUnit. Build clean, performant, cloud-native applications aligned with modern .NET best practices.

manual: git clone https://github.com/irahardianto/awesome-agv → cp -r awesome-agv/.agents/skills/dotnet-idioms ~/.claude/skills/dotnet-idioms
.agents/skills/dotnet-idioms/SKILL.md · version e060eda4

Use it when

  • Dotnet Idioms covers configuration management through IOptions, IOptionsSnapshot, and IOptionsMonitor patterns.
  • Dotnet Idioms explains Entity Framework Core scoped lifetime management.

Verify before relying

Read SKILL.md below before installing (1 file). Open directory: indexed for reading, not audited.

Same gist for agents: .md · .json

Install

irahardianto/awesome-agv/dotnet-idioms · repository language: JavaScript

Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

.NET 8 minimal APIs best practices and patterns guide?

Dotnet Idioms teaches idiomatic .NET 8+ minimal API patterns that leverage dependency injection and async-first design. The skill covers how to structure endpoints cleanly, use route groups, apply validation middleware, and integrate with Entity Framework Core. Minimal APIs reduce boilerplate compared to controllers while maintaining testability through WebApplicationFactory integration tests and proper DI configuration.

How do you use IOptions configuration in .NET applications?

Dotnet Idioms covers configuration management through IOptions, IOptionsSnapshot, and IOptionsMonitor patterns. Learn to bind strongly-typed settings from appsettings.json, use user secrets for development, and inject configuration into services via dependency injection. The skill explains scoped lifetime semantics and when to choose each options pattern for cloud-native .NET 8+ applications.

What are entity framework core scoped lifetime best practices?

Dotnet Idioms explains Entity Framework Core scoped lifetime management, including DbContext registration patterns and when to use AsNoTracking for read-only queries. The skill covers compiled queries for performance, proper migration workflows with dotnet ef migrations add, and avoiding N+1 queries. Learn how scoped services integrate with minimal API request handling.

How does Dotnet Idioms cover WebApplicationFactory integration testing?

Dotnet Idioms teaches WebApplicationFactory for writing integration tests with xUnit and FluentAssertions. Learn to configure test hosts, override DI registrations, use Respawn for database cleanup between tests, and test middleware behavior. The skill demonstrates testing minimal APIs end-to-end while maintaining isolation and repeatability in your test suite.

What custom middleware and cross-cutting concerns does Dotnet Idioms address?

Dotnet Idioms covers designing custom middleware for global error handling, logging, authentication, and request/response transformation. Learn middleware ordering, async patterns, and how to compose middleware pipelines in minimal API applications. The skill includes static analysis tools like Roslyn analyzers and dotnet format for enforcing code style across your team.

Does Dotnet Idioms cover .NET cloud-native and async-first design?

Yes, Dotnet Idioms emphasizes .NET 8+ cloud-native patterns including async-first design, proper async/await usage, and scalable architecture. The skill teaches dependency injection best practices, configuration management for containerized deployments, and how minimal APIs align with microservices patterns. Build performant, maintainable applications ready for cloud environments.

SKILL.md

Rendered from the published skill. Quoted content, verbatim.

.NET Idioms and Patterns

.NET 8+ rewards minimal APIs, DI, and async-first design. Idiomatic .NET = clean, performant, cloud-native.

> Scope: .NET framework patterns. For C#: @.agents/skills/csharp-idioms/SKILL.md.

Minimal APIs

  1. Minimal APIs for simple endpoints: ```csharp app.MapGet("/api/tasks/{id}", async (string id, ITaskService service) => await service.GetByIdAsync(id) is Task task ? Results.Ok(task) : Results.NotFound());

app.MapPost("/api/tasks", async (CreateTaskRequest request, ITaskService service) => { var task = await service.CreateAsync(request); return Results.Created($"/api/tasks/{task.Id}", task); }); ```

  1. Controllers for complex endpoints with filters, model binding, etc.

Entity Framework Core

  1. DbContext per request (scoped lifetime).
  2. Migrations via CLI: bash dotnet ef migrations add AddTaskPriority dotnet ef database update
  3. AsNoTracking() for read-only queries.
  4. Compiled queries for hot paths.

Configuration

  1. IOptions<T> pattern for

(truncated - see the full file via the links below)

File tree — 1 file
.agents/skills/dotnet-idioms/SKILL.md

Let your AI agent find skills like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.

wish › “Learn idiomatic .NET 8+ patterns for minimal APIs and DI”

Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →

Related skills

Csharp Idioms
by irahardianto · irahardianto/awesome-agv

Learn idiomatic C# patterns that leverage type safety, LINQ expressiveness, and async-first design. This skill covers modern features like nullable reference types, records, and pattern matching, plus practical guidance on error handling, dependency injection, and testing with xUnit.

MITupdated Jul 2026
★ 150repo stars
Java Idioms
by irahardianto · irahardianto/awesome-agv

Java Idioms covers modern language features and conventions for Java 17+ LTS, emphasizing records for immutable data, sealed classes for type-safe hierarchies, and pattern matching in switch expressions. The skill guides constructor injection, domain-specific exception handling, and testing with JUnit 5 and Mockito, alongside static analysis tooling to enforce code quality before commit.

MITupdated Jul 2026
★ 150repo stars
Laravel Idioms
by irahardianto · irahardianto/awesome-agv

Learn Laravel's idiomatic approach to building maintainable applications through Eloquent query scopes, service-oriented architecture, and Form Request validation. Covers testing with Pest, code formatting with Pint, and static analysis via PHPStan to enforce framework best practices.

MITupdated Jul 2026
★ 150repo stars
Kotlin Idioms
by irahardianto · irahardianto/awesome-agv

This skill covers core Kotlin idioms that make code safer and more expressive. Learn null-safety techniques, sealed hierarchies for type-safe results, structured concurrency with coroutines, and naming conventions. Includes practical examples and tooling guidance for formatting and static analysis.

MITupdated Jul 2026
★ 150repo stars
hono-idioms
by irahardianto · irahardianto/awesome-agv

Learn idiomatic Hono patterns for building type-safe HTTP APIs across any runtime. This skill covers router composition, middleware ordering, request validation with Zod, error handling, and end-to-end typed RPC clients—all without code generation.

MITupdated Jul 2026
★ 150repo stars
Spring Boot Idioms
by irahardianto · irahardianto/awesome-agv

Learn idiomatic Spring Boot 3.x patterns grounded in auto-configuration, constructor injection, and actuator-driven observability. Covers dependency injection best practices, Spring Data JPA query methods and projections, REST controller design with DTOs, and structured logging for production readiness. Includes testing patterns for integration and controller slices.

MITupdated Jul 2026
★ 150repo stars
Tags
framework-patternsapi-minimalismorm-practicesconfig-managementmiddleware-designtest-infrastructurecloud-nativecode-quality