fec-vue3-project-standard
Installation
SKILL.md
Vue 3 project specifications
For repositories using Vue 3 + TypeScript.
Purpose
Provides project structure, component boundaries, Composables, and default implementation conventions for Vue 3 + TypeScript projects to ensure conventional development and type safety.
Procedure
- Identify the existing Vue conventions in the warehouse: directory, routing, Pinia, request layer, style system, component library and test framework.
- Demarcate the boundaries between pages, business components, common components, composables, stores, services and utils.
- Prioritize the existing automatic import/module export conventions of
<script setup lang="ts">, composite API and warehouse. - Complete state ownership, API layer, error handling, style isolation and special skill offloading when outputting.
- Pages and modules must have recoverable error UI; global
errorHandler,onErrorCaptured, request error mapping and routing error page have clear division of labor. - Tailwind token/variant or responsive layout requirements should be diverted to corresponding special skills to avoid stuffing style system rules into Vue component specifications.
- When the state ownership is complex, first make a state list; when the boundaries of DTO, public props, generic composable or
tsconfigare complex, first use the TypeScript project specification process to converge cross-framework type contracts. - When designing reusable composables, clarify whether the input supports plain value, ref, computed or getter; when testing Vue components, cover the common boundaries of Pinia, Router, Teleport, Suspense and async setup.