foundation-dotnet

Configure ASP.NET Core API boilerplate with JSON serialization, CORS, and response wrappers.

12|2|Updated May 4, 2020
One-click install
npx skills add https://github.com/hoangnh2412/jarvis --skill foundation-dotnet
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: foundation-dotnet
Source: https://github.com/hoangnh2412/jarvis/tree/main/.opencode/skills/foundation-dotnet
Command: npx skills add https://github.com/hoangnh2412/jarvis --skill foundation-dotnet

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the tedious manual work of configuring repetitive ASP.NET Core API boilerplate for Jarvis framework projects, including JSON serialization settings, CORS policies, standardized API response wrappers, and work context services, ensuring consistency and reducing development time for new and existing backend services.

Core Features & Use Cases

  • Standardized API Responses: Automatically wraps API responses in a consistent BaseResponse format for configurable path patterns, removing inconsistent response structures across endpoints.
  • Pre-configured Foundation Services: Includes out-of-the-box setup for JSON serialization policies, CORS configuration, and IWorkContext for tenant and user context management, cutting down manual setup effort.
  • Use Case: For a team building a new Jarvis-based ASP.NET Core backend, this skill removes the need to write boilerplate code for response wrapping, CORS, and JSON settings, letting developers focus on business logic instead.

Quick Start

Use the foundation-dotnet skill to initialize the Jarvis foundation for your ASP.NET Core Host project, including standardized BaseResponse wrapping, CORS configuration, and JSON serialization settings.

Frequently Asked Questions about foundation-dotnet

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

FAQPage Schema
How do I standardize ASP.NET Core API response formats for consistent output?

You can standardize ASP.NET Core API responses by applying a configurable response wrapper that automatically wraps endpoint outputs in a consistent BaseResponse format, removing inconsistent response structures across all controllers.

What is IWorkContext used for in ASP.NET Core backend development?

IWorkContext in ASP.NET Core backend development provides pre-configured services for accessing and managing tenant and user context information, cutting down manual setup effort for multi-tenant or user-aware API services.

How do I configure CORS policies and JSON serialization in a Jarvis framework project?

Configuring CORS policies and JSON serialization in a Jarvis framework project involves applying pre-configured foundation settings that establish cross-origin resource sharing rules and compliant JSON serialization aligned with architecture standards.

Can I use this foundation setup for existing ASP.NET Core API modifications?

Yes, this foundation setup applies to both new Jarvis-based ASP.NET Core API initialization and modifications to existing configurations such as updating CORS rules, JSON policies, and API response wrapper path includes.

What is the best way to remove boilerplate code when initializing a new ASP.NET Core API?

The best way to remove ASP.NET Core API boilerplate is to apply a foundation setup that pre-configures JSON serialization, CORS policies, response wrappers, and work context services, letting developers focus on business logic.

Why do I need to configure JSON serialization policies for my ASP.NET Core API?

Configuring JSON serialization policies for your ASP.NET Core API ensures compliant data formatting aligned with Jarvis architecture standards, preventing inconsistent data contracts and serialization errors across backend endpoints.