[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7D15EVW0H7BTR09FJZPCWRJ":3,"skill-same:01M7D15EVW0H7BTR09FJZPCWRJ":44},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7D15EVW0H7BTR09FJZPCWRJ","fetch-and-send-data",null,"Call APIs, load data into components, and handle the async lifecycle in Blazor. USE FOR fetching data from a backend, submitting data to an API, displaying loading\u002Ferror states, registering HttpClient, building service abstractions for Auto\u002FWebAssembly render modes. DO NOT USE for form validation (see collect-user-input), prerendering persistence (see support-prerendering), or project scaffolding (see create-blazor-project).","itsmejay18\u002FAI-Skills-for-My-Development-Stack","itsmejay18","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F167779943?v=4","01M7CZRFC6DDZA5V2CX8WDSZED","Jay Jemino Ababon ","01M7CZRFCVRNW1SFHSQXEJ3CQN",0,"MIT","https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F04-Frontend-Web-Development\u002Ffetch-and-send-data\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nlicense: MIT\nname: fetch-and-send-data\ndescription: Call APIs, load data into components, and handle the async lifecycle in Blazor. USE FOR fetching data from a backend, submitting data to an API, displaying loading\u002Ferror states, registering HttpClient, building service abstractions for Auto\u002FWebAssembly render modes. DO NOT USE for form validation (see collect-user-input), prerendering persistence (see support-prerendering), or project scaffolding (see create-blazor-project).\n---\n\n# Fetch and Send Data\n\n## Step 1 — Read AGENTS.md\n\nCheck **Interactivity Mode** and **Scope**:\n\n| Mode | Data access |\n|------|-------------|\n| None (Static SSR) | Server-side: inject services\u002F`DbContext`. Use `[StreamRendering]` for loading UX. |\n| Server | Server-side: inject services\u002F`DbContext`. Guard prerender with `??=` + `[PersistentState]`. |\n| WebAssembly | Browser-side: `HttpClient` only. No direct server access. |\n| Auto | Both server and browser. Always go through an API. |\n\n## Step 2 — Register HttpClient\n\nOnly needed when calling external APIs from Server, or always for WebAssembly\u002FAuto. Server components accessing their own database should inject `DbContext` or a service directly.\n\n```csharp\n\u002F\u002F Named client — requires Microsoft.Extensions.Http NuGet\nbuilder.Services.AddHttpClient(\"CatalogAPI\", client =>\n{\n    client.BaseAddress = new Uri(\"https:\u002F\u002Fapi.example.com\u002F\");\n});\n\n\u002F\u002F Typed client\nbuilder.Services.AddHttpClient\u003CCatalogClient>(client =>\n    client.BaseAddress = new Uri(\"https:\u002F\u002Fapi.example.com\u002F\"));\n```\n\nFor WebAssembly\u002FAuto with prerendering, register in **both** server and `.Client` `Program.cs`.\n\n## Step 3 — Fetch Data\n\n### Simple load\n\n```razor\n@page \"\u002Fproducts\"\n@inject CatalogClient Catalog\n\n@if (products is null)\n{\n    \u003Cp>Loading…\u003C\u002Fp>\n}\nelse\n{\n    @foreach (var p in products)\n    {\n        \u003Cp>@p.Name — @p.Price.ToString(\"C\")\u003C\u002Fp>\n    }\n}\n\n@code {\n    private Product[]? products;\n\n    protected override async Task OnInitializedAsync()\n    {\n        products = await Catalog.GetProductsAsync();\n    }\n}\n```\n\nNo error handling needed in the simplest case — wrap the component usage in `\u003CErrorBoundary>` at the parent\u002Flayout level to catch unhandled exceptions.\n\n### Static SSR — StreamRendering\n\nWithout `[StreamRendering]`, the user sees nothing until `OnInitializedAsync` completes:\n\n```razor\n@attribute [StreamRendering]\n```\n\nOnly affects Static SSR. No effect on interactive components.\n\n### Prerendering guard\n\nPrerendering calls `OnInitializedAsync` twice. Skip the duplicate:\n\n```csharp\n[PersistentState] private Product[]? products;\n\nprotected override async Task OnInitializedAsync()\n{\n    products ??= await Catalog.GetProductsAsync();\n}\n```\n\nSee the `support-prerendering` skill for details.\n\n## Step 4 — Handle Errors\n\nUse `\u003CErrorBoundary>` as the default error strategy. It provides a consistent error experience across all components without any per-component catch logic. Wrap component usage at the layout or parent level:\n\n```razor\n\u003CErrorBoundary>\n    \u003CChildContent>\n        \u003CProductList \u002F>\n    \u003C\u002FChildContent>\n    \u003CErrorContent>\n        \u003Cdiv class=\"alert alert-danger\">Something went wrong. Please refresh.\u003C\u002Fdiv>\n    \u003C\u002FErrorContent>\n\u003C\u002FErrorBoundary>\n```\n\nNon-cancellation exceptions (`HttpRequestException`, etc.) propagate to `ErrorBoundary` automatically — no catch blocks needed in the component.\n\n### Cancellation is special\n\n`ComponentBase` silently swallows **all** `OperationCanceledException` — both self-initiated (disposal, parameter change) and external (HttpClient timeout). `ErrorBoundary` never sees them. This means:\n\n- Self-cancellation → silently ignored. Correct behavior, no action needed.\n- External cancellation (timeout) → also silently swallowed. Component gets stuck in loading state. Usually acceptable — timeouts are rare.\n\n### When to add in-component error handling\n\nOnly add catch blocks when the component needs behavior `ErrorBoundary` can't provide — typically **retries** or **timeout-specific messages**. Even then, only catch what you need:\n\n```csharp\n\u002F\u002F Catch only external cancellation (timeouts) — everything else flows to ErrorBoundary\ncatch (OperationCanceledException ex) when (!cancellationToken.IsCancellationRequested)\n{\n    Logger.LogWarning(ex, \"Request timed out for category {CategoryId}\", CategoryId);\n    error = \"The request timed out. Please try again.\";\n}\n```\n\nIf the component also needs to handle general errors with a retry button instead of letting `ErrorBoundary` take over:\n\n```csharp\ncatch (OperationCanceledException ex) when (!cancellationToken.IsCancellationRequested)\n{\n    Logger.LogWarning(ex, \"Request timed out for category {CategoryId}\", CategoryId);\n    error = \"The request timed out. Please try again.\";\n}\ncatch (Exception ex)\n{\n    Logger.LogError(ex, \"Failed to load products for category {CategoryId}\", CategoryId);\n    error = \"Unable to load products. Please try again.\";\n}\n```\n\n### Rules\n\n- **Never display `exception.Message`** — it may contain PII, connection strings, or internal details. Use hardcoded user-friendly messages.\n- **Always log through `ILogger`** — the real exception goes to the logging pipeline.\n- **Services must accept `CancellationToken`** — pass it to every async call so work stops when the component cancels.\n\n## Step 5 — Parameter-Driven Reloading\n\nWhen data depends on a route or query parameter that changes (e.g., navigating between `\u002Fproducts\u002F1` and `\u002Fproducts\u002F2`), use `OnParametersSetAsync` with a guard to skip reloads for parameters that don't affect data.\n\n### Pattern: cancel-and-reload with stale data overlay\n\n```razor\n@page \"\u002Fproducts\u002F{CategoryId:int}\"\n@implements IAsyncDisposable\n@inject ProductService ProductService\n@inject ILogger\u003CProducts> Logger\n\n@if (error is not null)\n{\n    \u003Cdiv class=\"alert alert-danger\">\n        \u003Cp>@error\u003C\u002Fp>\n        \u003Cbutton @onclick=\"LoadAsync\">Retry\u003C\u002Fbutton>\n    \u003C\u002Fdiv>\n}\nelse if (products is null)\n{\n    \u003Cp>Loading…\u003C\u002Fp>\n}\nelse\n{\n    @if (isLoading)\n    {\n        \u003Cp>\u003Cem>Refreshing…\u003C\u002Fem>\u003C\u002Fp>\n    }\n    @foreach (var p in products)\n    {\n        \u003Cp>@p.Name — @p.Price.ToString(\"C\")\u003C\u002Fp>\n    }\n}\n\n@code {\n    [Parameter] public int CategoryId { get; set; }\n    [SupplyParameterFromQuery] public string? ViewMode { get; set; } \u002F\u002F UI-only\n\n    private CancellationTokenSource? cts;\n    private int? loadedCategoryId;\n    private List\u003CProduct>? products;\n    private bool isLoading;\n    private string? error;\n\n    protected override async Task OnParametersSetAsync()\n    {\n        if (CategoryId == loadedCategoryId)\n        {\n            return; \u002F\u002F Only ViewMode changed — no reload\n        }\n\n        loadedCategoryId = CategoryId;\n        await LoadAsync();\n    }\n\n    private async Task LoadAsync()\n    {\n        if (cts is not null)\n        {\n            await cts.CancelAsync();\n            cts.Dispose();\n        }\n\n        cts = new CancellationTokenSource();\n        var cancellationToken = cts.Token; \u002F\u002F Capture locally before await\n\n        error = null;\n        isLoading = true;\n\n        try\n        {\n            var result = await ProductService.GetByCategoryAsync(CategoryId, cancellationToken);\n            products = result;\n        }\n        catch (OperationCanceledException ex) when (!cancellationToken.IsCancellationRequested)\n        {\n            Logger.LogWarning(ex, \"Timed out loading category {CategoryId}\", CategoryId);\n            error = \"The request timed out. Please try again.\";\n        }\n        finally\n        {\n            isLoading = false;\n        }\n    }\n\n    public async ValueTask DisposeAsync()\n    {\n        if (cts is not null)\n        {\n            await cts.CancelAsync();\n            cts.Dispose();\n        }\n    }\n}\n```\n\nKey details:\n- **Guard with tracked value**: `loadedCategoryId` skips reloads when only UI parameters change.\n- **Capture the token locally** before the await — the CTS field may be replaced by a concurrent parameter change.\n- **Don't null out `products`** on subsequent loads — keep existing data visible with an `isLoading` overlay.\n- **`IAsyncDisposable`** cancels pending work when the user navigates away.\n\n## Step 6 — Send Data\n\n```csharp\nvar response = await http.PostAsJsonAsync(\"products\", newProduct);\nresponse.EnsureSuccessStatusCode();\n\nvar response = await http.PutAsJsonAsync($\"products\u002F{id}\", updated);\nresponse.EnsureSuccessStatusCode();\n\nvar response = await http.DeleteAsync($\"products\u002F{id}\");\nresponse.EnsureSuccessStatusCode();\n```\n\nDisable the submit button while saving to prevent duplicate requests. Show a saving indicator.\n\n## Step 7 — Service Abstraction for Auto or WebAssembly with Prerendering\n\nWhen components run in both server and browser (Auto mode, or WebAssembly with prerendering), abstract data access behind an abstract base class:\n\n```csharp\npublic abstract class ProductServiceBase\n{\n    public abstract Task\u003CProduct[]> GetAllAsync(CancellationToken ct = default);\n}\n\n\u002F\u002F Server — direct database access\npublic class ServerProductService(AppDbContext db) : ProductServiceBase\n{\n    public override async Task\u003CProduct[]> GetAllAsync(CancellationToken ct = default) =>\n        await db.Products.ToArrayAsync(ct);\n}\n\n\u002F\u002F Client — calls API\npublic class ClientProductService(HttpClient http) : ProductServiceBase\n{\n    public override async Task\u003CProduct[]> GetAllAsync(CancellationToken ct = default) =>\n        await http.GetFromJsonAsync\u003CProduct[]>(\"api\u002Fproducts\", ct) ?? [];\n}\n```\n\nRegister the appropriate implementation in each project's `Program.cs`. Components inject the abstract base class.\n\n## Don'ts\n\n- **Don't call APIs in constructors** — use `OnInitializedAsync`.\n- **Don't use `OnParametersSetAsync` unless data depends on a changing parameter.** Use `OnInitializedAsync` for initial loads.\n- **Don't inject `DbContext` in WebAssembly\u002FAuto components** — no database in the browser.\n- **Don't call your own server via `HttpClient`** — inject the service directly.\n- **Don't display `exception.Message` to users** — PII risk. Log it, show a generic message.\n- **Don't catch `OperationCanceledException` for self-cancellation** — `ComponentBase` handles it.\n","# Fetch and Send Data\n\n## Step 1 — Read AGENTS.md\n\nCheck **Interactivity Mode** and **Scope**:\n\n| Mode | Data access |\n|------|-------------|\n| None (Static SSR) | Server-side: inject services\u002F`DbContext`. Use `[StreamRendering]` for loading UX. |\n| Server | Server-side: inject services\u002F`DbContext`. Guard prerender with `??=` + `[PersistentState]`. |\n| WebAssembly | Browser-side: `HttpClient` only. No direct server access. |\n| Auto | Both server and browser. Always go through an API. |\n\n## Step 2 — Register HttpClient\n\nOnly needed when calling external APIs from Server, or always for WebAssembly\u002FAuto. Server components accessing their own database should inject `DbContext` or a service directly.\n\n```csharp\n\u002F\u002F Named client — requires Microsoft.Extensions.Http NuGet\nbuilder.Services.AddHttpClient(\"CatalogAPI\", client =>\n{\n    client.BaseAddress = new Uri(\"https:\u002F\u002Fapi.example.com\u002F\");\n});\n\n\u002F\u002F Typed client\nbuilder.Services.AddHttpClient\u003CCatalogClient>(client =>\n    client.BaseAddress = new Uri(\"https:\u002F\u002Fapi.example.com\u002F\"));\n```\n\nFor WebAssembly\u002FAuto with prerendering, register in **both** server and `.Client` `Program.cs`.\n\n## Step 3 — Fetch Data\n\n### Simple load\n\n```razor\n@page \"\u002Fproducts\"\n@inject CatalogClient Catalog\n\n@if (products is null)\n{\n    \u003Cp>Loading…\u003C\u002Fp>\n}\nelse\n{\n    @foreach (var p in products)\n    {\n        \u003Cp>@p.Name — @p.Price.ToString(\"C\")\u003C\u002Fp>\n    }\n}\n\n@code {\n    private Product[]? products;\n\n    protected override async Task OnInitializedAsync()\n    {\n        products = await Catalog.GetProductsAsync();\n    }\n}\n```\n\nNo error handling needed in the simplest case — wrap the component usage in `\u003CErrorBoundary>` at the parent\u002Flayout level to catch unhandled exceptions.\n\n### Static SSR — StreamRendering\n\nWithout `[StreamRendering]`, the user sees nothing until `OnInitializedAsync` completes:\n\n```razor\n@attribute [StreamRendering]\n```\n\nOnly affects Static SSR. No effect on interactive components.\n\n### Prerendering guard\n\nPrerendering calls `OnInitializedAsync` twice. Skip the duplicate:\n\n```csharp\n[PersistentState] private Product[]? products;\n\nprotected override async Task OnInitializedAsync()\n{\n    products ??= await Catalog.GetProductsAsync();\n}\n```\n\nSee the `support-prerendering` skill for details.\n\n## Step 4 — Handle Errors\n\nUse `\u003CErrorBoundary>` as the default error strategy. It provides a consistent error experience across all components without any per-component catch logic. Wrap component usage at the layout or parent level:\n\n```razor\n\u003CErrorBoundary>\n    \u003CChildContent>\n        \u003CProductList \u002F>\n    \u003C\u002FChildContent>\n    \u003CErrorContent>\n        \u003Cdiv class=\"alert alert-danger\">Something went wrong. Please refresh.\u003C\u002Fdiv>\n    \u003C\u002FErrorContent>\n\u003C\u002FErrorBoundary>\n```\n\nNon-cancellation exceptions (`HttpRequestException`, etc.) propagate to `ErrorBoundary` automatically — no catch blocks needed in the component.\n\n### Cancellation is special\n\n`ComponentBase` silently swallows **all** `OperationCanceledException` — both self-initiated (disposal, parameter change) and external (HttpClient timeout). `ErrorBoundary` never sees them. This means:\n\n- Self-cancellation → silently ignored. Correct behavior, no action needed.\n- External cancellation (timeout) → also silently swallowed. Component gets stuck in loading state. Usually acceptable — timeouts are rare.\n\n### When to add in-component error handling\n\nOnly add catch blocks when the component needs behavior `ErrorBoundary` can't provide — typically **retries** or **timeout-specific messages**. Even then, only catch what you need:\n\n```csharp\n\u002F\u002F Catch only external cancellation (timeouts) — everything else flows to ErrorBoundary\ncatch (OperationCanceledException ex) when (!cancellationToken.IsCancellationRequested)\n{\n    Logger.LogWarning(ex, \"Request timed out for category {CategoryId}\", CategoryId);\n    error = \"The request timed out. Please try again.\";\n}\n```\n\nIf the component also needs to handle general errors with a retry button instead of letting `ErrorBoundary` take over:\n\n```csharp\ncatch (OperationCanceledException ex) when (!cancellationToken.IsCancellationRequested)\n{\n    Logger.LogWarning(ex, \"Request timed out for category {CategoryId}\", CategoryId);\n    error = \"The request timed out. Please try again.\";\n}\ncatch (Exception ex)\n{\n    Logger.LogError(ex, \"Failed to load products for category {CategoryId}\", CategoryId);\n    error = \"Unable to load products. Please try again.\";\n}\n```\n\n### Rules\n\n- **Never display `exception.Message`** — it may contain PII, connection strings, or internal details. Use hardcoded user-friendly messages.\n- **Always log through `ILogger`** — the real exception goes to the logging pipeline.\n- **Services must accept `CancellationToken`** — pass it to every async call so work stops when the component cancels.\n\n## Step 5 — Parameter-Driven Reloading\n\nWhen data depends on a route or query parameter that changes (e.g., navigating between `\u002Fproducts\u002F1` and `\u002Fproducts\u002F2`), use `OnParametersSetAsync` with a guard to skip reloads for parameters that don't affect data.\n\n### Pattern: cancel-and-reload with stale data overlay\n\n```razor\n@page \"\u002Fproducts\u002F{CategoryId:int}\"\n@implements IAsyncDisposable\n@inject ProductService ProductService\n@inject ILogger\u003CProducts> Logger\n\n@if (error is not null)\n{\n    \u003Cdiv class=\"alert alert-danger\">\n        \u003Cp>@error\u003C\u002Fp>\n        \u003Cbutton @onclick=\"LoadAsync\">Retry\u003C\u002Fbutton>\n    \u003C\u002Fdiv>\n}\nelse if (products is null)\n{\n    \u003Cp>Loading…\u003C\u002Fp>\n}\nelse\n{\n    @if (isLoading)\n    {\n        \u003Cp>\u003Cem>Refreshing…\u003C\u002Fem>\u003C\u002Fp>\n    }\n    @foreach (var p in products)\n    {\n        \u003Cp>@p.Name — @p.Price.ToString(\"C\")\u003C\u002Fp>\n    }\n}\n\n@code {\n    [Parameter] public int CategoryId { get; set; }\n    [SupplyParameterFromQuery] public string? ViewMode { get; set; } \u002F\u002F UI-only\n\n    private CancellationTokenSource? cts;\n    private int? loadedCategoryId;\n    private List\u003CProduct>? products;\n    private bool isLoading;\n    private string? error;\n\n    protected override async Task OnParametersSetAsync()\n    {\n        if (CategoryId == loadedCategoryId)\n        {\n            return; \u002F\u002F Only ViewMode changed — no reload\n        }\n\n        loadedCategoryId = CategoryId;\n        await LoadAsync();\n    }\n\n    private async Task LoadAsync()\n    {\n        if (cts is not null)\n        {\n            await cts.CancelAsync();\n            cts.Dispose();\n        }\n\n        cts = new CancellationTokenSource();\n        var cancellationToken = cts.Token; \u002F\u002F Capture locally before await\n\n        error = null;\n        isLoading = true;\n\n        try\n        {\n            var result = await ProductService.GetByCategoryAsync(CategoryId, cancellationToken);\n            products = result;\n        }\n        catch (OperationCanceledException ex) when (!cancellationToken.IsCancellationRequested)\n        {\n            Logger.LogWarning(ex, \"Timed out loading category {CategoryId}\", CategoryId);\n            error = \"The request timed out. Please try again.\";\n        }\n        finally\n        {\n            isLoading = false;\n        }\n    }\n\n    public async ValueTask DisposeAsync()\n    {\n        if (cts is not null)\n        {\n            await cts.CancelAsync();\n            cts.Dispose();\n        }\n    }\n}\n```\n\nKey details:\n- **Guard with tracked value**: `loadedCategoryId` skips reloads when only UI parameters change.\n- **Capture the token locally** before the await — the CTS field may be replaced by a concurrent parameter change.\n- **Don't null out `products`** on subsequent loads — keep existing data visible with an `isLoading` overlay.\n- **`IAsyncDisposable`** cancels pending work when the user navigates away.\n\n## Step 6 — Send Data\n\n```csharp\nvar response = await http.PostAsJsonAsync(\"products\", newProduct);\nresponse.EnsureSuccessStatusCode();\n\nvar response = await http.PutAsJsonAsync($\"products\u002F{id}\", updated);\nresponse.EnsureSuccessStatusCode();\n\nvar response = await http.DeleteAsync($\"products\u002F{id}\");\nresponse.EnsureSuccessStatusCode();\n```\n\nDisable the submit button while saving to prevent duplicate requests. Show a saving indicator.\n\n## Step 7 — Service Abstraction for Auto or WebAssembly with Prerendering\n\nWhen components run in both server and browser (Auto mode, or WebAssembly with prerendering), abstract data access behind an abstract base class:\n\n```csharp\npublic abstract class ProductServiceBase\n{\n    public abstract Task\u003CProduct[]> GetAllAsync(CancellationToken ct = default);\n}\n\n\u002F\u002F Server — direct database access\npublic class ServerProductService(AppDbContext db) : ProductServiceBase\n{\n    public override async Task\u003CProduct[]> GetAllAsync(CancellationToken ct = default) =>\n        await db.Products.ToArrayAsync(ct);\n}\n\n\u002F\u002F Client — calls API\npublic class ClientProductService(HttpClient http) : ProductServiceBase\n{\n    public override async Task\u003CProduct[]> GetAllAsync(CancellationToken ct = default) =>\n        await http.GetFromJsonAsync\u003CProduct[]>(\"api\u002Fproducts\", ct) ?? [];\n}\n```\n\nRegister the appropriate implementation in each project's `Program.cs`. Components inject the abstract base class.\n\n## Don'ts\n\n- **Don't call APIs in constructors** — use `OnInitializedAsync`.\n- **Don't use `OnParametersSetAsync` unless data depends on a changing parameter.** Use `OnInitializedAsync` for initial loads.\n- **Don't inject `DbContext` in WebAssembly\u002FAuto components** — no database in the browser.\n- **Don't call your own server via `HttpClient`** — inject the service directly.\n- **Don't display `exception.Message` to users** — PII risk. Log it, show a generic message.\n- **Don't catch `OperationCanceledException` for self-cancellation** — `ComponentBase` handles it.\n",{"name":5,"license":15,"description":7},"main","30954af1dcd1a74b63f05deb2e2c41e5ecae4a82","04-Frontend-Web-Development\u002Ffetch-and-send-data","https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack","https:\u002F\u002Fgithub.com\u002Fitsmejay18","2026-09-18 16:06:36",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add itsmejay18\u002FAI-Skills-for-My-Development-Stack --skill fetch-and-send-data",{"tool":36,"command":37},"bunx","bunx skills add itsmejay18\u002FAI-Skills-for-My-Development-Stack --skill fetch-and-send-data",{"tool":39,"command":40},"pnpm","pnpm dlx skills add itsmejay18\u002FAI-Skills-for-My-Development-Stack --skill fetch-and-send-data","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F04-Frontend-Web-Development\u002Ffetch-and-send-data\u002FSKILL.md",true,[],[45,52,59,66,73,80],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":19},"01M7D2RKBHPZ3E1RNN5DWHT550","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 Vector\u003CT>, 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\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F20-Performance-Optimization\u002Fvectorization\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7D2RDJ7RN3QK8GJR0QTER1D","resolve-project-references","Guide for interpreting ResolveProjectReferences time in MSBuild performance summaries. Activate when ResolveProjectReferences appears as the most expensive target and developers are trying to optimize it directly. Explains that the reported time includes wait time for dependent project builds and is misleading. Guides users to focus on task self-time instead. Do not activate for general build performance -- use build-perf-diagnostics instead.","https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F20-Performance-Optimization\u002Fresolve-project-references\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7D2R1H2GTNZYHG9YRX3JDQW","optimizing-ef-core-queries","Optimize and improve the performance of slow Entity Framework Core (EF Core) queries: make them generate less SQL, make fewer database round-trips, and return results faster. Use whenever an EF Core or DbContext query or data-access path is slow or should be made faster — whether or not EF Core owns the database schema. For EF Core, not Dapper or raw ADO.NET.","https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F20-Performance-Optimization\u002Foptimizing-ef-core-queries\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7D2QREG04W1YT0NEBHEW5C9","microbenchmarking","Activate this skill when BenchmarkDotNet (BDN) is involved in the task — creating, running, configuring, or reviewing BDN benchmarks. Also activate when microbenchmarking .NET code would be useful and BenchmarkDotNet is the likely tool. Consider activating when answering a .NET performance question requires measurement and BenchmarkDotNet may be needed. Covers microbenchmark design, BDN configuration and project setup, how to run BDN microbenchmarks efficiently and effectively, and using BDN for side-by-side performance comparisons. Do NOT use for profiling\u002Ftracing .NET code (dotnet-trace, PerfView), production telemetry, or load\u002Fstress testing (Crank, k6).","https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F20-Performance-Optimization\u002Fmicrobenchmarking\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7D2QGE175XWPZVACVH2868Z","incremental-build","Guide for optimizing MSBuild incremental builds. USE FOR: builds slower than expected on subsequent runs, 'nothing changed but it rebuilds anyway', diagnosing why targets re-execute unnecessarily, fixing broken no-op builds. Covers 8 common causes: missing Inputs\u002FOutputs on custom targets, volatile properties in output paths (timestamps\u002FGUIDs), file writes outside tracked Outputs, missing FileWrites registration, glob changes, Visual Studio Fast Up-to-Date Check (FUTDC) issues. Key diagnostic: look for 'Building target completely' vs 'Skipping target' in binlog. DO NOT USE FOR: first-time build slowness (use build-perf-baseline), parallelism issues (use build-parallelism), evaluation-phase slowness (use eval-performance), non-MSBuild build systems.","https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F20-Performance-Optimization\u002Fincremental-build\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7D2Q1DQTC6K49R73WQTTPSB","eval-performance","Guide for diagnosing and improving MSBuild project evaluation performance. USE FOR: builds slow before any compilation starts, high evaluation time in binlog analysis, expensive glob patterns walking large directories (node_modules, .git, bin\u002Fobj), deep import chains (>20 levels), preprocessed output >10K lines indicating heavy evaluation, property functions with file I\u002FO ($([System.IO.File]::ReadAllText(...))), multiple evaluations per project. Covers the 5 MSBuild evaluation phases, glob optimization via DefaultItemExcludes, import chain analysis with \u002Fpp preprocessing. DO NOT USE FOR: compilation-time slowness (use build-perf-diagnostics), incremental build issues (use incremental-build), non-MSBuild build systems.","https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F20-Performance-Optimization\u002Feval-performance\u002FSKILL.md",[],[]]