scalar

Serve interactive OpenAPI 3.1 documentation for .NET 10 minimal APIs.

640|145|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/codewithmukesh/dotnet-claude-kit --skill scalar-codewithmukesh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scalar
Source: https://github.com/codewithmukesh/dotnet-claude-kit/tree/main/skills/scalar
Command: npx skills add https://github.com/codewithmukesh/dotnet-claude-kit --skill scalar-codewithmukesh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scalar provides a modern, interactive API documentation UI that replaces Swagger UI for .NET 10 projects, delivering faster rendering, built-in themes, and integrated code generation while avoiding common security and token-inefficiency pitfalls.

Core Features & Use Cases

  • Swagger replacement: MapScalarApiReference serves interactive OpenAPI 3.1 documentation with a familiar developer experience and better performance.
  • Developer-friendly defaults: Recommend development-only exposure, authentication prefill for test tokens, and clear guidance for disabling external proxies for sensitive APIs.
  • Customization and multi-doc support: Configure themes, classic or modern layouts, custom route prefixes, and register multiple OpenAPI documents for versioned APIs.
  • Production safety: Use RequireAuthorization and OpenAPI document transformers for security schemes rather than embedding credentials into the UI.

Quick Start

Add MapScalarApiReference behind an IsDevelopment guard in your application startup to serve interactive API docs for your OpenAPI endpoints.

Frequently Asked Questions about scalar

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

FAQPage Schema
How do I replace Swagger UI with modern API documentation in .NET 10?

Configure multiple OpenAPI documents in .NET 10 by registering them during application startup and mapping them with MapScalarApiReference, supporting custom route prefixes, theme selection, and multi-version API documentation.

How do I securely expose interactive API docs in a production .NET 10 application?

Guard interactive API documentation during development by placing MapScalarApiReference behind an IsDevelopment check, disabling external proxies, and configuring authentication prefill for test tokens to ensure sensitive APIs remain protected.

Can I customize themes and layouts for interactive OpenAPI documentation in .NET 10?

Yes, you can customize interactive OpenAPI documentation in .NET 10 by configuring MapScalarApiReference with built-in theme selection, choosing between classic or modern layouts, and defining custom route prefixes for your API endpoints.

Does interactive API documentation support multi-version OpenAPI endpoints in .NET 10?

Multi-version OpenAPI endpoints are supported in .NET 10 by registering multiple OpenAPI documents and mapping them with MapScalarApiReference, allowing developers to maintain distinct interactive documentation for each API version.