nuxt

nuxt is a cursor rule for Cursor from nedcodes-ok/cursor-doctor. It costs 424 tokens per session, scanned A, a copy of nuxt, MIT.

A set of coding rules for Nuxt 3, a framework for building Vue web applications with server-side rendering and server routes. It covers automatic imports, pages, data loading, shared state, and server request handling.

In plain words
What is it for?
It is for creating Nuxt pages, API and server routes, composables, data-fetching logic, shared application state, input validation, cookies, and server errors.
Why use it?
It helps the coding agent use Nuxt 3's conventions consistently and avoid problems with server-rendered pages, shared state, and browser/server differences.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc). Also seen: mentions Cursor.

Good fit It is for creating Nuxt pages, API and server routes, composables, data-fetching logic, shared application state, input validation, cookies, and server errors.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/nedcodes-ok/cursor-doctor/nuxt
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/nedcodes-ok/cursor-doctor

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 nuxt

README.md
[![agentmods](https://agentmods.dev/badge/rules/nedcodes-ok/cursor-doctor/nuxt/github.svg)](https://agentmods.dev/rules/nedcodes-ok/cursor-doctor/nuxt)
Your own site
<a href="https://agentmods.dev/rules/nedcodes-ok/cursor-doctor/nuxt"><img src="https://agentmods.dev/badge/rules/nedcodes-ok/cursor-doctor/nuxt/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 nuxt

Your own site · 80×15
<a href="https://agentmods.dev/rules/nedcodes-ok/cursor-doctor/nuxt"><img src="https://agentmods.dev/badge/rules/nedcodes-ok/cursor-doctor/nuxt.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 424 This file is loaded in full into every session.
When invoked 424 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.00424 $0.00424
Opus 5.5 $0.00170 $0.00170
Sonnet 5.5 $0.00085 $0.00085
Haiku 4.5 $0.00042 $0.00042

Measured 3mo ago against content hash 5a7946ca4010, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

nuxt 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 3mo ago.

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.

Origin

This is a copy

100% identical to nuxt — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

pro-kit/templates/frameworks/nuxt.mdc · 46 lines

What it actually says

Nuxt 3 Cursor Rules

You are an expert Nuxt 3 developer. Follow these rules:

Architecture

  • Auto-imports are on: dont manually import ref, computed, useState, useFetch
  • File-based routing in pages/. Use definePageMeta for middleware/layout
  • Server routes in server/api/ and server/routes/
  • Composables in composables/ are auto-imported — use them liberally

Data Fetching

  • useFetch for component-level data with SSR support
  • useAsyncData with custom fetch logic when useFetch is too simple
  • $fetch for client-only or server-side (event handlers, server routes)
  • Always provide a unique key to useAsyncData to avoid hydration mismatches
  • lazy: true for non-critical data, watch for reactive refetching

State

  • useState for SSR-safe shared state (replaces Vuex for simple cases)
  • Pinia for complex state management with devtools support
  • Never use ref() for shared state — it wont survive SSR hydration

Server

  • Server routes return data directly — Nuxt serializes automatically
  • Use defineEventHandler for all server routes
  • Validate input with getValidatedQuery/getValidatedBody + Zod
  • H3 utilities: getHeader, setCookie, createError for server logic
  • Throw createError({ statusCode: 404 }) — Nuxt shows error page

Performance

  • NuxtImg for optimized images with provider support
  • Route rules in nuxt.config for per-route caching/prerendering
  • useNuxtData for accessing cached data from other composables
  • Payload extraction for static sites — reduces JS bundle

Config

  • Runtime config (runtimeConfig) for env vars — never process.env in client
  • App config (app.config.ts) for build-time non-sensitive config
  • Layers for sharing config/components across projects
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. 3mo ago First seen · 46 lines · 424 tokens per session scan A 5a7946ca4010

Subscribe to this mod's changes

nuxt is a cursor rule published in the GitHub repository nedcodes-ok/cursor-doctor (10 stars, last pushed 8mo ago), licensed MIT. It adds 424 tokens to every session, about $0.0017 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to nuxt, differing in 0 lines, and is treated as a copy.

Related

nuxt compared with cursor rules from other repositories

nuxt next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nuxtnedcodes-ok/cursor-doctorCursor rule108mo agoMITA424Cursor
vuenedcodes-ok/cursorrules-collectionCursor rule389mo agoMITA866Cursor
sveltekitnedcodes-ok/cursorrules-collectionCursor rule389mo agoMITA510Cursor
nuxtnedcodes-ok/cursorrules-collectionCursor rule389mo agoMITA424Cursor
sveltenedcodes-ok/cursorrules-collectionCursor rule389mo agoMITA273Cursor
test-patternstugkanboz/awesome-cursorrulesCursor rule242mo agoMITA2,177Cursor
testing-fundamentalstugkanboz/awesome-cursorrulesCursor rule242mo agoMITA26Cursor