fec-vue3-project-standard

Standardize Vue 3 + TypeScript project structure and conventions across teams.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

为 Vue 3 + TypeScript 项目提供统一的工程结构、组件边界、Composables 组织、路由组合、Pinia 归属、API/错误/样式默认约定,以及仓库级 Vue 规范,降低团队间实现差异和重复工作。

Core Features & Use Cases

  • 项目结构模板:提供规范的 src 目录分层和命名约定,确保新仓库快速对齐。
  • 组件与 composables 边界:明确容器、业务组件、通用组件、composables、stores、services 的职责与暴露接口。
  • 路由与状态管理默认约定:统一路由命名、懒加载策略、Pinia 使用规范与 API/错误处理的统一风格。
  • 参考与产出清单:输出检查清单与参考文档,帮助团队快速落地并持续保持一致性。

Quick Start

在新仓库中应用本规范,按指引搭建 Vue 3 + TypeScript 项目骨架并强制执行默认约定。

Frequently Asked Questions about fec-vue3-project-standard

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

FAQPage Schema
What is the best way to standardize a Vue 3 and TypeScript project structure?

Standardizing a Vue 3 and TypeScript project structure requires unified directory layering, clear component boundaries, and consistent Pinia state conventions. This approach lowers implementation differences across teams and ensures new repositories align quickly with predefined architecture rules.

How do I organize composables and components in a Vue 3 application?

Organize Vue 3 composables and components by defining strict boundaries between containers, business components, and generic components. Composables, stores, and services must have clear responsibilities and exposed interfaces to maintain separation of concerns and architectural consistency across the repository.

What conventions should I use for routing and Pinia state management in Vue 3?

For routing and Pinia state management in Vue 3, you should adopt unified routing naming conventions, lazy loading strategies, and standardized API error handling styles. These default conventions ensure consistent state organization and predictable module behavior across the entire application.

Can I apply these Vue 3 project standards to an existing repository?

Yes, you can apply these Vue 3 project standards to an existing repository. The guidelines are designed for both new and existing codebases, helping teams refactor project layouts, enforce composables organization, and align API and style conventions without disrupting ongoing development.

Do I need TypeScript to use this Vue 3 project architecture standard?

Yes, TypeScript is required to use this Vue 3 project architecture standard. The conventions are specifically built for Vue 3 paired with TypeScript, enforcing typed component interfaces, strongly typed Pinia stores, and strict API error handling to maximize development safety.