vue-best-practices

Guide Vue 3 component creation, review, and refactoring with Composition API and Tailwind.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Dedalus-ERP-PAS/foundation-skills --skill vue-best-practices-dedalus-erp-pas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vue-best-practices
Source: https://github.com/Dedalus-ERP-PAS/foundation-skills/tree/main/skills/vue-best-practices
Command: npx skills add https://github.com/Dedalus-ERP-PAS/foundation-skills --skill vue-best-practices-dedalus-erp-pas

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a centralized, codified guide for building, reviewing, and maintaining idiomatic Vue 3 code, ensuring consistency across projects and teams.

Core Features & Use Cases

  • Composition API best practices: recommended setup, reactive state management, and lifecycle patterns.
  • Component design and organization: single-responsibility components, naming conventions, and feature-based structure.
  • Reactivity patterns and TS typing: use of refs, toRefs, computed, and typed props/emits for robust code.
  • Tailwind CSS integration: guidelines for utility-first styling and design tokens integration.
  • PrimeVue integration: recommended patterns for using PrimeVue components and PassThrough API.

Quick Start

Review this guide when starting a Vue 3 project. Start new components with <script setup>, type props and emits, structure components around features, integrate Tailwind with design tokens, and adopt CVA-style patterns for variants.

Frequently Asked Questions about vue-best-practices

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

FAQPage Schema
What are the best practices for Vue 3 component design and Composition API setup?

Vue 3 component design best practices involve using <script setup>, typed props and emits, and single-responsibility components. This ensures scalable apps by enforcing consistent file structure, composable patterns, and robust reactivity management.

How do I integrate Tailwind CSS design tokens with Vue 3 components?

Integrate Tailwind CSS design tokens in Vue 3 by applying utility-first styling and adopting CVA-based variant management. This approach maintains consistent styling across components while enforcing design token usage throughout your application.

Does this Vue 3 coding guide support PrimeVue components and PassThrough API?

Yes, the Vue 3 coding guide supports PrimeVue components and the PassThrough API. It provides recommended patterns for integrating PrimeVue into your project, ensuring idiomatic usage alongside Composition API and Tailwind CSS.

How do I structure Vue 3 composables and manage reactivity with TypeScript?

Structure Vue 3 composables by extracting reactive state into reusable functions using refs, toRefs, and computed properties. Manage reactivity robustly by applying TypeScript typing to props and emits for predictable component behavior.

What is the recommended file structure for scalable Vue 3 and Nuxt projects?

The recommended file structure for scalable Vue 3 and Nuxt projects is a feature-based organization. This approach groups components, composables, and related logic by feature rather than file type, ensuring maintainability as the application grows.