page-loading-golden-path

page-loading-golden-path is a cursor rule for Cursor from YuDefine/nuxt-supabase-starter. It costs 0 tokens per session (3,724 once invoked), scanned A, original, MIT.

A Nuxt page-loading pattern that combines a built-in navigation progress indicator with non-blocking data loading and in-page loading placeholders. Heavy pages may also use a full-page overlay and a timeout notification.

In plain words
What is it for?
It helps teams add route-change progress, skeleton placeholders, optional loading overlays, and timeout feedback to Nuxt pages.
Why use it?
Waiting for a top-level data request can leave a route blank until everything finishes, making the application feel stuck. Early loading feedback lets the page appear while its main data is still arriving.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions Codex.

Good fit It helps teams add route-change progress, skeleton placeholders, optional loading overlays, and timeout feedback to Nuxt pages.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/yudefine/nuxt-supabase-starter/page-loading-golden-path
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/YuDefine/nuxt-supabase-starter

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for page-loading-golden-path

README.md
[![agentmods](https://agentmods.dev/badge/rules/yudefine/nuxt-supabase-starter/page-loading-golden-path/github.svg)](https://agentmods.dev/rules/yudefine/nuxt-supabase-starter/page-loading-golden-path)
Your own site
<a href="https://agentmods.dev/rules/yudefine/nuxt-supabase-starter/page-loading-golden-path"><img src="https://agentmods.dev/badge/rules/yudefine/nuxt-supabase-starter/page-loading-golden-path/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for page-loading-golden-path

Your own site · 80×15
<a href="https://agentmods.dev/rules/yudefine/nuxt-supabase-starter/page-loading-golden-path"><img src="https://agentmods.dev/badge/rules/yudefine/nuxt-supabase-starter/page-loading-golden-path.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 3,724 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.03724
Opus 5 $0.00000 $0.01862
Sonnet 5 $0.00000 $0.00745
Haiku 4.5 $0.00000 $0.00372

Measured yesterday against content hash 8d371c3ba656, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

page-loading-golden-path scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

template/.cursor/rules/page-loading-golden-path.mdc · 154 lines

How it starts

The opening of the file, as written. The whole thing — 154 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Nuxt 導航 Loading Golden Path(實作階段強制)

核心命題:頁面切換時的 loading 回饋是 cross-cutting concern,不集中規範就會每個 consumer 各自漏。最常見的兩個破洞:(1) app.vue 沒掛 <NuxtLoadingIndicator> → 路由切換時零回饋;(2) 頁面用頂層 blocking await useFetch 抓主資料 → Nuxt 卡住 route setup()、等 request 回來才 render 整頁 → 初次導航時頁面還沒掛載、頁面自己的 skeleton 沒機會顯示 → 使用者盯空白等,體感像「卡死」。

Reference impl = app/app.vue + app/plugins/page-loading.client.ts + app/composables/usePageLoading.ts + app/stores/ui.ts)。本 rule 從 萃取架構,但修掉其 warts(自刻 bar 跟 NuxtLoadingIndicator 重複、skeleton 用硬編碼 bg-gray-* 違反 color-mode rule)。

Cookbook 範本:vendor/snippets/nuxt-page-loading/(絕對路徑:~/offline/clade/vendor/snippets/nuxt-page-loading/,不 bulk-propagate)。

Audit signal:scripts/audit-nuxt-page-loading.ts(diagnostic-only)。

此 rule 與 [[nuxt-ui-mcp]](API 正確性)、[[nuxt-ui-conventions]](慣例一致性)、[[development]] § Nuxt UI Color Mode(語意色)並列同 spirit,範圍不重疊。


三層架構(Tier 1/2 是 MUST,Tier 3 OPTIONAL)

Tier 1(MUST,普世、零成本)— <NuxtLoadingIndicator />

app.vue<UApp> 內、<NuxtLayout> 前掛一行 <NuxtLoadingIndicator />。Nuxt 內建路由級頂部進度條,hook page:start / page:finish 自動開關,零 per-page code,自帶 a11y。單這條就解掉多數「導航空白感」。

Tier 2(MUST,資料抓取慣例)— 非阻塞 fetch + in-content loading

頁面主資料 MUST 用非阻塞 fetch,讓導航即刻完成、頁面框架立刻 render、資料區用自己的 skeleton 補位:

  • useLazyFetch(url, opts)(= useFetch(url, { ...opts, lazy: true }),但不要頂層 await
  • useAsyncData(key, fn, { lazy: true })
  • Pinia Colada useQuery(...)(內建 state / asyncStatus loading 狀態)

In-content skeleton MUST<USkeleton>(theme-aware)或語意色 token(bg-elevated / bg-muted),NEVER 硬編碼 bg-gray-* + dark: prefix(違反 [[development]] § Nuxt UI Color Mode)。skeleton 容器標 aria-hidden="true",配一個 sr-only role="status" 告知「載入中」即可(per modern-web-guidance accessibility:別對每個 interstitial 過度播報)。

Read the full file on GitHub · 154 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · +1 lines 8d371c3ba656
  2. 5d ago First seen · 153 lines · 0 tokens per session scan A d6c41b7b2418

Subscribe to this mod's changes

page-loading-golden-path is a cursor rule published in the GitHub repository YuDefine/nuxt-supabase-starter (45 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,724 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.