Skip to main content
rule

vue-3-nuxt-3-typescript-cursorrules-prompt-file — Cursor rule: Vue

A Cursor rule that tells the agent how to write Vue 3 and Nuxt 3 code: Composition API, TypeScript interfaces, Nuxt conventions. Useful when the project already runs this stack.

Install into Cursor · Manually: put the files in place All methods and platforms ↓
.cursor/rules/vue-3-nuxt-3-typescript-cursorrules-prompt-file.mdc
Open on GitHub

What vue-3-nuxt-3-typescript-cursorrules-prompt-file does

The file spells out how code should look in a Vue 3 and Nuxt 3 project. Components use the Composition API with <script setup> and clear boundaries. Object shapes go through TypeScript interfaces, and shared types stay next to the feature that owns them.

Nuxt conventions get their own section: routing, layouts, composables, plugins, server routes and runtime config. For styling the rule asks for responsive, accessible Tailwind CSS that matches the project design system. VueUse utilities are fine where they simplify reactivity without hiding state transitions.

Vite and Nuxt builds should be optimised with lazy loading, dynamic imports, image optimisation and a look at the bundle. Installing it means dropping one file into the Cursor rules directory — there are no dependencies to pull. The catch is scope: globs is set to **/*, so the text is mixed into context for every file in the repository. If your repo holds non-Vue code, that is noise, and narrowing globs yourself is the fix.

What it helps with

  • keep the agent on one component style with the Composition API
  • describe object shapes with TypeScript interfaces instead of any
  • follow Nuxt conventions for layouts, composables and server routes
  • keep Tailwind CSS inside the project design system
  • point the agent at VueUse where it actually helps

Example prompts for the agent

  • add a new composable that loads the user profile, following Nuxt conventions
  • refactor this component to <script setup> and move prop types into an interface
  • review the build for places where dynamic imports and lazy loading fit

How to install vue-3-nuxt-3-typescript-cursorrules-prompt-file

Manually: put the files in place

.cursor/rules/vue-3-nuxt-3-typescript-cursorrules-prompt-file.mdc

Frontmatter: description, globs, alwaysApply

Step by step, with commands for each platform: Cursor rules: .mdc files, four modes and what replaced .cursorrules

Questions about vue-3-nuxt-3-typescript-cursorrules-prompt-file

How do I install vue-3-nuxt-3-typescript-cursorrules-prompt-file in Cursor?

Create .cursor/rules/vue-3-nuxt-3-typescript-cursorrules-prompt-file.mdc in your project root and paste the rule contents into it.

What does this rule do?

It tells Cursor how to write Vue 3 and Nuxt 3 code: Composition API, TypeScript interfaces, Nuxt conventions, Tailwind CSS, VueUse and build optimisation.

Does the rule apply to every file in the project?

Yes, it sets globs: **/*, so the text is added to context across the whole repository. If your Vue code lives in specific folders, narrow globs to those.

Source text

vue-3-nuxt-3-typescript-cursorrules-prompt-file.mdc · CC0-1.0
---
description: "Cursor rules for Vue 3 development with TypeScript integration."
globs: **/*
alwaysApply: false
---
Vue 3 Nuxt 3 TypeScript Guidelines

- Use Vue 3 Composition API patterns with `<script setup>` and clear component boundaries.
- Prefer TypeScript interfaces for object shapes and keep shared types close to the feature that owns them.
- Use Nuxt conventions for routing, layouts, composables, plugins, server routes, and runtime config.
- Keep Tailwind CSS usage responsive, accessible, and consistent with the project design system.
- Use VueUse utilities where they simplify reactivity without hiding important state transitions.
- Optimize Vite/Nuxt builds with lazy loading, dynamic imports, image optimization, and bundle review.

© PatrickJS · CC0-1.0 · PatrickJS/awesome-cursorrules

Similar IDE rules

All IDE rules for Frontend and UI →

From the same set68

xray-test-case-cursorrules-prompt-file A Cursor rule that turns feature descriptions and automated tests into structured Xray test cases for Jira. Useful when QA writes manual scenarios by hand. ★ 41,011repo stars webassembly-z80-cellular-automata-cursorrules-prom A Cursor rule that walks the agent through adding a region grid to a Z80 cellular automata simulation built on WebAssembly. ★ 41,011repo stars vue A Cursor rule that tells the agent how to write Vue: Composition API, Pinia, typing and routing. Useful when the project already has .vue and .ts files. ★ 41,011repo stars vitest-unit-testing-cursorrules-prompt-file A Cursor rule that turns the agent into a Vitest and TypeScript test writer: it targets business logic and utilities, mocking dependencies with vi.mock. ★ 41,011repo stars unity-cursor-ai-c-cursorrules-prompt-file A Cursor rule that briefs the assistant on a Unity game project in C#: modular code, responsive mechanics, real-time performance. ★ 41,011repo stars typescript A Cursor rule that pins down how the agent writes TypeScript: types, naming, error handling. Useful when several people touch the same codebase. ★ 41,011repo stars typescript-vite-tailwind-cursorrules-prompt-file A Cursor rule that pins down TypeScript code style for Vue projects built with Vite and styled with Tailwind. Useful when you want the agent's output to stay predictable. ★ 41,011repo stars typescript-nodejs-nextjs-react-ui-css-cursorrules- A Cursor rule that pins down how the agent writes TypeScript, Next.js App Router, React and Tailwind code. Useful when generated components drift from your conventions. ★ 41,011repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor