vue3-fsd-development

Organize Vue 3 projects using Feature-Sliced Design layers.

4|Updated Nov 17, 2023
One-click install
npx skills add https://github.com/cpvasques/vue-template --skill vue3-fsd-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vue3-fsd-development
Source: https://github.com/cpvasques/vue-template/tree/main/.cursor/skills/vue3-fsd-development
Command: npx skills add https://github.com/cpvasques/vue-template --skill vue3-fsd-development

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guides teams to structure Vue 3 projects using Feature-Sliced Design (FSD) to improve modularity, scalability, and maintainability in front-end apps.

Core Features & Use Cases

  • Enforces strict layering: app → pages → features → widgets → shared to prevent circular dependencies.
  • Encourages auto-contained features with dedicated model, UI, and optional stores.
  • Promotes performance-first patterns: lazy loading, code splitting, and deterministic data flow.
  • Provides naming conventions, dependency rules, and reusable primitives to speed up development.
  • Example: structure authentication and user-management domains into separate features with clear boundaries.

Quick Start

Follow the guidelines to structure a Vue 3 feature using FSD, including proper folder layout, lazy loading, and shared dependencies prioritization.

Frequently Asked Questions about vue3-fsd-development

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

FAQPage Schema
How do I structure a Vue 3 project to prevent circular dependencies and improve maintainability?

Structure Vue 3 projects using Feature-Sliced Design to enforce strict layering across app, pages, features, widgets, and shared layers. This prevents circular dependencies and improves maintainability by keeping features auto-contained with clear boundaries.

What is the best way to organize large Vue 3 frontend applications for scalability?

The best way to organize large Vue 3 applications for scalability is Feature-Sliced Design. It separates domains into auto-contained features with dedicated models, UI, and optional stores, promoting modularity and clear dependency rules across layers.

How do I implement lazy loading and code splitting in a Vue 3 feature architecture?

Implement lazy loading and code splitting in Vue 3 feature architecture by applying Feature-Sliced Design conventions. This performance-first pattern uses deterministic data flow and strict layering to optimize loading across modular, auto-contained features.

Does Feature-Sliced Design work for managing authentication domains in Vue 3?

Feature-Sliced Design works for managing authentication domains in Vue 3 by structuring them into separate features with clear boundaries. This includes dedicated folders for UI, models, and stores to ensure strict separation of concerns.

When should I not use Feature-Sliced Design for my Vue 3 application?

Avoid Feature-Sliced Design for Vue 3 applications that do not require modular, auto-contained features or strict dependency rules. Its layering and naming conventions add structural overhead that may not suit simple, small-scale frontend projects.