be-setup-program

Generate a .NET 8+ API Program.cs with authentication, EF Core, DI, Swagger, CORS, Serilog, and health checks.

1|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/bmslabs/bmlabs-projects-templates --skill be-setup-program
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: be-setup-program
Source: https://github.com/bmslabs/bmlabs-projects-templates/tree/main/api-dotnet/.github/skills/be-setup-program
Command: npx skills add https://github.com/bmslabs/bmlabs-projects-templates --skill be-setup-program

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation and configuration of the ASP.NET Core 8+ Program.cs startup file, ensuring consistent wiring of authentication, EF Core, DI, Swagger, CORS, logging, and middleware.

Core Features & Use Cases

  • Standardized bootstrap for new APIs and standardized upgrades of existing projects.
  • Supports configuring authentication (Azure AD/JWT vs test in development), DI layers, DbContext, health checks, Serilog logging, and Swagger integration.
  • Use Case: Start a fresh ASP.NET Core 8+ API project or refactor an existing one to follow enterprise-grade startup patterns with a clean, maintainable Program.cs.

Quick Start

Generate a complete Program.cs skeleton for a .NET 8+ API including authentication, EF Core, DI, Swagger, CORS, Serilog, and health checks.

Frequently Asked Questions about be-setup-program

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

FAQPage Schema
How do I configure Program.cs for an ASP.NET Core 8 API with Serilog, Swagger, and EF Core?

Configuring an ASP.NET Core 8 API startup file involves wiring authentication, EF Core, DI, Swagger, CORS, Serilog, and health checks. This Skill generates a complete Program.cs bootstrap that enforces best practices for middleware order, configuration, and modular dependency registration.

What is the best way to structure dependency injection in a .NET 8 Program.cs file?

The best way to structure dependency injection in a .NET 8 Program.cs file is through modular dependency registration. This Skill automates setting up clean DI layers alongside other enterprise-grade startup patterns for maintainable API configuration.

Can I use this to upgrade an existing ASP.NET Core API to enterprise-grade startup patterns?

Yes, you can upgrade an existing ASP.NET Core API to enterprise-grade startup patterns. This Skill refactors current projects by generating a standardized Program.cs bootstrap that applies clean middleware ordering, Serilog, health checks, and environment-specific configurations.

Does the generated Program.cs bootstrap include health checks and CORS configuration?

Yes, the generated Program.cs bootstrap includes health checks and CORS configuration. It automatically wires these components along with authentication, EF Core, DI, Swagger, and Serilog logging to ensure a fully production-ready ASP.NET Core API setup.

When do I need to enforce specific middleware order in ASP.NET Core startup configuration?

You need to enforce specific middleware order in ASP.NET Core startup configuration to ensure authentication, authorization, and exception handling execute correctly. This Skill applies best practices for middleware sequencing within Program.cs for both development and production environments.