fec-nuxt-project-standard

Standardize Nuxt 3 project structure and Vue 3 conventions.

21|3|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/bovinphang/frontend-craft --skill fec-nuxt-project-standard
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fec-nuxt-project-standard
Source: https://github.com/bovinphang/frontend-craft/tree/main/localized/zh-CN/skills/fec-nuxt-project-standard
Command: npx skills add https://github.com/bovinphang/frontend-craft --skill fec-nuxt-project-standard

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

用于在 Nuxt 3 + Vue 3 + TypeScript 的仓库中统一渲染模式、数据获取、路由中间件、插件与模块的工程实践,确保约定性和类型安全。

Core Features & Use Cases

  • 统一 SSR/SSG/SPA 的工程实践与约定,降低重复决策成本。
  • 数据获取与路由中间件、插件/模块的规范化,包括 useFetch/useAsyncData 的一致用法。
  • 适用于新建项目、迁移和代码评审场景,确保按 Nuxt/Vue 3 约定落地。

Quick Start

Set up or audit a Nuxt 3 project following the standard structure and Vue 3 conventions to ensure correct SSR/SSG/SPA behavior and data fetching.

Frequently Asked Questions about fec-nuxt-project-standard

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

FAQPage Schema
How do I standardize a Nuxt 3 project structure to prevent configuration drift?

To standardize a Nuxt 3 project structure, apply Vue 3 conventions across SSR, SSG, and SPA setups. This enforces consistent routing middleware, plugins, and server routes, reducing configuration drift during new project setup or migration.

What is the correct way to handle data fetching in Nuxt 3 SSR applications?

The correct way to handle data fetching in Nuxt 3 SSR applications is using useFetch and useAsyncData. These composables ensure consistent data fetching patterns, maintain type safety, and align with standard Nuxt conventions.

How do I avoid window and document undefined errors during Nuxt 3 server side rendering?

To avoid window and document undefined errors during Nuxt 3 server side rendering, enforce constraints that prohibit accessing these browser objects on the server. Standardizing project guidelines ensures platform-specific code executes only on the client.

Can I use this standard for reviewing existing Vue 3 and TypeScript codebases?

Yes, you can use this standard for reviewing existing Vue 3 and TypeScript codebases. It audits project structures, verifies data fetching patterns, and aligns route middleware and plugins with Nuxt conventions during code reviews.

Does this Nuxt 3 convention apply to SSG and SPA setups as well as SSR?

Yes, these Nuxt 3 conventions apply to SSG and SPA setups as well as SSR. The standardization process unifies engineering practices across all rendering modes, ensuring consistent routing and data fetching regardless of the deployment target.

Why should I align route middleware and plugins with Nuxt conventions?

Aligning route middleware and plugins with Nuxt conventions reduces repetitive decision costs and ensures type safety. Standardizing these modules prevents configuration drift and maintains consistent application behavior across different rendering environments.