Nuxt 3 Module and Plugin Template

Generate Nuxt 3 modules, plugins, and composables with TypeScript

6/11/2026
Prompt
Create Nuxt 3 module/plugin for:

Name: {{NAME}}
Type: {{TYPE}} (module/plugin/composable)
Features: {{FEATURES}}

Generate complete Nuxt structure:

1. **Module Definition:**
   - defineNuxtModule
   - Module options
   - Setup function
   - Auto-imports
   - Components registration

2. **Plugin:**
   - defineNuxtPlugin
   - Provide/inject pattern
   - Client/server only
   - Parallel execution

3. **Composables:**
   - useState usage
   - useFetch/useAsyncData
   - Custom composables
   - Shared state

4. **Server:**
   - API routes
   - Server middleware
   - Server utilities
   - Event handlers

5. **Runtime Config:**
   - Public runtime config
   - Private runtime config
   - Environment variables

6. **Type Augmentation:**
   - Module types
   - Plugin types
   - Composable types
   - App config types

7. **Auto-imports:**
   - Composables auto-import
   - Components auto-import
   - Utils auto-import

8. **Testing:**
   - @nuxt/test-utils
   - Component testing
   - Server testing
   - E2E with Playwright

9. **Documentation:**
   - Nuxt module docs
   - Playground setup
   - Examples

Include module publishing setup.

Or press ⌘C to copy

Variables (3)

Replace these placeholders with your own content before using the prompt.

[{NAME][{TYPE][{FEATURES]

Ready to use?

Copy and paste into your favorite AI tool

Test this prompt live

Try it in our AI Playground with Claude

Open Playground

Explore more Coding prompts

Browse Coding

Command Palette

Search for a command to run...