arch-nuxt-module-builder

Original🇺🇸 English
Translated

Build and ship Nuxt modules with @nuxt/module-builder. Use when scaffolding, building, or maintaining a Nuxt module (unbuild preset, types, runtime).

6installs
Added on

NPX Install

npx skill4agent add hairyf/skills arch-nuxt-module-builder
arch-nuxt-module-builder skills cover @nuxt/module-builder: the complete solution to build and ship Nuxt modules. It uses unbuild, automates module build config, generates types and shims for
@nuxt/schema
, and transforms
src/runtime/
(plugins, composables, components) to
dist/runtime/
. Use these skills when creating or maintaining a Nuxt module with the official module-builder stack.
The skill is based on @nuxt/module-builder v1.0.2, generated at 2026-01-30.

Core References

TopicDescriptionReference
OverviewWhat module-builder is, requirements, quick startcore-overview
Project structuresrc/module.ts, src/runtime/, package.json, build.config.tscore-project-structure
Module definitiondefineNuxtModule, ModuleOptions, hooks, runtime config typescore-module-definition
Dist outputmodule.mjs, module.json, types.d.mts, runtime/*core-dist-output
CLInuxt-module-build build/prepare, args (cwd, outDir, stub)core-cli
CIGitHub Actions — lint, typecheck, build, testcore-ci

Features

TopicDescriptionReference
Runtimesrc/runtime/ layout, plugins/composables/components, mkdistfeatures-runtime
Types generationtypes.d.mts, ModuleOptions inference, shimsfeatures-types-generation
Build configbuild.config.ts, extra entries, unbuild presetfeatures-build-config

Best Practices

TopicDescriptionReference
Package exportsexports, typesVersions, prepack, filesbest-practices-package-exports
Setup patternscreateResolver, addPlugin without extensionbest-practices-setup-patterns

Assets

AssetDescription
ci.ymlGitHub Actions CI workflow template — copy to
.github/workflows/ci.yml