[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DZCW7JQ48C6BYF0VXPVF8P":3,"skill-same:01M6DZCW7JQ48C6BYF0VXPVF8P":101},{"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":42,"linkOnly":43,"markdownContent":44,"markdownBody":45,"frontMatter":46,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":52,"ownerHtmlUrl":53,"ownerBlogUrl":54,"ownerDescription":55,"updatedAt":56,"install":57,"resources":70},"01M6DZCW7JQ48C6BYF0VXPVF8P","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\u002Fexternal-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet-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],"create","blazor","create blazor project","project","up","new","static","render","app","authoring","scaffolding","structure","options","do","dotnet","auto","projects","how","server","webassembly","ssr","project structure","component","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","external-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet-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":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add managedcode\u002Fdotnet-skills --skill create-blazor-project",{"tool":63,"command":64},"bunx","bunx skills add managedcode\u002Fdotnet-skills --skill create-blazor-project",{"tool":66,"command":67},"pnpm","pnpm dlx skills add managedcode\u002Fdotnet-skills --skill create-blazor-project","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet-blazor\u002Fskills\u002Fcreate-blazor-project\u002FSKILL.md",true,[71,77,81,85,89,93,97],{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"assets\u002Fagents-md\u002Fauto-global.md","ASSET","资产文件",2866,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet-blazor\u002Fskills\u002Fcreate-blazor-project\u002Fassets\u002Fagents-md\u002Fauto-global.md",{"path":78,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":79,"sourceHtmlUrl":80},"assets\u002Fagents-md\u002Fauto-per-page.md",3000,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet-blazor\u002Fskills\u002Fcreate-blazor-project\u002Fassets\u002Fagents-md\u002Fauto-per-page.md",{"path":82,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":83,"sourceHtmlUrl":84},"assets\u002Fagents-md\u002Fserver-global.md",1497,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet-blazor\u002Fskills\u002Fcreate-blazor-project\u002Fassets\u002Fagents-md\u002Fserver-global.md",{"path":86,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":87,"sourceHtmlUrl":88},"assets\u002Fagents-md\u002Fserver-per-page.md",1814,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet-blazor\u002Fskills\u002Fcreate-blazor-project\u002Fassets\u002Fagents-md\u002Fserver-per-page.md",{"path":90,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":91,"sourceHtmlUrl":92},"assets\u002Fagents-md\u002Fssr-none.md",1696,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet-blazor\u002Fskills\u002Fcreate-blazor-project\u002Fassets\u002Fagents-md\u002Fssr-none.md",{"path":94,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":95,"sourceHtmlUrl":96},"assets\u002Fagents-md\u002Fwebassembly-global.md",2552,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet-blazor\u002Fskills\u002Fcreate-blazor-project\u002Fassets\u002Fagents-md\u002Fwebassembly-global.md",{"path":98,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":99,"sourceHtmlUrl":100},"assets\u002Fagents-md\u002Fwebassembly-per-page.md",2702,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet-blazor\u002Fskills\u002Fcreate-blazor-project\u002Fassets\u002Fagents-md\u002Fwebassembly-per-page.md",[102,139,161,193,203,230],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":118,"publishedAt":42},"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",[108,113],{"categoryNo":109,"categoryName":110,"taxonomyType":111,"taxonomyTypeDesc":112},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",{"categoryNo":114,"categoryName":115,"taxonomyType":116,"taxonomyTypeDesc":117},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138],"xtwitter scraper","browser automation","workflows","run","code","browser","search","repository","api","Media","api client","access","edit","unrelated","webhooks","files","social","commands","modeling","webhook",{"skillNo":140,"name":141,"nameZh":6,"description":142,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":143,"categories":144,"keywords":151,"publishedAt":42},"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",[145,148],{"categoryNo":146,"categoryName":147,"taxonomyType":111,"taxonomyTypeDesc":112},"01JBSEEDCAT000000000000018","写作与文案",{"categoryNo":149,"categoryName":150,"taxonomyType":116,"taxonomyTypeDesc":117},"01JBSEEDCAT000000000000036","内容创作者",[141,152,153,121,154,122,126,155,156,157,131,158,132,134,32,159,31,22,136,160],"writing","performance","tasks","data","parsing","parser","context","writer","high-performance",{"skillNo":162,"name":163,"nameZh":6,"description":164,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":165,"categories":166,"keywords":167,"publishedAt":42},"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",[],[168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192],"webgpu","threejs","webgpu threejs tsl","setup","shaders","gpu","integration","applications","js","node","syntax","guide","use","language","three","compute","post","processing","with","renderer","for","materials","wgsl","effects","when",{"skillNo":194,"name":195,"nameZh":6,"description":196,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":197,"categories":198,"keywords":199,"publishedAt":42},"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",[],[195,180,134,200,201,188,202],"semantic","razor","inspection",{"skillNo":204,"name":205,"nameZh":6,"description":206,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":207,"categories":208,"keywords":209,"publishedAt":42},"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",[],[210,211,212,213,152,214,215,216,217,218,219,180,220,221,222,223,32,224,225,226,227,188,228,229,192],"system","json","text","system text json net11","policy","metadata","library","serialization","behavior","user","only","probe","guidance","later","type","dictionary","naming","targeting","custom","generic",{"skillNo":231,"name":232,"nameZh":6,"description":233,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":234,"categories":235,"keywords":238,"publishedAt":42},"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",[236,237],{"categoryNo":109,"categoryName":110,"taxonomyType":111,"taxonomyTypeDesc":112},{"categoryNo":114,"categoryName":115,"taxonomyType":116,"taxonomyTypeDesc":117},[127,239,240,241,122,242,175,210,180,222,223,32,243,244,245,246,227,188,24],"process","process api net11","diagnostics","start","basic","processes","output","usage"]