aspnet-core

Build ASP.NET Core Web APIs with thin controllers, DI, and SignalR hubs.

3|Updated Oct 8, 2024
One-click install
npx skills add https://github.com/StuartF303/vandaemon --skill aspnet-core
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aspnet-core
Source: https://github.com/StuartF303/vandaemon/tree/main/.claude/skills/aspnet-core
Command: npx skills add https://github.com/StuartF303/vandaemon --skill aspnet-core

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Builds robust ASP.NET Core Web API architectures by promoting thin controllers, DI, and real-time capabilities with SignalR.

Core Features & Use Cases

  • Thin controllers that delegate to application services
  • Dependency injection and singleton service lifetimes
  • SignalR hub integration for real-time updates
  • Background services and health checks to maintain reliability

Quick Start

Create a minimal API by adding a thin controller, register singleton services, configure SignalR, and map the hub in Program.cs.

Frequently Asked Questions about aspnet-core

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure ASP.NET Core Web API controllers to keep them thin?

ASP.NET Core thin controllers delegate request handling directly to injected application services. This pattern separates routing logic from business logic, ensuring your Web API backend remains clean, scalable, and easy to maintain as features grow.

What is the best way to configure SignalR hubs in ASP.NET Core?

Configure SignalR hubs in ASP.NET Core by mapping them programmatically within Program.cs using dependency injection. This approach enables real-time updates across your backend while maintaining robust, scalable service registration patterns for connected clients.

When do I need singleton lifetimes for dependency injection in ASP.NET Core?

Use singleton service lifetimes for ASP.NET Core dependency injection when managing stateful services. Singleton registration ensures a single instance persists across requests, which is required for maintaining reliable background services and real-time SignalR hub state.

Can I add background services and health checks to an ASP.NET Core Web API?

Yes, ASP.NET Core supports integrating background services and health checks to maintain Web API reliability. These features run alongside your controllers and SignalR hubs, ensuring continuous processing and automated monitoring of your backend services.

How do I register services programmatically in ASP.NET Core Program.cs?

Register services programmatically in ASP.NET Core Program.cs by configuring dependency injection lifetimes like singletons for stateful services. This robust service registration pattern ensures your Web API correctly resolves dependencies for thin controllers and background tasks.