nuxt-modules

Automate Nuxt module development from scaffolding to publishing with defineNuxtModule patterns.

Updated Feb 7, 2026
One-click install
npx skills add https://github.com/jd-solanki/lekhan-internal-sync --skill nuxt-modules-jd-solanki
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nuxt-modules
Source: https://github.com/jd-solanki/lekhan-internal-sync/tree/main/.agents/skills/nuxt-modules
Command: npx skills add https://github.com/jd-solanki/lekhan-internal-sync --skill nuxt-modules-jd-solanki

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill guides developers in creating, testing, and releasing Nuxt modules across Published npm packages, local modules, runtime extensions, server routes, and CI/CD workflows. It provides patterns, utilities, and examples to accelerate module development from concept to deployment.

Core Features & Use Cases

  • Scaffold and publish Published modules (@nuxtjs/, nuxt-*) and local modules in modules/ directories.
  • Use defineNuxtModule patterns, Kit utilities, and hooks to structure modular functionality.
  • Leverage E2E testing templates and release automation to streamline publishing and maintenance.

Quick Start

  • Run: npx nuxi init -t module my-module
  • cd: cd my-module && npm install
  • Start playground / dev: npm run dev
  • Run tests: npm run test

Frequently Asked Questions about nuxt-modules

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold and publish a Nuxt module from scratch?

To scaffold and publish a Nuxt module, initialize a project using the module template, install dependencies, and automate releases using CI/CD workflows. This process enforces defineNuxtModule patterns and Nuxt Kit utilities for reliable module development.

What is the best way to structure a local Nuxt module in my project?

The best way to structure a local Nuxt module is by placing it in the modules/ directory and using defineNuxtModule patterns. This approach leverages Nuxt Kit utilities and hooks to modularize functionality within your existing project.

How do E2E testing templates work for Nuxt modules?

E2E testing templates validate Nuxt modules by running automated tests against your module's runtime extensions and server routes. You execute these tests via standard npm scripts to ensure module reliability before publishing.

Can I use Nuxt Kit utilities and hooks for runtime extensions?

Yes, you can use Nuxt Kit utilities and hooks to build runtime extensions. They provide the necessary APIs to intercept and modify server routes and module behavior dynamically during the Nuxt build process.

Does automating Nuxt module releases require CI/CD workflows?

Automating Nuxt module releases relies on CI/CD workflows to streamline publishing and maintenance. These workflows handle version bumping and npm deployments, ensuring consistent release automation for your modules.

Why should I use defineNuxtModule patterns in my Nuxt module development?

You should use defineNuxtModule patterns because they provide a standardized structure for Nuxt module development. This ensures proper integration with the Nuxt ecosystem and simplifies the configuration of hooks and Kit utilities.