Skip to main content
skill CX Codex

nuxtjs-vue-typescript — Claude Code skill: setup and guidelines

Coding guidelines for Nuxt 3 and Vue 3 projects using TypeScript and Tailwind CSS. Guides component typing, composables, and Nitro server endpoints.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add Mindrally/skills --skill nuxtjs-vue-typescript -a claude-code
Open on GitHub

What nuxtjs-vue-typescript does

This skill guides AI agents toward standard Nuxt 3 and Vue 3 patterns, enforcing <script setup> and strictly avoiding the Options API. It covers project layout across pages/, composables/, and Nitro server endpoints in server/api/, relying on useRuntimeConfig() for environment variables and useFetch for data loading.

For TypeScript, the rules deprecate enums in favor of const objects. Aliases created via type take priority over interface, reserving interfaces specifically for contracts intended to be extended. UI elements use Shadcn Vue and Radix Vue styled with mobile-first Tailwind utilities.

Heavy or rarely used UI components require dynamic import() calls to prevent bundle bloat tracked via nuxi analyze.

What it helps with

  • Enforce Composition API patterns with script setup syntax
  • Structure Nitro API routes using useRuntimeConfig
  • Extract component logic into reusable camelCase composables
  • Standardize typing by replacing enums with const objects

Example prompts for the agent

  • Create a Nitro endpoint in server/api/ that reads runtime configuration
  • Refactor this component state into a dedicated composable named useAuthState.ts
  • Build an accessible modal component using Radix Vue and Tailwind utility classes

How to install nuxtjs-vue-typescript

1Skills CLI (Vercel)

npx skills add Mindrally/skills --skill nuxtjs-vue-typescript -a claude-code

2Manually: put the files in place

~/.claude/skills/nuxtjs-vue-typescript/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/nuxtjs-vue-typescript/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about nuxtjs-vue-typescript

How to install nuxtjs-vue-typescript in Claude Code?

Run npx skills add Mindrally/skills --skill nuxtjs-vue-typescript -a claude-code. The skill file will be placed in ~/.claude/skills/nuxtjs-vue-typescript/SKILL.md.

What does the nuxtjs-vue-typescript skill do?

It directs the AI to follow official Nuxt 3 and Vue 3 conventions, including <script setup>, Pinia store patterns, and VueUse composables.

How does this skill handle TypeScript declarations?

It favors type definitions over interface, reserving interfaces for extendable contracts. It also replaces TypeScript enums with const objects.

Source text

SKILL.md · Apache-2.0
---
name: nuxtjs-vue-typescript
description: "Best practices for building Nuxt 3 and Vue 3 applications with TypeScript, the Composition API, and Tailwind CSS. Use when structuring Nuxt/Vue projects, writing composables, typing components and props, wiring up server routes and plugins, or optimizing Nuxt builds and Web Vitals."
metadata:
  maintainer: Mindrally
  source: https://github.com/Mindrally/skills
---

# NuxtJS Vue TypeScript Development

Guidelines for building Nuxt 3 and Vue 3 applications with TypeScript, Shadcn Vue, Radix Vue, VueUse, and Tailwind.

## Code Style and Structure

- Write concise, technical TypeScript with accurate examples
- Employ composition API with declarative patterns; avoid options API
- Favor iteration and modularity over code duplication
- Use descriptive variable names with auxiliary verbs (isLoading, hasError)
- Organize files: exported component, composables, helpers, static content, types
- Keep component boundaries clear — a component should own one piece of UI/behavior; extract composables when logic grows beyond simple template glue

## Naming Conventions

- Directories: lowercase with dashes (components/auth-wizard)
- Components: PascalCase (AuthWizard.vue)
- Composables: camelCase (useAuthState.ts)

## TypeScript Usage

- Utilize TypeScript throughout; prefer types over interfaces, but use interfaces where you expect a shape to be extended or implemented (e.g. component prop contracts)
- Keep shared types close to the feature that owns them; only promote a type to a shared `types/` directory once a second feature needs it
- Avoid enums; use const objects instead
- Leverage Vue 3 with TypeScript, defineComponent, and PropType

## Syntax and Formatting

- Use arrow functions for methods and computed properties
- Minimize curly braces in conditionals
- Employ template syntax for declarative rendering

## UI and Styling

- Implement Shadcn Vue, Radix Vue, and Tailwind
- Design responsively with mobile-first Tailwind approach
- Keep Tailwind usage accessible and consistent with the project's design system rather than one-off utility soup

## Performance

- Leverage Nuxt's built-in optimizations
- Use Suspense for async components
- Implement lazy loading for routes and components
- Optimize images: WebP format, size data, lazy loading
- Review bundle size periodically (`nuxi analyze`) and use dynamic `import()` for heavy, rarely-used components

## Key Conventions

- VueUse for common composables — reach for them where they simplify reactivity, but avoid ones that hide state transitions you need to reason about explicitly
- Pinia for state management
- Optimize Web Vitals (LCP, CLS, FID)
- Use Nuxt's auto-imports feature

## Nuxt-Specific Guidelines

- Follow Nuxt 3 directory structure (pages/, components/, composables/, layouts/, plugins/, server/)
- Leverage auto-imports, file-based routing, server routes, plugins
- Use layouts (`layouts/default.vue`, `<NuxtLayout>`) to share page chrome instead of duplicating it per page
- Use `server/api/` routes (Nitro) for server-side endpoints, and `useRuntimeConfig()` for environment-specific config instead of hardcoding values
- Use useFetch and useAsyncData for data fetching
- Implement SEO with useHead and useSeoMeta

## Vue 3 Composition API Best Practices

- Use `<script setup>` syntax
- Leverage ref, reactive, and computed
- Use provide/inject for dependency injection
- Create custom composables for reusable logic

© Mindrally · Apache-2.0 · Mindrally/skills

Similar skills

Everything for Frontend and UI →

From the same set214

nextjs-react-redux-typescript-cursor-rules Development guidelines for Next.js, React, Redux Toolkit, and TypeScript. Enforces Server Component defaults, strict typing, and specific code style standards. CX Codex +1 842installs pytorch Guides AI coding agents through building PyTorch architectures, fine-tuning Hugging Face transformers, running diffusion models, and optimizing GPU memory. CX Codex +1 839installs java-quarkus-development Development guidelines for building Quarkus microservices. It directs the coding agent to handle reactive endpoints, Panache data access, and GraalVM native builds. CX Codex +1 836installs elixir A skill that tells your coding agent how to write Elixir and Phoenix: functional patterns, Ecto, LiveView, OTP. Useful when the project actually runs on BEAM. CX Codex +1 836installs spring-boot A skill that gives your agent Spring Boot conventions: REST controllers, JUnit tests, security, build and deploy. Useful when the project is Java. CX Codex +1 832installs responsive-design A skill that hands your coding agent a set of responsive design rules: mobile-first CSS, flexible layouts, media queries, adaptive images and type. CX Codex +1 830installs ghost Gives your agent working knowledge of Ghost CMS theme development: Handlebars templates, partials, Tailwind CSS and Alpine.js wiring, image and SEO work. CX Codex +1 828installs woocommerce Development guidelines for WordPress and WooCommerce. Helps assistants write safe PHP code with hooks, custom product types, and REST endpoints. CX Codex +1 826installs

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