vue-best-practices

Standardize Vue 3 components with Composition API, script setup, and TypeScript.

Updated Mar 27, 2024
One-click install
npx skills add https://github.com/boomNDS/new_portfolio --skill vue-best-practices-boomnds
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vue-best-practices
Source: https://github.com/boomNDS/new_portfolio/tree/main/.agents/skills/vue-best-practices
Command: npx skills add https://github.com/boomNDS/new_portfolio --skill vue-best-practices-boomnds

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Guides teams to adopt a consistent Vue 3 development model, focusing on the Composition API, script setup, and TypeScript to reduce drift and improve maintainability.

Core Features & Use Cases

  • Standardize usage of the Composition API with script setup and TypeScript across components and pages.
  • Provide guidance for SSR, Vue Router, Pinia, and Vite integration to ensure predictable behavior and performance.
  • Offer decision patterns for component design, naming, and architecture to reduce surprises in larger projects.

Quick Start

Start by auditing your Vue codebase for script setup adoption, align with the references in the repository, and apply the recommended patterns to newly created components.

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 structuring Vue 3 components with the Composition API?

Vue 3 best practices standardize component design using the Composition API and script setup. This enforces consistent naming, reactivity, and architecture conventions to reduce drift and improve maintainability in larger projects.

How do I set up Vue 3 with TypeScript, Pinia, and Vite for scalable applications?

Setting up Vue 3 with TypeScript, Pinia, and Vite requires standardized patterns for routing, state management, and build tools. Applying these conventions ensures predictable behavior and performance across your application.

Does this Vue best practices guide apply to SSR and Vue Router implementations?

Yes, these Vue best practices apply to Vue 3 SSR and Vue Router. The guide provides specific decision patterns for server-side rendering and routing integration to ensure consistent behavior across your components.

What is the best way to standardize script setup adoption across an existing Vue codebase?

The best way to standardize script setup is auditing your existing Vue codebase for current adoption. Align components with curated references and apply recommended patterns to newly created components for consistency.

When should I use the Composition API instead of the Options API in Vue 3?

Use the Composition API in Vue 3 to consolidate best practices for scalable applications. It provides a structured approach with clear conventions for component design and reactivity, which is essential for maintaining larger projects.