g1joshi/agent-skills/aspnet-core
Claude Code and agent skill by g1joshi/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Expert ASP.NET Core assistance covering Minimal APIs, Controller routing, Entity Framework Core, middleware, and dependency injection. Use when building enterprise .NET backend APIs and cloud services.
Install
npx vskill@latest install g1joshi/agent-skills/aspnet-coreSKILL.md
The same SKILL.md was published earlier as g1joshi/agent-skills/aspnet-core.
ASP.NET Core
Cross-platform, high-performance framework for building modern web apps.
When to Use
- High-Performance Enterprise Backends: Developing mission-critical APIs, microservices, and gRPC services on .NET 8 / 9.
- Cloud-Native Containerized Applications: Microservices deployed to Kubernetes, Azure Container Apps, or AWS ECS.
- Real-Time Bidirectional Communication: Scalable WebSocket and SSE apps using SignalR.
- Full-Stack C# Web Development: Blazor Server, Blazor WebAssembly, and Minimal APIs with C# 13.
Quick Start
Core Concepts
Minimal APIs with Typed Results & OpenAPI
Lightweight, high-performance endpoint mapping with zero controller ceremony:
Dependency Injection, Options Pattern & Configuration
Strongly typed configuration with validation:
Global Error Handling Middleware & Problem Details
Standardized RFC 7807 error responses:
Common Patterns
Minimal API Endpoint Group with Validation
Problem: Controller-heavy boilerplate for simple microservice CRUD endpoints.
Solution: Use ASP.NET Core Minimal APIs with Route Groups:
Best Practices
Do:
- Use Minimal APIs for microservices to maximize throughput and minimize cold-start latency.
- Return
IResult/TypedResultsfrom endpoints for compile-time response verification. - Use
IHttpClientFactorywith Polly resilience pipelines for external HTTP calls. - Enable AOT (Ahead-of-Time) compilation (
PublishAot=true) for microservices to slash memory footprint.
Don't:
- Call
.Resultor.Wait()on async Tasks; always useawaitto prevent thread pool starvation. - Register transient services in singletons without scoping via
IServiceScopeFactory. - Log sensitive credentials or PII; configure logging sanitization filters.
Troubleshooting
| Error | Cause | Solution | |
|---|---|---|---|
InvalidOperationException: Unable to resolve service for type ... | Service not registered in DI container. | Register service in builder.Services.AddScoped<IService, Service>(). | |
System.Text.Json.JsonException: A possible object cycle was detected | Circular reference in Entity Framework navigation properties. | Configure ReferenceHandler.IgnoreCycles in JSON options or return DTOs. | |
HTTP 500.30 - ANCM In-Process Start Failure | Startup exception during application bootstrapping in IIS / Kestrel. | Inspect stdoutLogEnabled="true" in web.config or review event viewer logs. |
References
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/frameworks/aspnet-core/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/g1joshi/agent-skills/aspnet-core)