[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CV46DX21X388V8Q2KYW4KB":3,"skill-same:01M7CV46DX21X388V8Q2KYW4KB":75},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":28,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M7CV46DX21X388V8Q2KYW4KB","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).","deadmade\u002Fdead-agent-skills","deadmade","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F130925709?v=4","01M7CTQ65AGYR4J9K9TX0YR9V3","01M7CTQ66B4VMJFEDZP4EKKE6K",0,"MIT","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fcreate-blazor-project\u002FSKILL.md",[],[],"2026-11-15 14:19:17",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":14,"description":7},"main","ccab8dffc0ecc173838f51e4c5f0d3b51a704f41","plugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fcreate-blazor-project","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills","https:\u002F\u002Fgithub.com\u002Fdeadmade","https:\u002F\u002Fdeadmade.github.io\u002F","Blood, an Ocean of blood","2026-11-14 02:03:31",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add deadmade\u002Fdead-agent-skills --skill create-blazor-project",{"tool":37,"command":38},"bunx","bunx skills add deadmade\u002Fdead-agent-skills --skill create-blazor-project",{"tool":40,"command":41},"pnpm","pnpm dlx skills add deadmade\u002Fdead-agent-skills --skill create-blazor-project","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fcreate-blazor-project\u002FSKILL.md",true,[45,51,55,59,63,67,71],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"assets\u002Fagents-md\u002Fauto-global.md","ASSET","资产文件",2866,"https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fcreate-blazor-project\u002Fassets\u002Fagents-md\u002Fauto-global.md",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"assets\u002Fagents-md\u002Fauto-per-page.md",3000,"https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fcreate-blazor-project\u002Fassets\u002Fagents-md\u002Fauto-per-page.md",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"assets\u002Fagents-md\u002Fserver-global.md",1497,"https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fcreate-blazor-project\u002Fassets\u002Fagents-md\u002Fserver-global.md",{"path":60,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":61,"sourceHtmlUrl":62},"assets\u002Fagents-md\u002Fserver-per-page.md",1814,"https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fcreate-blazor-project\u002Fassets\u002Fagents-md\u002Fserver-per-page.md",{"path":64,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":65,"sourceHtmlUrl":66},"assets\u002Fagents-md\u002Fssr-none.md",1696,"https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fcreate-blazor-project\u002Fassets\u002Fagents-md\u002Fssr-none.md",{"path":68,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":69,"sourceHtmlUrl":70},"assets\u002Fagents-md\u002Fwebassembly-global.md",2552,"https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fcreate-blazor-project\u002Fassets\u002Fagents-md\u002Fwebassembly-global.md",{"path":72,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":73,"sourceHtmlUrl":74},"assets\u002Fagents-md\u002Fwebassembly-per-page.md",2702,"https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fcreate-blazor-project\u002Fassets\u002Fagents-md\u002Fwebassembly-per-page.md",[76,83,92,100,107,114],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M7CVRBFTXSTTQ7F5P6PJEFYA","rust-best-practices","Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook. Use this skill when: (1) writing new Rust code or functions, (2) reviewing or refactoring existing Rust code, (3) deciding between borrowing vs cloning or ownership patterns, (4) implementing error handling with Result types, (5) optimizing Rust code for performance, (6) writing tests or documentation for Rust projects.","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Frust-skills\u002Fskills\u002Frust-best-practices\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":87,"licenseFileUrl":88,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M7CVR0W7B8EGTNPSPA7FPC4Z","postgres-database-migration","Use this skill for planning, testing, and safely executing PostgreSQL schema migrations — especially when working with production data or shared databases.\n\n**Trigger when user asks to:**\n- Test a schema migration before applying it to production\n- Add, remove, or rename columns safely on a live table\n- Change a column's data type without downtime\n- Add or drop indexes, constraints, or foreign keys on large tables\n- Understand which ALTER TABLE operations lock the table\n- Roll back a failed migration\n- Plan a zero-downtime migration strategy\n- Fork a database to test a migration safely\n\nCovers: lock-level reference for every common DDL operation, safe migration patterns, fork-based testing, zero-downtime column changes, index creation, constraint addition, backfill strategies, pre\u002Fpost-migration validation, and rollback planning.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fpostgres\u002Fskills\u002Fpostgres-database-migration\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fpostgres\u002Fskills\u002Fpostgres-database-migration\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":87,"licenseFileUrl":96,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":18},"01M7CVQWK20ASAZN5VETZC8J99","postgres-best-practices","Best practices and guidelines for working with Postgres. Covers schema design, indexing strategies, query optimization, migrations, and common pitfalls. Use when writing SQL, designing database schemas, optimizing queries, or setting up a Postgres database.","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fpostgres\u002Fskills\u002Fpostgres-best-practices\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fpostgres\u002Fskills\u002Fpostgres-best-practices\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":18},"01M7CVQ5CY7AQHY7A2Y99RE6A7","writing-mstest-tests","ALWAYS USE when asked to fix, rewrite, update, improve, modernize, show corrected code for, or explain existing MSTest tests or MSTest-specific configuration. Use for \"review\" when corrected code or edits are wanted, even for one pasted assertion or passing tests with bad failure output. Covers expected\u002Factual labels; generic Boolean, collection, string, numeric, null, identity, exception, hard-cast, and object[] checks; TestContext\u002Flifecycle; timeout\u002Fcancellation; OS\u002FCI conditions, retry, cleanup, parallelization, MSTest.Sdk project setup, and MSTESTxxxx. Honor the installed MSTest version. DO NOT USE to design new test cases (code-testing), perform report-only audits, create project files rather than explain MSTest setup, run tests, migrate frameworks, or handle non-MSTest\u002Fnon-.NET code.","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fwriting-mstest-tests\u002FSKILL.md",[],[],{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":18},"01M7CVPWJZ63GB0810F0SCGZ1K","winforms-expert","Create, modify, debug, or review Windows Forms applications only when the request contains a concrete Windows Forms marker. USE FOR: WinForms, Windows Forms, System.Windows.Forms, WinForms Form or UserControl designer files (*.Designer.cs or *.Designer.vb), Visual Studio WinForms Designer, TableLayoutPanel, BindingSource, DataGridView, Control.InvokeAsync, component-tray ownership, or custom control serialization. DO NOT USE FOR: WPF or WPF XAML, including Window.InputBindings, KeyBinding, commands, or DataContext; .NET MAUI; Avalonia; or any request where none of the listed Windows Forms markers is present.","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fwinforms-expert\u002FSKILL.md",[],[],{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":18},"01M7CVPR0QFZ1HMJ6GZRBQAQ7W","vectorization","Design, implement, optimize, and review SIMD code in .NET. USE FOR: vectorizing scalar loops with TensorPrimitives, Vector64\u002F128\u002F256\u002F512, or platform hardware intrinsics; reviewing existing SIMD code, including the generic Vector type, for contract equivalence, tail handling, memory safety, portability, fallbacks, and measured performance. DO NOT USE FOR: performance work unrelated to SIMD or vectorization.","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fvectorization\u002FSKILL.md",[],[]]