[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CV7XQH752Z3P29MRJ2BK7F":3,"skill-same:01M7CV7XQH752Z3P29MRJ2BK7F":45},{"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},"01M7CV7XQH752Z3P29MRJ2BK7F","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).","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\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":14,"description":7},"main","ccab8dffc0ecc173838f51e4c5f0d3b51a704f41","plugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Ffetch-and-send-data","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 fetch-and-send-data",{"tool":37,"command":38},"bunx","bunx skills add deadmade\u002Fdead-agent-skills --skill fetch-and-send-data",{"tool":40,"command":41},"pnpm","pnpm dlx skills add deadmade\u002Fdead-agent-skills --skill fetch-and-send-data","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Ffetch-and-send-data\u002FSKILL.md",true,[],[46,53,62,70,77,84],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"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":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":57,"licenseFileUrl":58,"sourceHtmlUrl":59,"categories":60,"keywords":61,"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":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":57,"licenseFileUrl":66,"sourceHtmlUrl":67,"categories":68,"keywords":69,"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":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"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":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"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":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"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",[],[]]