Skip to content
Back to skills

Convert To Nsload

ASecurity

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.

  • 5 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added October 23, 2026
development

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add nsail-ar/nsail-stack --skill convert-to-nsload --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Convert To Nsload?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Convert To Nsload
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nsail-ar-convert-to-nsload/badge)](https://www.skillsdirectory.com/skills/nsail-ar-convert-to-nsload)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: convert-to-nsload
description: 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.
---

# Convert to NsLoad

The contract — three states and no fourth, the Retry, `Reload()`, honest empty states, a card's
`Handoff` inside `OnLoad`, a paged list keeping its `OnQuery` — is
`${CLAUDE_PLUGIN_ROOT}/doctrine/ui/hosts.md`, *NsLoad* (and *NsDashboard* for where a card
reads); the handoff record is `${CLAUDE_PLUGIN_ROOT}/doctrine/intentional-ui-cases-controls.md`,
"One arrival, one loading". Read them first. **A screen being touched for ANY reason converts.**

## Find them

A `.razor` with a `Send`/`Handoff` in `OnCreatedAsync`/`OnParametersSetAsync`/`OnInitializedAsync`
and no `<NsLoad`.

## Recipe

1. Move the read into the region's **`OnLoad`**: a load failure is never a toast and never the
   splash — the region reports it in place.
2. Pass **`args.CancellationToken`** to whatever the read sends. A card reads through
   `NsPartial.Handoff`, never `Send`, still inside `OnLoad`: **pass the token by name**
   (`Handoff(message, cancellationToken: args.CancellationToken)`) — the second positional
   parameter is the scope.
3. Route the screen's re-reads (a filter moved, a `*Saved` event, a deleted row) through
   **`Reload()`** on an `@ref`. A paged list keeps its `OnQuery`, which writes the question down
   and calls `Reload()`.
4. Keep the empty states honest: nothing found renders the content's own empty state; a read that
   never happened prints no figures (`DailySalesCard`); a failure replaces the content.
5. A card with no subject reads once on mount; a subject card guards on the subject a read has
   STARTED for, claimed before the await (hosts.md, *NsDashboard*: the handoff is take-once).

## Check

`NsLoad` reads once, from its own `OnInitializedAsync`: delete any read left in
`OnCreatedAsync`/`OnParametersSetAsync` that the region now owns — two owners is the double
load. A card shows nothing until its read answers (`CardHandoffTests`).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.