Skip to content
Development
Command

/setup

Initialize Nuxt UI v4 in an existing Nuxt project with proper configuration

From plugin
secondsky-claude-skills
20466 skills46 agents66 commands
Install
$ npx -y skills add secondsky/claude-skills --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/setup

Context preview

What this command does when you run it.

Initialize Nuxt UI v4 in an existing Nuxt project with proper configuration

Command definition

setup.md
name: nuxt-ui-v4:setup
description: Initialize Nuxt UI v4 in an existing Nuxt project with proper configuration
allowed-tools:
  - Read
  - Write
  - Edit
  - Bash
argument-hint: "[--ai] [--dashboard] [--editor]"

Nuxt UI v4 Setup Command

Initialize Nuxt UI v4 in the current Nuxt project with optimal configuration.

Arguments

  • `--ai`: Include AI SDK v5 and Chat components setup
  • `--dashboard`: Include Dashboard components configuration
  • `--editor`: Include TipTap Editor setup

Instructions

1. **Check Prerequisites**

  • Verify this is a Nuxt 4 project (check `nuxt.config.ts`)
  • Check current @nuxt/ui version if already installed

2. **Install Dependencies**

   bun add @nuxt/ui tailwindcss

If `--ai` flag:

   bun add ai @ai-sdk/vue @ai-sdk/gateway

If `--editor` flag:

   bun add @tiptap/vue-3 @tiptap/starter-kit

3. **Configure nuxt.config.ts** Add @nuxt/ui to modules and CSS:

   export default defineNuxtConfig({
     modules: ['@nuxt/ui'],
     css: ['~/assets/css/main.css']
   })

4. **Create CSS file** Create `assets/css/main.css`:

   @import "tailwindcss";
   @import "@nuxt/ui";

5. **Setup app.vue** Wrap with UApp:

   <template>
     <UApp>
       <NuxtPage />
     </UApp>
   </template>

6. **Create app.config.ts** Setup semantic colors:

   export default defineAppConfig({
     ui: {
       colors: {
         primary: 'green',
         neutral: 'slate'
       }
     }
   })

7. **If --dashboard flag**: Create dashboard layout

   layouts/dashboard.vue

8. **If --ai flag**: Create chat API endpoint

   server/api/chat.post.ts

9. **Generate Types**

   bunx nuxt prepare

10. **Verify Installation**

    bun run dev

Output

Report what was configured:

  • Packages installed
  • Files created/modified
  • Next steps for the user

Tips

  • Use `bun` as the preferred package manager
  • Check for existing Tailwind config and migrate if needed
  • Warn if using incompatible Tailwind v3
  • Both `@nuxt/ui` and `tailwindcss` must be installed explicitly
Read more
Ships withsecondsky-claude-skills

142 production-ready skills for Claude Code CLI ๐Ÿ”Œ Platform / Harness Support These plugins ship as Claude Code marketplace plugins (.claude-plugin/ manifests) and Codex CLI plugins (.codex-plugin/ manifests).

Get the whole plugin, auto-invoked