[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DYGPR5V6XBS132JK7TVAR6":3,"skill-same:01M6DYGPR5V6XBS132JK7TVAR6":109},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":52,"repositoryHtmlUrl":53,"repositoryHomepageUrl":54,"ownerHtmlUrl":55,"ownerBlogUrl":56,"ownerDescription":57,"updatedAt":58,"install":59,"resources":72},"01M6DYGPR5V6XBS132JK7TVAR6","create-blazor-project",null,"Create a new ASP.NET Core web application or web site using Blazor. USE FOR: creating a new Blazor web app, scaffolding a new web project, starting a new web site, choosing render modes (Static SSR, Interactive Server, Interactive WebAssembly, Auto), running dotnet new blazor with the right options, setting up initial project structure. DO NOT USE FOR: adding features to existing projects, changing how an existing app renders, or component authoring (use author-component).","managedcode\u002Fdotnet-skills","managedcode","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F78253589?v=4","01M6DYDJR3EG8KB5G4PC65XCTT","Managed Code","01M6DYDJX0ZT432N04NYJW89DN",515,"MIT","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FFrameworks\u002FOfficial-DotNet-Blazor\u002Fskills\u002Fcreate-blazor-project\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"create blazor project","create","blazor","project","use","new","static","render","app","scaffolding","structure","options","do","up","auto","web","interactive","projects","how","server","webassembly","core","project structure","component","dotnet","2026-11-10 10:12:30",false,"---\nlicense: MIT\nname: create-blazor-project\ndescription: >\n  Create a new ASP.NET Core web application or web site using Blazor.\n  USE FOR: creating a new Blazor web app, scaffolding a new web project,\n  starting a new web site, choosing render modes (Static SSR, Interactive Server,\n  Interactive WebAssembly, Auto), running dotnet new blazor with the right options,\n  setting up initial project structure.\n  DO NOT USE FOR: adding features to existing projects, changing how an existing\n  app renders, or component authoring (use author-component).\n---\n\n# Create a Blazor Web App\n\n## Before You Start — Gather Requirements\n\nIf the user's request doesn't make the following clear, ask before scaffolding:\n\n1. **What does the app do?** List the main screens\u002Ffeatures (e.g., \"product catalog with search and shopping cart\").\n2. **What kind of interactivity is needed?** Displaying data and forms? Real-time updates? Offline support? Rich drag-and-drop UI?\n3. **Deployment environment?** Internet-facing? Intranet? Mobile users on slow connections?\n4. **Authentication needed?** Anonymous? Individual accounts? Organizational (Azure AD)?\n\n## Pick the Right Interactivity Level\n\nBlazor render modes are a progression scale. Start at the simplest level that satisfies the requirements and only move up when there's a concrete reason.\n\n```\nStatic SSR ──→ SSR + Enhanced Nav ──→ Interactive Server ──→ Interactive WebAssembly\n simplest                                                           most complex\n```\n\n### Decision Rules\n\n| If the app needs... | Use | Why |\n|---|---|---|\n| Display data, simple forms, links between pages | **Static SSR** (`-int None`) | No JS runtime, no circuit, no WebAssembly download. Forms work via HTML POST. Enhanced navigation makes it feel snappy. |\n| Everything above + a few components with client-side behavior (live search, real-time updates, complex form wizards) | **Interactive Server, per-page** (`-int Server`) | Only the components that need interactivity opt in with `@rendermode`. The rest stays static. Server-side execution, full .NET access, no API layer needed. |\n| Most pages need rich interactivity (dashboards, drag-and-drop, chat) | **Interactive Server, global** (`-int Server -ai`) | Every component is interactive by default. Consistent UX, simpler mental model. Trade-off: every user holds a SignalR circuit on the server. |\n| Network latency is a problem, users are on mobile\u002Fpoor connections, or the app must work offline | **Interactive WebAssembly** (`-int WebAssembly`) | Code runs in the browser. Eliminates round-trip latency but requires a `.Client` project, API layer for data access, and downloads the .NET runtime to the browser on first visit. For offline support, enable PWA: add a service worker and manifest after scaffolding (not included in the template by default). |\n| Fast initial load (Server) + low latency after (WebAssembly) | **Interactive Auto** (`-int Auto`) | First visit uses Server; subsequent visits use cached WebAssembly runtime. Most complex setup — see Auto constraints below. Only choose when both Server and WebAssembly constraints apply. |\n\n**Default recommendation:** Start with `-int Server` (per-page). It covers the vast majority of apps. Upgrade to global or WebAssembly only when a specific requirement demands it.\n\n### Auto Mode Constraints\n\nAuto mode means your component code runs on the server first, then in the browser on subsequent visits. This creates real constraints:\n\n- **All interactive components must live in the `.Client` project** — same as WebAssembly.\n- **No direct server access** from interactive components — no EF `DbContext`, no file system, no server-only services. All data access must go through HTTP APIs.\n- **Both `Program.cs` files must register matching services** — the server and client DI containers must both provide implementations for any service an interactive component injects.\n- **Code must not assume its execution environment** — no `HttpContext` access, no browser-only APIs without `RendererInfo` guards.\n- **Test in both modes** — a component that works on Server during development may break on WebAssembly in production (second visit). Test both paths.\n\n### Don'ts\n\n- Don't pick WebAssembly \"because it's cool\" — it adds a `.Client` project, forces API-mediated data access, and downloads ~10MB to the browser on first visit.\n- Don't pick Auto unless you can articulate why Server alone and WebAssembly alone are both insufficient.\n- Don't pick global interactivity for apps where most pages are read-only content — per-page keeps the static pages fast and reduces server memory.\n\n## Scaffold the Project\n\n### Static SSR Only (display data + simple forms)\n\n```shell\ndotnet new blazor -o {AppName} -int None\n```\n\nNo interactive runtime. Enhanced navigation enabled by default via `blazor.web.js`.\n\n### Interactive Server, Per-Page (recommended default)\n\n```shell\ndotnet new blazor -o {AppName} -int Server\n```\n\nPages are static by default. Add `@rendermode InteractiveServer` to components that need interactivity.\n\n### Interactive Server, Global\n\n```shell\ndotnet new blazor -o {AppName} -int Server -ai\n```\n\nAll pages interactive via `\u003CRoutes @rendermode=\"InteractiveServer\" \u002F>` in `App.razor`.\n\n### Interactive WebAssembly, Per-Page\n\n```shell\ndotnet new blazor -o {AppName} -int WebAssembly\n```\n\nCreates `{AppName}` (server) and `{AppName}.Client` (WebAssembly) projects. Interactive components must live in `.Client`.\n\n### Interactive WebAssembly, Global\n\n```shell\ndotnet new blazor -o {AppName} -int WebAssembly -ai\n```\n\n### Interactive Auto, Per-Page\n\n```shell\ndotnet new blazor -o {AppName} -int Auto\n```\n\n### Interactive Auto, Global\n\n```shell\ndotnet new blazor -o {AppName} -int Auto -ai\n```\n\n### With Authentication\n\nAppend `-au Individual` to any command above:\n\n```shell\ndotnet new blazor -o {AppName} -int Server -au Individual\n```\n\n`-au Individual` scaffolds ASP.NET Core Identity with SQLite (CLI) or SQL Server (Visual Studio). Identity pages are always static SSR — they do not use interactive render modes.\n\nThe `blazor` template only supports `-au Individual`. For organizational auth (Microsoft Entra ID, Azure AD B2C), scaffold with `-au Individual` first, then replace the Identity provider with `Microsoft.Identity.Web` \u002F OIDC middleware and configure the tenant in `appsettings.json`.\n\n## What the Template Creates\n\n### Single project (Static SSR, Server)\n\n```\n{AppName}\u002F\n├── Components\u002F\n│   ├── App.razor              # Root component — sets \u003CHeadOutlet> and \u003CRoutes>\n│   ├── Routes.razor           # Wraps \u003CRouter> with route discovery\n│   ├── Layout\u002F\n│   │   ├── MainLayout.razor   # App shell with nav, header, footer\n│   │   └── MainLayout.razor.css\n│   └── Pages\u002F\n│       └── Home.razor         # @page \"\u002F\" — first page\n├── Program.cs                 # Service registration and middleware\n├── wwwroot\u002F                   # Static files (CSS, images)\n└── {AppName}.csproj\n```\n\n### Two projects (WebAssembly, Auto)\n\n```\n{AppName}\u002F                     # Server project — hosts the app\n├── Components\u002F                # Server-only components (static SSR pages, layouts)\n│   ├── App.razor\n│   ├── Routes.razor\n│   └── Layout\u002F\n├── Program.cs                 # Server Program.cs\n└── {AppName}.Client\u002F          # Client project — WebAssembly components\n    ├── Pages\u002F                 # Interactive components go HERE\n    ├── Program.cs             # Client Program.cs\n    └── _Imports.razor\n```\n\n**Rule:** Components using `InteractiveWebAssembly` or `InteractiveAuto` must live in the `.Client` project. They can reference shared code but cannot reference server-only types (EF `DbContext`, server-side services).\n\n## Program.cs Wiring\n\nThe template generates the correct `Program.cs` for the chosen mode. Verify these registrations match your intent:\n\n### Static SSR Only\n\n```csharp\n\u002F\u002F Program.cs\nbuilder.Services.AddRazorComponents();\n\n\u002F\u002F ...\n\napp.MapRazorComponents\u003CApp>();\n```\n\n### Server (per-page or global)\n\n```csharp\nbuilder.Services.AddRazorComponents()\n    .AddInteractiveServerComponents();\n\n\u002F\u002F ...\n\napp.MapRazorComponents\u003CApp>()\n    .AddInteractiveServerRenderMode();\n```\n\n### WebAssembly (per-page or global)\n\n```csharp\n\u002F\u002F Server Program.cs\nbuilder.Services.AddRazorComponents()\n    .AddInteractiveWebAssemblyComponents();\n\n\u002F\u002F ...\n\napp.MapRazorComponents\u003CApp>()\n    .AddInteractiveWebAssemblyRenderMode()\n    .AddAdditionalAssemblies(typeof({AppName}.Client._Imports).Assembly);\n```\n\n```csharp\n\u002F\u002F Client Program.cs\nbuilder.Services.AddAuthorizationCore();\n\u002F\u002F Register HttpClient, other client-side services\n```\n\n## Create Project AGENTS.md\n\nAfter scaffolding, create an `AGENTS.md` file in the project root (next to the `.csproj`). For two-project setups, put it in the server project root.\n\nPick the matching template from `assets\u002Fagents-md\u002F` based on the chosen mode:\n\n| Mode | Template file |\n|------|--------------|\n| Static SSR (`-int None`) | `assets\u002Fagents-md\u002Fssr-none.md` |\n| Server, per-page (`-int Server`) | `assets\u002Fagents-md\u002Fserver-per-page.md` |\n| Server, global (`-int Server -ai`) | `assets\u002Fagents-md\u002Fserver-global.md` |\n| WebAssembly, per-page (`-int WebAssembly`) | `assets\u002Fagents-md\u002Fwebassembly-per-page.md` |\n| WebAssembly, global (`-int WebAssembly -ai`) | `assets\u002Fagents-md\u002Fwebassembly-global.md` |\n| Auto, per-page (`-int Auto`) | `assets\u002Fagents-md\u002Fauto-per-page.md` |\n| Auto, global (`-int Auto -ai`) | `assets\u002Fagents-md\u002Fauto-global.md` |\n\nCopy the template contents into the project's `AGENTS.md` and replace every `{AppName}` with the actual project name. If auth was scaffolded (`-au Individual`), add an `## Authentication` section noting that ASP.NET Core Identity is configured and that Identity pages under `Components\u002FAccount\u002F` are always static SSR — do not add `@rendermode` to them.\n\n**After scaffolding the project and creating AGENTS.md, continue implementing the features the user requested.** Remove default template pages (Counter, Weather) and replace them with the actual application pages.\n\n### Auto (per-page or global)\n\n```csharp\n\u002F\u002F Server Program.cs\nbuilder.Services.AddRazorComponents()\n    .AddInteractiveServerComponents()\n    .AddInteractiveWebAssemblyComponents();\n\n\u002F\u002F ...\n\napp.MapRazorComponents\u003CApp>()\n    .AddInteractiveServerRenderMode()\n    .AddInteractiveWebAssemblyRenderMode()\n    .AddAdditionalAssemblies(typeof({AppName}.Client._Imports).Assembly);\n```\n\n## App.razor — Global vs Per-Page\n\nThe difference between global and per-page interactivity is entirely in `App.razor`:\n\n### Per-page (default)\n\n```razor\n\u003C!DOCTYPE html>\n\u003Chtml>\n\u003Chead>\n    \u003CHeadOutlet \u002F>\n\u003C\u002Fhead>\n\u003Cbody>\n    \u003CRoutes \u002F>\n    \u003Cscript src=\"_framework\u002Fblazor.web.js\">\u003C\u002Fscript>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\nNo `@rendermode` on `\u003CRoutes>` or `\u003CHeadOutlet>`. Individual pages opt in.\n\n### Global\n\n```razor\n\u003C!DOCTYPE html>\n\u003Chtml>\n\u003Chead>\n    \u003CHeadOutlet @rendermode=\"InteractiveServer\" \u002F>\n\u003C\u002Fhead>\n\u003Cbody>\n    \u003CRoutes @rendermode=\"InteractiveServer\" \u002F>\n    \u003Cscript src=\"_framework\u002Fblazor.web.js\">\u003C\u002Fscript>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\nReplace `InteractiveServer` with `InteractiveWebAssembly` or `InteractiveAuto` as appropriate.\n\n## After Scaffolding\n\n1. **Verify it builds:** `dotnet build`\n2. **Run it:** `dotnet run` (in the server project if two-project setup)\n3. **Add your first page:** Create a `.razor` file in `Components\u002FPages\u002F` (server project) or `Pages\u002F` (`.Client` project for WebAssembly components)\n\n## Don'ts\n\n- Don't use `dotnet new blazorwasm` — that creates a standalone WebAssembly SPA without server-side rendering. Use the `blazor` template with `-int WebAssembly` instead.\n- Don't manually add `AddInteractiveServerComponents()` to a project created with `-int None` and expect it to work — you also need the `@rendermode` directives and potentially `App.razor` changes. Re-scaffold if the mode needs to change fundamentally.\n- Don't put WebAssembly-targeted components in the server project — they'll work during prerender but fail after handoff.\n","# Create a Blazor Web App\n\n## Before You Start — Gather Requirements\n\nIf the user's request doesn't make the following clear, ask before scaffolding:\n\n1. **What does the app do?** List the main screens\u002Ffeatures (e.g., \"product catalog with search and shopping cart\").\n2. **What kind of interactivity is needed?** Displaying data and forms? Real-time updates? Offline support? Rich drag-and-drop UI?\n3. **Deployment environment?** Internet-facing? Intranet? Mobile users on slow connections?\n4. **Authentication needed?** Anonymous? Individual accounts? Organizational (Azure AD)?\n\n## Pick the Right Interactivity Level\n\nBlazor render modes are a progression scale. Start at the simplest level that satisfies the requirements and only move up when there's a concrete reason.\n\n```\nStatic SSR ──→ SSR + Enhanced Nav ──→ Interactive Server ──→ Interactive WebAssembly\n simplest                                                           most complex\n```\n\n### Decision Rules\n\n| If the app needs... | Use | Why |\n|---|---|---|\n| Display data, simple forms, links between pages | **Static SSR** (`-int None`) | No JS runtime, no circuit, no WebAssembly download. Forms work via HTML POST. Enhanced navigation makes it feel snappy. |\n| Everything above + a few components with client-side behavior (live search, real-time updates, complex form wizards) | **Interactive Server, per-page** (`-int Server`) | Only the components that need interactivity opt in with `@rendermode`. The rest stays static. Server-side execution, full .NET access, no API layer needed. |\n| Most pages need rich interactivity (dashboards, drag-and-drop, chat) | **Interactive Server, global** (`-int Server -ai`) | Every component is interactive by default. Consistent UX, simpler mental model. Trade-off: every user holds a SignalR circuit on the server. |\n| Network latency is a problem, users are on mobile\u002Fpoor connections, or the app must work offline | **Interactive WebAssembly** (`-int WebAssembly`) | Code runs in the browser. Eliminates round-trip latency but requires a `.Client` project, API layer for data access, and downloads the .NET runtime to the browser on first visit. For offline support, enable PWA: add a service worker and manifest after scaffolding (not included in the template by default). |\n| Fast initial load (Server) + low latency after (WebAssembly) | **Interactive Auto** (`-int Auto`) | First visit uses Server; subsequent visits use cached WebAssembly runtime. Most complex setup — see Auto constraints below. Only choose when both Server and WebAssembly constraints apply. |\n\n**Default recommendation:** Start with `-int Server` (per-page). It covers the vast majority of apps. Upgrade to global or WebAssembly only when a specific requirement demands it.\n\n### Auto Mode Constraints\n\nAuto mode means your component code runs on the server first, then in the browser on subsequent visits. This creates real constraints:\n\n- **All interactive components must live in the `.Client` project** — same as WebAssembly.\n- **No direct server access** from interactive components — no EF `DbContext`, no file system, no server-only services. All data access must go through HTTP APIs.\n- **Both `Program.cs` files must register matching services** — the server and client DI containers must both provide implementations for any service an interactive component injects.\n- **Code must not assume its execution environment** — no `HttpContext` access, no browser-only APIs without `RendererInfo` guards.\n- **Test in both modes** — a component that works on Server during development may break on WebAssembly in production (second visit). Test both paths.\n\n### Don'ts\n\n- Don't pick WebAssembly \"because it's cool\" — it adds a `.Client` project, forces API-mediated data access, and downloads ~10MB to the browser on first visit.\n- Don't pick Auto unless you can articulate why Server alone and WebAssembly alone are both insufficient.\n- Don't pick global interactivity for apps where most pages are read-only content — per-page keeps the static pages fast and reduces server memory.\n\n## Scaffold the Project\n\n### Static SSR Only (display data + simple forms)\n\n```shell\ndotnet new blazor -o {AppName} -int None\n```\n\nNo interactive runtime. Enhanced navigation enabled by default via `blazor.web.js`.\n\n### Interactive Server, Per-Page (recommended default)\n\n```shell\ndotnet new blazor -o {AppName} -int Server\n```\n\nPages are static by default. Add `@rendermode InteractiveServer` to components that need interactivity.\n\n### Interactive Server, Global\n\n```shell\ndotnet new blazor -o {AppName} -int Server -ai\n```\n\nAll pages interactive via `\u003CRoutes @rendermode=\"InteractiveServer\" \u002F>` in `App.razor`.\n\n### Interactive WebAssembly, Per-Page\n\n```shell\ndotnet new blazor -o {AppName} -int WebAssembly\n```\n\nCreates `{AppName}` (server) and `{AppName}.Client` (WebAssembly) projects. Interactive components must live in `.Client`.\n\n### Interactive WebAssembly, Global\n\n```shell\ndotnet new blazor -o {AppName} -int WebAssembly -ai\n```\n\n### Interactive Auto, Per-Page\n\n```shell\ndotnet new blazor -o {AppName} -int Auto\n```\n\n### Interactive Auto, Global\n\n```shell\ndotnet new blazor -o {AppName} -int Auto -ai\n```\n\n### With Authentication\n\nAppend `-au Individual` to any command above:\n\n```shell\ndotnet new blazor -o {AppName} -int Server -au Individual\n```\n\n`-au Individual` scaffolds ASP.NET Core Identity with SQLite (CLI) or SQL Server (Visual Studio). Identity pages are always static SSR — they do not use interactive render modes.\n\nThe `blazor` template only supports `-au Individual`. For organizational auth (Microsoft Entra ID, Azure AD B2C), scaffold with `-au Individual` first, then replace the Identity provider with `Microsoft.Identity.Web` \u002F OIDC middleware and configure the tenant in `appsettings.json`.\n\n## What the Template Creates\n\n### Single project (Static SSR, Server)\n\n```\n{AppName}\u002F\n├── Components\u002F\n│   ├── App.razor              # Root component — sets \u003CHeadOutlet> and \u003CRoutes>\n│   ├── Routes.razor           # Wraps \u003CRouter> with route discovery\n│   ├── Layout\u002F\n│   │   ├── MainLayout.razor   # App shell with nav, header, footer\n│   │   └── MainLayout.razor.css\n│   └── Pages\u002F\n│       └── Home.razor         # @page \"\u002F\" — first page\n├── Program.cs                 # Service registration and middleware\n├── wwwroot\u002F                   # Static files (CSS, images)\n└── {AppName}.csproj\n```\n\n### Two projects (WebAssembly, Auto)\n\n```\n{AppName}\u002F                     # Server project — hosts the app\n├── Components\u002F                # Server-only components (static SSR pages, layouts)\n│   ├── App.razor\n│   ├── Routes.razor\n│   └── Layout\u002F\n├── Program.cs                 # Server Program.cs\n└── {AppName}.Client\u002F          # Client project — WebAssembly components\n    ├── Pages\u002F                 # Interactive components go HERE\n    ├── Program.cs             # Client Program.cs\n    └── _Imports.razor\n```\n\n**Rule:** Components using `InteractiveWebAssembly` or `InteractiveAuto` must live in the `.Client` project. They can reference shared code but cannot reference server-only types (EF `DbContext`, server-side services).\n\n## Program.cs Wiring\n\nThe template generates the correct `Program.cs` for the chosen mode. Verify these registrations match your intent:\n\n### Static SSR Only\n\n```csharp\n\u002F\u002F Program.cs\nbuilder.Services.AddRazorComponents();\n\n\u002F\u002F ...\n\napp.MapRazorComponents\u003CApp>();\n```\n\n### Server (per-page or global)\n\n```csharp\nbuilder.Services.AddRazorComponents()\n    .AddInteractiveServerComponents();\n\n\u002F\u002F ...\n\napp.MapRazorComponents\u003CApp>()\n    .AddInteractiveServerRenderMode();\n```\n\n### WebAssembly (per-page or global)\n\n```csharp\n\u002F\u002F Server Program.cs\nbuilder.Services.AddRazorComponents()\n    .AddInteractiveWebAssemblyComponents();\n\n\u002F\u002F ...\n\napp.MapRazorComponents\u003CApp>()\n    .AddInteractiveWebAssemblyRenderMode()\n    .AddAdditionalAssemblies(typeof({AppName}.Client._Imports).Assembly);\n```\n\n```csharp\n\u002F\u002F Client Program.cs\nbuilder.Services.AddAuthorizationCore();\n\u002F\u002F Register HttpClient, other client-side services\n```\n\n## Create Project AGENTS.md\n\nAfter scaffolding, create an `AGENTS.md` file in the project root (next to the `.csproj`). For two-project setups, put it in the server project root.\n\nPick the matching template from `assets\u002Fagents-md\u002F` based on the chosen mode:\n\n| Mode | Template file |\n|------|--------------|\n| Static SSR (`-int None`) | `assets\u002Fagents-md\u002Fssr-none.md` |\n| Server, per-page (`-int Server`) | `assets\u002Fagents-md\u002Fserver-per-page.md` |\n| Server, global (`-int Server -ai`) | `assets\u002Fagents-md\u002Fserver-global.md` |\n| WebAssembly, per-page (`-int WebAssembly`) | `assets\u002Fagents-md\u002Fwebassembly-per-page.md` |\n| WebAssembly, global (`-int WebAssembly -ai`) | `assets\u002Fagents-md\u002Fwebassembly-global.md` |\n| Auto, per-page (`-int Auto`) | `assets\u002Fagents-md\u002Fauto-per-page.md` |\n| Auto, global (`-int Auto -ai`) | `assets\u002Fagents-md\u002Fauto-global.md` |\n\nCopy the template contents into the project's `AGENTS.md` and replace every `{AppName}` with the actual project name. If auth was scaffolded (`-au Individual`), add an `## Authentication` section noting that ASP.NET Core Identity is configured and that Identity pages under `Components\u002FAccount\u002F` are always static SSR — do not add `@rendermode` to them.\n\n**After scaffolding the project and creating AGENTS.md, continue implementing the features the user requested.** Remove default template pages (Counter, Weather) and replace them with the actual application pages.\n\n### Auto (per-page or global)\n\n```csharp\n\u002F\u002F Server Program.cs\nbuilder.Services.AddRazorComponents()\n    .AddInteractiveServerComponents()\n    .AddInteractiveWebAssemblyComponents();\n\n\u002F\u002F ...\n\napp.MapRazorComponents\u003CApp>()\n    .AddInteractiveServerRenderMode()\n    .AddInteractiveWebAssemblyRenderMode()\n    .AddAdditionalAssemblies(typeof({AppName}.Client._Imports).Assembly);\n```\n\n## App.razor — Global vs Per-Page\n\nThe difference between global and per-page interactivity is entirely in `App.razor`:\n\n### Per-page (default)\n\n```razor\n\u003C!DOCTYPE html>\n\u003Chtml>\n\u003Chead>\n    \u003CHeadOutlet \u002F>\n\u003C\u002Fhead>\n\u003Cbody>\n    \u003CRoutes \u002F>\n    \u003Cscript src=\"_framework\u002Fblazor.web.js\">\u003C\u002Fscript>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\nNo `@rendermode` on `\u003CRoutes>` or `\u003CHeadOutlet>`. Individual pages opt in.\n\n### Global\n\n```razor\n\u003C!DOCTYPE html>\n\u003Chtml>\n\u003Chead>\n    \u003CHeadOutlet @rendermode=\"InteractiveServer\" \u002F>\n\u003C\u002Fhead>\n\u003Cbody>\n    \u003CRoutes @rendermode=\"InteractiveServer\" \u002F>\n    \u003Cscript src=\"_framework\u002Fblazor.web.js\">\u003C\u002Fscript>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\nReplace `InteractiveServer` with `InteractiveWebAssembly` or `InteractiveAuto` as appropriate.\n\n## After Scaffolding\n\n1. **Verify it builds:** `dotnet build`\n2. **Run it:** `dotnet run` (in the server project if two-project setup)\n3. **Add your first page:** Create a `.razor` file in `Components\u002FPages\u002F` (server project) or `Pages\u002F` (`.Client` project for WebAssembly components)\n\n## Don'ts\n\n- Don't use `dotnet new blazorwasm` — that creates a standalone WebAssembly SPA without server-side rendering. Use the `blazor` template with `-int WebAssembly` instead.\n- Don't manually add `AddInteractiveServerComponents()` to a project created with `-int None` and expect it to work — you also need the `@rendermode` directives and potentially `App.razor` changes. Re-scaffold if the mode needs to change fundamentally.\n- Don't put WebAssembly-targeted components in the server project — they'll work during prerender but fail after handoff.\n",{"name":5,"license":15,"description":7},"main","497cc9aba79a931ac6fb8d36a48cc22fe3d6d74b","catalog\u002FFrameworks\u002FOfficial-DotNet-Blazor\u002Fskills\u002Fcreate-blazor-project",41,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills","https:\u002F\u002Fskills.managed-code.com","https:\u002F\u002Fgithub.com\u002Fmanagedcode","https:\u002F\u002Fwww.managed-code.com","Open Source Community for .NET Developers: Reliable, Actively Maintained, and Community-Driven. Made in Ukraine 🇺🇦 with ❤️","2026-11-14 19:05:44",{"source":8,"skillName":5,"commands":60,"prompt":70,"zipAvailable":71},[61,64,67],{"tool":62,"command":63},"npx","npx skills add managedcode\u002Fdotnet-skills --skill create-blazor-project",{"tool":65,"command":66},"bunx","bunx skills add managedcode\u002Fdotnet-skills --skill create-blazor-project",{"tool":68,"command":69},"pnpm","pnpm dlx skills add managedcode\u002Fdotnet-skills --skill create-blazor-project","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FFrameworks\u002FOfficial-DotNet-Blazor\u002Fskills\u002Fcreate-blazor-project\u002FSKILL.md",true,[73,79,83,87,91,95,99,103],{"path":74,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":77,"sourceHtmlUrl":78},"assets\u002Fagents-md\u002Fauto-global.md","ASSET","资产文件",2866,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FFrameworks\u002FOfficial-DotNet-Blazor\u002Fskills\u002Fcreate-blazor-project\u002Fassets\u002Fagents-md\u002Fauto-global.md",{"path":80,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":81,"sourceHtmlUrl":82},"assets\u002Fagents-md\u002Fauto-per-page.md",3000,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FFrameworks\u002FOfficial-DotNet-Blazor\u002Fskills\u002Fcreate-blazor-project\u002Fassets\u002Fagents-md\u002Fauto-per-page.md",{"path":84,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":85,"sourceHtmlUrl":86},"assets\u002Fagents-md\u002Fserver-global.md",1497,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FFrameworks\u002FOfficial-DotNet-Blazor\u002Fskills\u002Fcreate-blazor-project\u002Fassets\u002Fagents-md\u002Fserver-global.md",{"path":88,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":89,"sourceHtmlUrl":90},"assets\u002Fagents-md\u002Fserver-per-page.md",1814,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FFrameworks\u002FOfficial-DotNet-Blazor\u002Fskills\u002Fcreate-blazor-project\u002Fassets\u002Fagents-md\u002Fserver-per-page.md",{"path":92,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":93,"sourceHtmlUrl":94},"assets\u002Fagents-md\u002Fssr-none.md",1696,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FFrameworks\u002FOfficial-DotNet-Blazor\u002Fskills\u002Fcreate-blazor-project\u002Fassets\u002Fagents-md\u002Fssr-none.md",{"path":96,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":97,"sourceHtmlUrl":98},"assets\u002Fagents-md\u002Fwebassembly-global.md",2552,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FFrameworks\u002FOfficial-DotNet-Blazor\u002Fskills\u002Fcreate-blazor-project\u002Fassets\u002Fagents-md\u002Fwebassembly-global.md",{"path":100,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":101,"sourceHtmlUrl":102},"assets\u002Fagents-md\u002Fwebassembly-per-page.md",2702,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FFrameworks\u002FOfficial-DotNet-Blazor\u002Fskills\u002Fcreate-blazor-project\u002Fassets\u002Fagents-md\u002Fwebassembly-per-page.md",{"path":104,"resourceType":105,"resourceTypeDesc":106,"sizeBytes":107,"sourceHtmlUrl":108},"manifest.json","REFERENCE","参考文档",162,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FFrameworks\u002FOfficial-DotNet-Blazor\u002Fskills\u002Fcreate-blazor-project\u002Fmanifest.json",[110,147,169,200,210,237],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":126,"publishedAt":44},"01M6DYQE1Y9FHAQHEDTVFQ3447","xtwitter-scraper","Use XTwitterScraper when a .NET application needs typed access to Xquik's X automation REST API for tweet search, user lookup, posting workflows, extraction jobs, monitors, webhooks, or giveaway draws. USE FOR: integrating the XTwitterScraper NuGet package; reviewing Xquik API client usage; modeling API-key configuration, pagination, binary exports, raw responses, retries, and webhook\u002Fevent flows in .NET. DO NOT USE FOR: unrelated stacks; direct browser automation; generic social-media strategy; or code that does not call Xquik. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FLibraries\u002FXTwitterScraper\u002Fskills\u002Fxtwitter-scraper\u002FSKILL.md",[116,121],{"categoryNo":117,"categoryName":118,"taxonomyType":119,"taxonomyTypeDesc":120},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",{"categoryNo":122,"categoryName":123,"taxonomyType":124,"taxonomyTypeDesc":125},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146],"xtwitter scraper","browser automation","workflows","run","code","browser","search","repository","api","Media","api client","access","edit","unrelated","webhooks","files","social","commands","modeling","webhook",{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":159,"publishedAt":44},"01M6DYQ9S4PE1H6G8MCH9T21HR","sep","Use Sep for high-performance separated-value parsing and writing in .NET, including delimiter inference, explicit parser\u002Fwriter options, and low-allocation row\u002Fcolumn workflows. USE FOR: delimited data needs are performance-sensitive and allocation-aware; project needs explicit control over separator inference, escaping, trimming, and header behavior;. DO NOT USE FOR: unrelated stacks; generic tasks that do not need this specific guidance. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FLibraries\u002FSep\u002Fskills\u002Fsep\u002FSKILL.md",[153,156],{"categoryNo":154,"categoryName":155,"taxonomyType":119,"taxonomyTypeDesc":120},"01JBSEEDCAT000000000000018","写作与文案",{"categoryNo":157,"categoryName":158,"taxonomyType":124,"taxonomyTypeDesc":125},"01JBSEEDCAT000000000000036","内容创作者",[149,160,161,129,162,130,134,163,164,165,139,166,140,142,31,167,30,22,144,168],"writing","performance","tasks","data","parsing","parser","context","writer","high-performance",{"skillNo":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":175,"publishedAt":44},"01M6DZS2DNEPXCGGF6SSCW6G5V","webgpu-threejs-tsl","Comprehensive guide for developing WebGPU-enabled Three.js applications using TSL (Three.js Shading Language). Covers WebGPU renderer setup, TSL syntax and node materials, compute shaders, post-processing effects, and WGSL integration. Use this skill when working with Three.js WebGPU, TSL shaders, node materials, or GPU compute in Three.js.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fwebgpu-claude-skill\u002Fskills\u002Fwebgpu-threejs-tsl\u002FSKILL.md",[],[176,177,178,179,180,181,182,183,184,185,186,187,23,188,189,190,191,192,193,194,195,196,197,198,199],"webgpu","threejs","webgpu threejs tsl","setup","shaders","gpu","integration","applications","js","node","syntax","guide","language","three","compute","post","processing","with","renderer","for","materials","wgsl","effects","when",{"skillNo":201,"name":202,"nameZh":6,"description":203,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":204,"categories":205,"keywords":206,"publishedAt":44},"01M6DZS0BQXW2B56A289XF1X76","roslynk","Use Roslynk for semantic inspection and edits of *.cs, *.razor and *.cshtml solution files.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Froslynk\u002Fskills\u002Froslynk\u002FSKILL.md",[],[202,23,142,207,208,195,209],"semantic","razor","inspection",{"skillNo":211,"name":212,"nameZh":6,"description":213,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":214,"categories":215,"keywords":216,"publishedAt":44},"01M6DZRW6MEJCVW80K3S4XV60K","system-text-json-net11","Imperative guidance for the System.Text.Json APIs added in .NET 11: the built-in `JsonNamingPolicy.PascalCase` naming policy, and the strongly-typed generic `JsonSerializerOptions.GetTypeInfo` and `JsonSerializerOptions.TryGetTypeInfo` metadata accessors (generic overloads that return a typed `JsonTypeInfo`). USE ONLY when the user is targeting net11.0 or later and needs PascalCase JSON property or dictionary-key names without writing a custom naming policy, a strongly-typed generic `JsonTypeInfo` instead of the non-generic `JsonTypeInfo`, or a no-throw way to probe whether a type's serialization metadata is resolved. DO NOT USE when the target is earlier than net11.0, the requested behavior uses an established pre-net11 naming policy, or the user explicitly selected another JSON library.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet11\u002Fskills\u002Fsystem-text-json-net11\u002FSKILL.md",[],[217,218,219,220,160,221,222,223,224,225,226,23,227,228,229,230,31,231,232,233,234,195,235,236,199],"system","json","text","system text json net11","policy","metadata","library","serialization","behavior","user","only","probe","guidance","later","type","dictionary","naming","targeting","custom","generic",{"skillNo":238,"name":239,"nameZh":6,"description":240,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":241,"categories":242,"keywords":245,"publishedAt":44},"01M6DZRRJP3S662NFSG1RSPQQ7","process-api-net11","Provides guidance on the new System.Diagnostics.Process APIs introduced in .NET 11: Process.Run, Process.RunAndCaptureText, Process.StartAndForget, Process.ReadAllText\u002FBytes\u002FLines, KillOnParentExit, InheritedHandles, and StartDetached. USE FOR: starting, orchestrating, or capturing output from external processes in applications targeting net11.0 or later. DO NOT USE FOR: applications targeting .NET 10 or earlier, or basic pre-.NET 11 Process.Start usage without new APIs.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet11\u002Fskills\u002Fprocess-api-net11\u002FSKILL.md",[243,244],{"categoryNo":117,"categoryName":118,"taxonomyType":119,"taxonomyTypeDesc":120},{"categoryNo":122,"categoryName":123,"taxonomyType":124,"taxonomyTypeDesc":125},[135,246,247,248,130,249,183,217,23,229,230,31,250,251,252,253,234,195,24],"process","process api net11","diagnostics","start","basic","processes","output","usage"]