What problem does it solve? Building reliable long-running background services in .NET requires handling cancellation, scoped dependencies, graceful shutdown, and observability correctly—mistakes lead to silent crashes, resource leaks, and ungraceful terminations. ## Core Features & Use Cases - BackgroundService Patterns: Implement workers using BackgroundService, PeriodicTimer, queue consumers, and event-driven designs with proper cancellation token propagation. - Graceful Shutdown & Health Checks: Configure shutdown timeouts, override StopAsync for cleanup, and expose liveness/readiness probes for Kubernetes deployments. - Anti-Pattern Detection: Identify and fix common mistakes like captive scoped dependencies, async void methods, tight polling loops, and unhandled exceptions. - Use Case: You need to extract a background job from an ASP.NET Core app into a standalone worker process that consumes a queue, handles poison messages, and reports health to Kubernetes. ## Quick Start Use the dotnet-worker-services skill to create a BackgroundService worker that processes a queue with scoped DbContext access, graceful shutdown, and health checks.