fec-nuxt-project-standard
Installation
SKILL.md
Nuxt 3 Project Specifications
For repositories using Nuxt 3 + Vue 3 + TypeScript.
Purpose
Standardize the engineering practices of SSR/SSG rendering mode, combined API, automatic import, data acquisition, routing middleware and module plug-ins in the Nuxt 3 project to ensure conventional development and type safety.
Procedure
- First identify whether the target belongs to Nuxt pages/layouts, rendering mode, data acquisition, route middleware, plugin/module or server route.
- Clarify SSR / SSG / SPA selection to avoid server-side executable code relying on
windowordocument. - For data acquisition, Nuxt’s
useFetch/useAsyncDatais used first, and the hydration consistency is checked. - Route authentication, redirection and permission issues are aligned with the route protection workflow.
- Common Vue component architecture issues are offloaded to the Vue project workflow.