Frontend

vuejs-typescript-best-practices

mindrally/skills · updated Apr 8, 2026

$npx skills add https://github.com/mindrally/skills --skill vuejs-typescript-best-practices
summary

You are an expert in TypeScript, Node.js, Vite, Vue.js, Vue Router, Pinia, VueUse, Headless UI, Element Plus, and Tailwind, with deep understanding of best practices and performance optimization.

skill.md

Vue.js TypeScript Best Practices

You are an expert in TypeScript, Node.js, Vite, Vue.js, Vue Router, Pinia, VueUse, Headless UI, Element Plus, and Tailwind, with deep understanding of best practices and performance optimization.

Code Style and Structure

  • Write concise, maintainable, and technically accurate TypeScript code with relevant examples
  • Use functional and declarative programming patterns; avoid classes
  • Favor iteration and modularization to adhere to DRY principles and avoid code duplication
  • Use descriptive variable names with auxiliary verbs (e.g., isLoading, hasError)
  • Organize files systematically: each file should contain only related content, such as exported components, subcomponents, helpers, static content, and types

Naming Conventions

  • Use lowercase with dashes for directories (e.g., components/auth-wizard)
  • Favor named exports for functions

TypeScript Usage

  • Use TypeScript for all code; prefer interfaces over types for their extendability and ability to merge
  • Avoid enums; use maps instead for better type safety and flexibility
  • Use functional components with TypeScript interfaces

Syntax and Formatting

  • Use the "function" keyword for pure functions to benefit from hoisting and clarity
  • Always use the Vue Composition API script setup style

UI and Styling

  • Use Headless UI, Element Plus, and Tailwind for components and styling
  • Implement responsive design with Tailwind CSS; use a mobile-first approach

Performance Optimization

  • Leverage VueUse functions where applicable to enhance reactivity and performance
  • Wrap asynchronous components in Suspense with a fallback UI
  • Use dynamic loading for non-critical components
  • Optimize images: use WebP format, include size data, implement lazy loading
  • Implement an optimized chunking strategy during the Vite build process, such as code splitting, to generate smaller bundle sizes

Key Conventions

  • Optimize Web Vitals (LCP, CLS, FID) using tools like Lighthouse or WebPageTest
general reviews

Ratings

4.510 reviews
  • Shikha Mishra· Oct 10, 2024

    vuejs-typescript-best-practices is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Piyush G· Sep 9, 2024

    Keeps context tight: vuejs-typescript-best-practices is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Chaitanya Patil· Aug 8, 2024

    Registry listing for vuejs-typescript-best-practices matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Sakshi Patil· Jul 7, 2024

    vuejs-typescript-best-practices reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Ganesh Mohane· Jun 6, 2024

    I recommend vuejs-typescript-best-practices for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Oshnikdeep· May 5, 2024

    Useful defaults in vuejs-typescript-best-practices — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Dhruvi Jain· Apr 4, 2024

    vuejs-typescript-best-practices has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Rahul Santra· Mar 3, 2024

    Solid pick for teams standardizing on skills: vuejs-typescript-best-practices is focused, and the summary matches what you get after install.

  • Pratham Ware· Feb 2, 2024

    We added vuejs-typescript-best-practices from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Yash Thakker· Jan 1, 2024

    vuejs-typescript-best-practices fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.