Index of every page on this site: llms.txt
All skills
onmax avatar

/nuxt-modules

@2e74504 official
by Maxonmax/nuxt-skills722 stars
38
Run it yourself

Use when creating Nuxt modules: (1) Published npm modules (@nuxtjs/, nuxt-), (2) Local project modules (modules/ directory), (3) Runtime extensions (components, composables, plugins), (4) Server extensions (API routes, middleware), (5) Releasing/publishing modules to npm, (6) Setting up CI/CD workflows for modules. Provides defineNuxtModule patterns, Kit utilities, hooks, E2E testing, and release automation.

Use this Skill: https://skilld.dev/gh/onmax/nuxt-skills/nuxt-modules

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈106 tokens for metadata: the name and description. ≈648 when used: this file. ≈5.8k more on demand in 4 files.

Description uses 5.3% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈426 characters, or 5.3%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Nuxt Module Development

Guide for creating Nuxt modules that extend framework functionality.

Related skills: nuxt (basics), vue (runtime patterns)

Quick Start

npx nuxi init -t module my-module
cd my-module && npm install
npm run dev        # Start playground
npm run dev:build  # Build in watch mode
npm run test       # Run tests

Available Guidance

Loading Files

Consider loading these reference files based on your task:

DO NOT load all files at once. Load only what's relevant to your current task.

Module Types

Type Location Use Case
Published npm package @nuxtjs/, nuxt- distribution
Local modules/ dir Project-specific extensions
Inline nuxt.config.ts Simple one-off hooks

Project Structure

my-module/
├── src/
│   ├── module.ts           # Entry point
│   └── runtime/            # Injected into user's app
│       ├── components/
│       ├── composables/
│       ├── plugins/
│       └── server/
├── playground/             # Dev testing
└── test/fixtures/          # E2E tests

Resources

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts10d5 checks · Risk SAFE
  • Gen Agent Trust Hub10d

    This skill is a safe and high-quality guide for Nuxt module development. It correctly implements security best practices, such as recommending OIDC for CI/CD workflows and providing safe patterns for template generation.

  • Socket10d

    No alerts

  • Snyk10d

    Risk: LOW · No issues

  • Runlayer8mo

    4 files scanned · No issues

  • ZeroLeaks6mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 2e74504. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last week.

Activeupdated 2 weeks ago

README badge

README badge for onmax/nuxt-skills/nuxt-modules

Instructs Claude on building Nuxt modules using defineNuxtModule, Kit utilities, and hooks to extend Nuxt with components, composables, plugins, server routes, and middleware. Covers published npm modules, local project modules, E2E testing patterns, and release automation workflows.

Generated from the current SKILL.md.

Does this skill cover local modules in the modules/ directory?
Yes. The skill covers published npm modules, local project modules in the modules/ directory, and inline modules defined in nuxt.config.ts.
What testing approach does this skill teach?
The skill provides E2E testing patterns and best practices via the testing-and-publishing reference, though you load it only when needed for your task.
Does this include CI/CD setup?
Yes. The skill includes copy-paste CI/CD workflow templates in the ci-workflows reference for automating module testing and release.
Can I use this skill to publish a module to npm?
Yes. The testing-and-publishing reference covers releasing and publishing modules to npm registries with @nuxtjs/ or nuxt- naming conventions.
Does this cover runtime extensions like components and composables?
Yes. The skill covers injecting components, composables, plugins, and server extensions (API routes, middleware) into user applications via the runtime/ directory.

Generated from the current SKILL.md. These answers refresh after source changes.