vue-typescript — Claude Code skill: what it does, how to install
Strict standards for Vue 3 and TypeScript development with Vite, Pinia, and Tailwind CSS. Enforces Composition API and frontend performance rules.
npx skills add Mindrally/skills --skill vue-typescript -a claude-codeWhat vue-typescript does
This skill guides coding agents to produce declarative TypeScript for Vue 3. It enforces the Composition API <script setup> pattern and bans classes entirely. Pure functions must use the function keyword for hoisting benefits, while variables take descriptive prefixes like isLoading or hasError.
The instructions cover modern tooling including Pinia, Vue Router, VueUse, Headless UI, and Element Plus. Layouts follow a mobile-first Tailwind CSS approach. Directory names stick to lowercase with dashes, and functions rely on named exports rather than default exports.
Codebases relying on Options API or TypeScript enums will clash directly with these rules. The skill explicitly bans enums in favor of maps and mandates Suspense fallbacks for all asynchronous components, paired with Vite chunk splitting and WebP image optimizations.
What it helps with
- scaffold Vue 3 components using Composition API script setup
- replace TypeScript enums with type-safe maps and interfaces
- configure async components with Suspense and fallback states
- structure Pinia stores with standardized state naming conventions
Example prompts for the agent
- Create a login form component using Vue 3, Tailwind CSS, and Headless UI
- Write a Pinia store for user settings with isLoading and hasError states
- Set up an async dashboard widget wrapped in Suspense with dynamic loading
How to install vue-typescript
1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill vue-typescript -a claude-code2Manually: put the files in place
~/.claude/skills/vue-typescript/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/vue-typescript/
1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill vue-typescript -a codex2Manually: put the files in place
.agents/skills/vue-typescript/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill vue-typescript -a cursor2Manually: put the files in place
.cursor/skills/vue-typescript/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install Mindrally/skills vue-typescript2Manually: put the files in place
.github/skills/vue-typescript/SKILL.md1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill vue-typescript -a gemini-cli2Platform CLI
gemini skills install https://github.com/Mindrally/skills --path vue-typescriptManually: put the files in place
.devin/skills/vue-typescript/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add Mindrally/skills --skill vue-typescript -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about vue-typescript
How to install vue-typescript in Claude Code?
Run npx skills add Mindrally/skills --skill vue-typescript -a claude-code. The file will be placed at ~/.claude/skills/vue-typescript/SKILL.md.
What coding style does vue-typescript enforce?
It mandates functional, declarative TypeScript with Vue Composition API <script setup>. Classes are prohibited, and pure functions must use the function keyword.
Why does the skill avoid TypeScript enums?
The instructions avoid enums and use maps instead for improved type safety. It also prefers interface over type because interfaces are extensible.
Source text
SKILL.md · Apache-2.0
--- name: vue-typescript description: Expert in Vue.js TypeScript development with Vite, Pinia, and modern UI frameworks metadata: maintainer: Mindrally source: https://github.com/Mindrally/skills --- # 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.
© Mindrally · Apache-2.0 · Mindrally/skills