[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7E43WB8NPCHVQ07KZQYBBS7":3,"skill-same:01M7E43WB8NPCHVQ07KZQYBBS7":44},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"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":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7E43WB8NPCHVQ07KZQYBBS7","convert-to-nsload",null,"Convert a screen's data read into an NsLoad region (OnLoad, Reload, Retry, NsPartial.Handoff for dashboard cards). Use whenever you touch a Blazor screen or card that loads in OnCreatedAsync, OnParametersSetAsync or OnInitializedAsync, or when a load failure shows as a toast, a card reads twice, or an empty state lies about a failed read.","nsail-ar\u002Fnsail-stack","nsail-ar","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F311138441?v=4","01M7E43SJ8P0ZN6TB6CXGBQQ3R","01M7E43SK611Q8B0KG2CF9A58X",4,"MIT","https:\u002F\u002Fgithub.com\u002Fnsail-ar\u002Fnsail-stack\u002Fblob\u002Fmain\u002Fplugins\u002Fnsail-stack\u002Fskills\u002Fconvert-to-nsload\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: convert-to-nsload\ndescription: Convert a screen's data read into an NsLoad region (OnLoad, Reload, Retry, NsPartial.Handoff for dashboard cards). Use whenever you touch a Blazor screen or card that loads in OnCreatedAsync, OnParametersSetAsync or OnInitializedAsync, or when a load failure shows as a toast, a card reads twice, or an empty state lies about a failed read.\n---\n\n# Convert to NsLoad\n\n`NsLoad` is the region around content that had to be READ — a list, a card's figures, a\ncounter. The contract is `${CLAUDE_PLUGIN_ROOT}\u002Fdoctrine\u002Fui\u002Fhosts.md` (NsLoad, NsDashboard); the\nhandoff record is `${CLAUDE_PLUGIN_ROOT}\u002Fdoctrine\u002Fintentional-ui-cases.md`, \"One arrival, one\nloading\". This skill is the conversion recipe.\n\n**No story sweeps the rest: a screen being touched for ANY reason converts.** Screens and\ncards still load from `OnCreatedAsync`\u002F`OnParametersSetAsync`\u002F`OnInitializedAsync` with no\n`\u003CNsLoad>` and get the floor `NsPage` provides, not a surface of their own — grep for a\n`Send`\u002F`Handoff` in those methods in a `.razor` with no `\u003CNsLoad`. A list page and a\ndashboard card are the two shapes that earn it first.\n\n## The contract\n\nThree states and no fourth: **not read yet** (nothing), **read** (`ChildContent`), **could\nnot be read** (the reason and a Retry, in the content's own place). Content inside the\nregion exists only when a read produced it — which is what keeps \"no records\" an answer\nabout the data instead of an answer about the network.\n\n## Recipe\n\n1. Move the read out of `OnCreatedAsync`\u002F`OnParametersSetAsync` into the region's\n   **`OnLoad`** — the region runs it on a `Runner` belonging to that one read, which turns\n   a `BusinessException` into a `Problem` and everything else into\n   `SystemProblem.Unhandled()`. The failure is reported handled there: **a load failure is\n   never a toast** (it fades, carries no retry) and never the app-wide splash.\n2. **Pass `args.CancellationToken` to whatever the read sends** (`ReadEventArgs`). A read\n   the region has superseded — a filter moved, Retry pressed on a slow one — is cancelled,\n   and the token is the only thing that stops it costing a round trip.\n3. Screen-side re-reads go through **`Reload()`** on an `@ref` — a filter moved, a `*Saved`\n   event arrived, a row was deleted — so the screen's re-reads and the user's Retry are\n   one path with one failure surface. The Retry re-runs `OnLoad` alone; nothing around\n   the region reloads and the page is not re-created.\n4. Keep the empty states honest:\n   - **Nothing to read is not a failed read** — a search nobody matched returns normally\n     and the content renders its own empty state. Only a throw is a failure.\n   - **A read that never happened is not one that came back empty** — a load that returned\n     early (no active organization on a card scoped to one) produced no figures, so the\n     content may not print any; it says which of the two it is (`DailySalesCard`).\n5. The failure's words are the sender's, resolved through `ProblemManager.GetMessage` — a\n   reason that reads badly is fixed in its own kit's strings, never in the Stack.\n\nA failed read **replaces** the content rather than sitting above it: a filter that could\nnot be applied leaving the previous filter's rows on screen is its own lie.\n\n## The card half (dashboard cards)\n\n- **A card reads through `NsPartial.Handoff`, never `Send`** — the prerender resolves the\n  read and persists the answer, the WASM client adopts it: one query per card per page\n  load instead of two. A subject card passes its subject as the scope.\n- Inside `OnLoad` it is STILL a `Handoff` — the region owns the three states and the\n  retry, the handoff owns which side asks; the two answer different halves. The gotcha:\n  **pass the token by name** —\n  `Handoff(message, cancellationToken: args.CancellationToken)` — because the second\n  *positional* parameter is the scope.\n- **The handoff is take-once, so WHERE the card reads matters**: a card with no subject\n  reads once on mount — inside `OnLoad` where it has a region, `OnInitializedAsync` where\n  it does not; a subject card keeps `OnParametersSetAsync` but **guards on the subject a\n  read has STARTED for, claimed before the await** (the null subject answers in\n  `OnParametersSetAsync`, so the guard is reachable for the whole round trip). Both hosts\n  rebuild the parameter dictionary on every render, so anything else asks twice.\n- **Retry re-reads for real**: the prerendered answer was taken on the first pass and\n  there is nothing left to adopt — which is what a retry should mean.\n- **A card shows nothing until its read has answered** — a zero or an \"empty\" painted\n  while the read is in flight is a false claim. Pinned by `CardHandoffTests`; its\n  exemption list is one card that defers deliberately.\n\n## Check\n\n`NsLoad` reads once, from its own `OnInitializedAsync`. If the screen still has a read in\n`OnCreatedAsync`\u002F`OnParametersSetAsync` that the region now owns, delete it — two owners\nis the double-loading the handoff exists to kill.\n","# Convert to NsLoad\n\n`NsLoad` is the region around content that had to be READ — a list, a card's figures, a\ncounter. The contract is `${CLAUDE_PLUGIN_ROOT}\u002Fdoctrine\u002Fui\u002Fhosts.md` (NsLoad, NsDashboard); the\nhandoff record is `${CLAUDE_PLUGIN_ROOT}\u002Fdoctrine\u002Fintentional-ui-cases.md`, \"One arrival, one\nloading\". This skill is the conversion recipe.\n\n**No story sweeps the rest: a screen being touched for ANY reason converts.** Screens and\ncards still load from `OnCreatedAsync`\u002F`OnParametersSetAsync`\u002F`OnInitializedAsync` with no\n`\u003CNsLoad>` and get the floor `NsPage` provides, not a surface of their own — grep for a\n`Send`\u002F`Handoff` in those methods in a `.razor` with no `\u003CNsLoad`. A list page and a\ndashboard card are the two shapes that earn it first.\n\n## The contract\n\nThree states and no fourth: **not read yet** (nothing), **read** (`ChildContent`), **could\nnot be read** (the reason and a Retry, in the content's own place). Content inside the\nregion exists only when a read produced it — which is what keeps \"no records\" an answer\nabout the data instead of an answer about the network.\n\n## Recipe\n\n1. Move the read out of `OnCreatedAsync`\u002F`OnParametersSetAsync` into the region's\n   **`OnLoad`** — the region runs it on a `Runner` belonging to that one read, which turns\n   a `BusinessException` into a `Problem` and everything else into\n   `SystemProblem.Unhandled()`. The failure is reported handled there: **a load failure is\n   never a toast** (it fades, carries no retry) and never the app-wide splash.\n2. **Pass `args.CancellationToken` to whatever the read sends** (`ReadEventArgs`). A read\n   the region has superseded — a filter moved, Retry pressed on a slow one — is cancelled,\n   and the token is the only thing that stops it costing a round trip.\n3. Screen-side re-reads go through **`Reload()`** on an `@ref` — a filter moved, a `*Saved`\n   event arrived, a row was deleted — so the screen's re-reads and the user's Retry are\n   one path with one failure surface. The Retry re-runs `OnLoad` alone; nothing around\n   the region reloads and the page is not re-created.\n4. Keep the empty states honest:\n   - **Nothing to read is not a failed read** — a search nobody matched returns normally\n     and the content renders its own empty state. Only a throw is a failure.\n   - **A read that never happened is not one that came back empty** — a load that returned\n     early (no active organization on a card scoped to one) produced no figures, so the\n     content may not print any; it says which of the two it is (`DailySalesCard`).\n5. The failure's words are the sender's, resolved through `ProblemManager.GetMessage` — a\n   reason that reads badly is fixed in its own kit's strings, never in the Stack.\n\nA failed read **replaces** the content rather than sitting above it: a filter that could\nnot be applied leaving the previous filter's rows on screen is its own lie.\n\n## The card half (dashboard cards)\n\n- **A card reads through `NsPartial.Handoff`, never `Send`** — the prerender resolves the\n  read and persists the answer, the WASM client adopts it: one query per card per page\n  load instead of two. A subject card passes its subject as the scope.\n- Inside `OnLoad` it is STILL a `Handoff` — the region owns the three states and the\n  retry, the handoff owns which side asks; the two answer different halves. The gotcha:\n  **pass the token by name** —\n  `Handoff(message, cancellationToken: args.CancellationToken)` — because the second\n  *positional* parameter is the scope.\n- **The handoff is take-once, so WHERE the card reads matters**: a card with no subject\n  reads once on mount — inside `OnLoad` where it has a region, `OnInitializedAsync` where\n  it does not; a subject card keeps `OnParametersSetAsync` but **guards on the subject a\n  read has STARTED for, claimed before the await** (the null subject answers in\n  `OnParametersSetAsync`, so the guard is reachable for the whole round trip). Both hosts\n  rebuild the parameter dictionary on every render, so anything else asks twice.\n- **Retry re-reads for real**: the prerendered answer was taken on the first pass and\n  there is nothing left to adopt — which is what a retry should mean.\n- **A card shows nothing until its read has answered** — a zero or an \"empty\" painted\n  while the read is in flight is a false claim. Pinned by `CardHandoffTests`; its\n  exemption list is one card that defers deliberately.\n\n## Check\n\n`NsLoad` reads once, from its own `OnInitializedAsync`. If the screen still has a read in\n`OnCreatedAsync`\u002F`OnParametersSetAsync` that the region now owns, delete it — two owners\nis the double-loading the handoff exists to kill.\n",{"name":5,"description":7},"main","05792baf2de3007074f23bcb6539a1a6b46b3486","plugins\u002Fnsail-stack\u002Fskills\u002Fconvert-to-nsload",0,"https:\u002F\u002Fgithub.com\u002Fnsail-ar\u002Fnsail-stack","https:\u002F\u002Fgithub.com\u002Fnsail-ar","2026-11-14 14:30:35",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add nsail-ar\u002Fnsail-stack --skill convert-to-nsload",{"tool":36,"command":37},"bunx","bunx skills add nsail-ar\u002Fnsail-stack --skill convert-to-nsload",{"tool":39,"command":40},"pnpm","pnpm dlx skills add nsail-ar\u002Fnsail-stack --skill convert-to-nsload","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fnsail-ar\u002Fnsail-stack\u002Fblob\u002Fmain\u002Fplugins\u002Fnsail-stack\u002Fskills\u002Fconvert-to-nsload\u002FSKILL.md",true,[],[45,52,59,66,73],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M7E44SDA4CP16CTBVTMK0VVK","test-harness","Write or run tests against the NSail harnesses — which layer owes the proof (Architecture, Stack, kit WebApi.Tests on Postgres, bUnit, Apps, browser E2E), HandlerHost, the Release-build E2E host, Api.Send, culture and viewport. Use for a kit, bUnit or E2E test, deciding whether a fix earns a regression test, a flaky or instantly-failing suite, or reporting test totals.","https:\u002F\u002Fgithub.com\u002Fnsail-ar\u002Fnsail-stack\u002Fblob\u002Fmain\u002Fplugins\u002Fnsail-stack\u002Fskills\u002Ftest-harness\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":18},"01M7E44KMEW16SXT6XEGDKX03M","new-message","Add an NSail operation end to end — a message in the Sdk ([Http] route, validation), its IHandler in WebApi, the Row\u002FRef\u002FModel projection, BusinessException failures and strings; endpoint, DI and client are generated. Use for a query or command such as ListInvoices or CreatePayment, when choosing a verb (there is no Save), or on SenderNotFound.","https:\u002F\u002Fgithub.com\u002Fnsail-ar\u002Fnsail-stack\u002Fblob\u002Fmain\u002Fplugins\u002Fnsail-stack\u002Fskills\u002Fnew-message\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":18},"01M7E44C5AYM5PQQEAN6V2XTWR","new-mapping","Write or convert a handler so the generated entity mapper copies the data — [MapFrom] a message onto an entity graph, [MapTo] a Row\u002FModel\u002FRef projection, EntityMapper.Map\u002FUpsert\u002FProject. Use when a handler would assign entity.X = message.X by hand, build a new Entity from a message, merge a child collection by key, or project with .Select; when adding a Create\u002FUpdate\u002FList\u002FGet\u002FLookup to a kit; or when a build says NSG004 to NSG013 or NSG025.","https:\u002F\u002Fgithub.com\u002Fnsail-ar\u002Fnsail-stack\u002Fblob\u002Fmain\u002Fplugins\u002Fnsail-stack\u002Fskills\u002Fnew-mapping\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M7E446ZQC8228353102TW3HX","new-icon","Add an icon to an NSail icon catalog (NsIcons, a kit's or app's like ProductsIcons or OpticalIcons, a Stack library's own) from a Material Symbols path. Use when a screen, menu entry, button or field needs a glyph no catalog has, instead of Icons.Material.*, or when a pasted icon renders as nothing or a dot. Covers the 960-grid viewBox transform, catalog choice and sizing.","https:\u002F\u002Fgithub.com\u002Fnsail-ar\u002Fnsail-stack\u002Fblob\u002Fmain\u002Fplugins\u002Fnsail-stack\u002Fskills\u002Fnew-icon\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M7E4414KBNYX5R1NTZ0RTHMT","doctrine","The Stack's architecture — which page to read before touching a message, handler, entity, migration, tenancy, permission, screen, Ns* component, test, React client, localization key or project layout. Use before editing code that builds on the Stack, when a CLAUDE.md routes the Stack's doctrine, or when asked how the Stack wants something done.","https:\u002F\u002Fgithub.com\u002Fnsail-ar\u002Fnsail-stack\u002Fblob\u002Fmain\u002Fplugins\u002Fnsail-stack\u002Fskills\u002Fdoctrine\u002FSKILL.md",[],[]]