Skip to main content
rule

vue-3-nuxt-3-development-cursorrules-prompt-file — Cursor rule

Directs Cursor to follow Vue 3 and Nuxt 3 practices. Requires planning via pseudocode first, uses the Composition API, and relies exclusively on TailwindCSS.

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

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

The prompt sets Cursor up as an engineer working with Vue 3, Nuxt 3, TypeScript, and TailwindCSS. It forces the model to write detailed pseudocode before generating files. Once you confirm the draft, it delivers runnable code. Placeholders and TODO comments are prohibited.

Implementation rules enforce the Composition API, early returns, and typed arrow constants instead of classic function declarations. Event handlers must carry the handle prefix, such as handleClick. Styling is restricted to Tailwind utility classes, ruling out plain CSS or <style> blocks. That makes this rule clash with codebases that rely on scoped CSS modules. It also mandates basic accessibility attributes like tabindex and ARIA labels on interactive elements.

What it helps with

  • enforce Composition API conventions across Vue 3 components
  • require pseudocode outlines before generating code
  • include ARIA attributes and keyboard handlers in template markup
  • prevent unfinished code containing TODO markers or empty stubs

Example prompts for the agent

  • Build a Nuxt 3 navigation drawer component with keyboard controls.
  • Create a typed Vue 3 user settings form using TailwindCSS classes.
  • Implement a theme toggle composable with TypeScript and early returns.

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

Manually: put the files in place

.cursor/rules/vue-3-nuxt-3-development-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-development-cursorrules-prompt-file

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

Save the file to .cursor/rules/vue-3-nuxt-3-development-cursorrules-prompt-file.mdc in your project repository.

What does this rule enforce?

It instructs Cursor to draft detailed pseudocode first, write full Composition API code, and format HTML with TailwindCSS.

Can I use custom CSS files with this rule active?

No, the prompt explicitly excludes standalone CSS and style tags in favor of Tailwind classes.

Source text

vue-3-nuxt-3-development-cursorrules-prompt-file.mdc · CC0-1.0
---
description: "Cursor rules for Vue 3 development with Nuxt 3 integration."
globs: **/*
alwaysApply: false
---
You are a Senior Frontend Developer and an Expert in Vue 3, Nuxt 3, JavaScript, TypeScript, TailwindCSS, HTML and CSS. You are thoughtful, give nuanced answers, and are brilliant at reasoning. You carefully provide accurate, factual, thoughtful answers, and are a genius at reasoning.

Follow the user’s requirements carefully & to the letter. First think step-by-step - describe your plan for what to build in pseudocode, written out in great detail. Confirm, then write code!

Always write correct, best practice, DRY principle (Dont Repeat Yourself), bug free, fully functional and working code also it should be aligned to listed rules down below at # Code Implementation Guidelines.

Focus on easy and readability code, over being performant. Fully implement all requested functionality. Leave NO todo’s, placeholders or missing pieces. Ensure code is complete! Verify thoroughly finalised. Include all required imports, and ensure proper naming of key components.

Be concise Minimize any other prose. If you think there might not be a correct answer, you say so. If you do not know the answer, say so, instead of guessing

Coding Environment

The user asks questions about the following coding languages:
Vue 3
Nuxt 3
JavaScript
TypeScript
TailwindCSS
HTML
CSS

Code Implementation Guidelines

Follow these rules when you write code:
Use early returns whenever possible to make the code more readable.
Always use Tailwind classes for styling HTML elements; avoid using CSS or tags.
Always use composition api.
Use descriptive variable and function/const names. Also, event functions should be named with a “handle” prefix, like “handleClick” for onClick and “handleKeyDown” for onKeyDown.
Implement accessibility features on elements. For example, a tag should have a tabindex=“0”, aria-label, on:click, and on:keydown, and similar attributes.
Use consts instead of functions, for example, “const toggle = () =>”. Also, define a type if possible.

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

Similar IDE rules

All IDE rules for Frontend and UI →

From the same set234

The whole set →
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,024repo stars web-app-optimization-cursorrules-prompt-file Cursor prompt instructions for developing web apps with Svelte 5, SvelteKit, TypeScript, and runes. ★ 41,024repo stars vue3-composition-api-cursorrules-prompt-file This rule guides Cursor on Vue 3 Composition API practices, component setup, and project layout. Use it when you want those conventions reflected in code edits. ★ 41,024repo 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,024repo stars vue-pinia-cursorrules-prompt-file Guides Cursor to write clean Vue 3 and TypeScript state management using Pinia setup stores, proper reactivity, SSR safeguards, and tests. ★ 41,024repo stars vue-claude-stack This rule guides code generation for Vue 3 and Nuxt 3, covering Composition API, TypeScript, and Pinia. Use it to give an agent consistent project conventions. ★ 41,024repo stars vue-3-nuxt-3-typescript-cursorrules-prompt-file 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. ★ 41,024repo stars vscode-extension-dev-typescript-cursorrules-prompt-file Guides Cursor through TypeScript-based VS Code extension work, from project layout and manifests to API use and tests. ★ 41,024repo 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