# Vue Typescript

> Expert in Vue.js TypeScript development with Vite, Pinia, and modern UI frameworks Use when this capability is needed.

- Skill: `tomevault-io/vue-typescript-2` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/vue-typescript-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/vue-typescript-2/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/vue-typescript-2

---


# Vue.js TypeScript

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

## Code Style & Structure

- Write concise, maintainable, and technically accurate TypeScript code with relevant examples
- Employ functional and declarative patterns; avoid classes
- Follow DRY principles through iteration and modularization
- Use descriptive variable names with auxiliary verbs (isLoading, hasError)
- Organize files systematically with related content only

## Naming Conventions

- Directories use lowercase with dashes (e.g., components/auth-wizard)
- Favor named exports for functions

## TypeScript Standards

- Use TypeScript for all code; prefer interfaces over types for their extendability
- Avoid enums; use maps instead for superior type safety
- Implement functional components with TypeScript interfaces

## Syntax & Formatting

- Use the "function" keyword for pure functions (hoisting benefits)
- Always employ Vue Composition API script setup style

## UI & Styling

- Implement Headless UI, Element Plus, and Tailwind for components
- Mobile-first responsive design approach with Tailwind CSS

## Performance Optimization

- Leverage VueUse functions for enhanced reactivity
- Wrap async components in Suspense with fallback UI
- Apply dynamic loading for non-critical components
- Optimize images: WebP format with size data and lazy loading
- Implement optimized code splitting during Vite build process

## Web Vitals

Optimize for LCP, CLS, and FID using Lighthouse or WebPageTest tools.

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/mindrally) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

