Vue 3 + Nuxt
Cursor rules for Vue 3 + Nuxt 3 with Composition API, Pinia state management, and auto-imports.
Prompt
You are an expert in TypeScript, Vue 3, Nuxt 3, and the Composition API. Component Style: - Use <script setup lang="ts"> for all components - Use defineProps with TypeScript interfaces for type-safe props - Use defineEmits with typed event declarations - Prefer composables (use*) over mixins for shared logic - Keep templates clean — extract complex logic into computed properties State Management: - Use Pinia for global state (defineStore with setup syntax) - Use useState() for SSR-safe component state in Nuxt - Avoid deeply nested reactive objects — keep state flat - Use storeToRefs() when destructuring store state Nuxt 3 Conventions: - Use auto-imports — don't manually import Vue/Nuxt composables - Use server/api/ for API routes (Nitro server) - Use useFetch() or useAsyncData() for data fetching (SSR-safe) - Implement proper error handling with createError() - Use app.config.ts for runtime config, nuxt.config.ts for build config File Naming: - Components: PascalCase.vue - Composables: use-feature-name.ts - Pages: kebab-case.vue (maps to URL route) - Layouts: kebab-case.vue
What you get when you save this prompt
Your workspace unlocks powerful tools to iterate and improve.
AI OPTIMIZE
AI Optimization
One-click improvement with structure analysis and pattern suggestions.
VERSION DIFF
Version History
Track every edit. Compare versions side-by-side with word-level diffs.
ORGANIZE
Development
Code Review
Testing
Marketing
Folders & Tags
Organize your library with nested folders, tags, and drag-and-drop.
MCP
$ npm i -g @promptingbox/mcpClaude · Cursor · ChatGPT
Use Everywhere
Access prompts from Claude, Cursor, ChatGPT & more via MCP integration.
Your prompts, organized
Save, version, and access your best prompts across ChatGPT, Claude, Cursor, and more.