arch-nuxt

v2026.09.24

Vitesse-style Nuxt 4 starter with Vite, UnoCSS, Pinia, VueUse, PWA. Use when scaffolding or maintaining a Nuxt app with this stack.

GitHub
安装命令
npx skhub add hairyf/arch-nuxt
Markdown
SKILL.md

arch-nuxt is the Vitesse-style starter for Nuxt 4: SSR, file-based routing, auto-imports, and an opinionated stack (Vite, UnoCSS, Pinia, VueUse, ColorMode, VitePWA). It provides a minimal, production-ready setup: app/ structure, layouts, composables, Pinia store with HMR, server API, PWA config, and UnoCSS. Prefer Vite-powered Nuxt; do not consider webpack or other bundlers.

The skill is based on vitesse-nuxt (arch-nuxt source), generated at 2026-01-30.

Recommended practices:

  • Prefer Vite-powered Nuxt; skip webpack and other bundlers
  • Use Pinia for global/client state; use useState for SSR-shared state when appropriate
  • Keep PWA config in app/config/pwa.ts and spread it in nuxt.config.ts

Core References

TopicDescriptionReference
OverviewProject purpose, structure, stack, when to usecore-overview
Nuxt configdefineNuxtConfig, modules, app head, nitro, experimentalcore-nuxt-config
App structureapp/, app.vue, NuxtLayout, NuxtPagecore-app-structure
Scriptsbuild, dev, generate, preview, typecheck, dev:pwacore-scripts
Constantsapp/constants, appName, appDescriptioncore-constants
ESLint@antfu/eslint-config, Nuxt appendcore-eslint

Features

TopicDescriptionReference
LayoutsLayout system, definePageMeta layoutfeatures-layouts
ComposablesuseCount, useState, auto-importfeatures-composables
Pinia stateuseUserStore, defineStore, HMRfeatures-pinia-state
Server APIdefineEventHandler, server/apifeatures-server-api
PWAVitePWA config, manifest, workbox, dev PWAfeatures-pwa
UnoCSSuno.config.ts, shortcuts, presets, iconsfeatures-unocss
ColorModeuseColorMode, DarkToggle, theme-color metafeatures-color-mode
ComponentsAuto-import, Counter, Footer, NuxtLinkfeatures-components
Client-onlyClientOnly, Suspense, useOnline, fallbackfeatures-client-only
Data fetchinguseFetch, useTimeAgo, async component datafeatures-data-fetching

Best Practices

TopicDescriptionReference
RoutingFile-based routing, dynamic/catch-all routesbest-practices-routing
Page metadefinePageMeta, layout selectionbest-practices-page-meta
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

2026年9月24日

分类

未分类

许可证

MIT

源路径

skills/arch-nuxt

默认分支

main

最新提交

4f463c7

Tree SHA

73bcd03