Toolverse
All skills

vue-best-practices

by antfu

MUST be used for Vue.js tasks. Strongly recommends Composition API with `u003cscript setupu003e` and TypeScript as the standard approach. Covers Vue 3, SSR, Volar, vue-tsc. Load for any Vue, .vue files, Vue Router, Pinia, or Vite with Vue work. ALWAYS use Composition API unless

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
antfu
Category
Frontend
Views
33

About this skill

MUST be used for Vue.js tasks. Strongly recommends Composition API with u003cscript setupu003e and TypeScript as the standard approach. Covers Vue 3, SSR, Volar, vue-tsc. Load for any Vue, .vue files, Vue Router, Pinia, or Vite with Vue work. ALWAYS use Composition API unless the project explicitly requires Options API.

How to use

  1. Załaduj umiejętność vue-best-practices w swoim środowisku Claude/Copilot/Codex przed pracą nad projektem Vue.js. Aktywuj ją dla dowolnych zadań związanych z plikami .vue, konfiguracją Vue Router, Pinia lub Vite z Vue.

  2. Kiedy pracujesz nad komponentem lub logiką Vue, umiejętność automatycznie sugeruje użycie Composition API z <script setup> i TypeScript jako standardowego podejścia. Jeśli projekt jawnie wymaga Options API, poinformuj umiejętność – w przeciwnym razie będzie kierować Cię ku Composition API.

  3. Zwróć uwagę na ostrzeżenia dotyczące reaktywności: dostęp do wartości ref() bez .value w skryptach, destrukturyzacja reactive() tracąca reaktywność, mieszanie ref() i reactive() bez jasnego powodu, oraz używanie ref() wewnątrz tablic bez rozpakowywania.

  4. Gdy pracujesz z dużymi obiektami lub bibliotekami zewnętrznymi, umiejętność podpowie użycie shallowRef() zamiast zwykłego ref() dla poprawy wydajności, oraz markRaw() dla instancji bibliotek, które nie powinny być reaktywne.

  5. Dla logiki pochodnej stanu preferuj computed() zamiast watchEffect() – umiejętność będzie przypominać o tym rozróżnieniu. Pamiętaj o batching zmian reaktywnych w tym samym ticku i prawidłowym użyciu watchers.

  6. Korzystaj z umiejętności jako przewodnika przez integrację zewnętrznych bibliotek zarządzania stanem, obsługę SSR, oraz konfigurację narzędzi takich jak Volar i vue-tsc dla lepszego wsparcia typu w projekcie.

Related skills

shadcn-ui-setup

by maneeshanif

Install and configure Shadcn/ui component library with Radix UI primitives, Aceternity UI effects, set up components, and manage the component registry. Use when adding Shadcn/ui to a Next.js project or installing specific UI components for Phase 2.

Frontend
23167

tailwind-design-system

by wshobson

Build scalable design systems with Tailwind CSS, design tokens, component libraries, and responsive patterns. Use when creating component libraries, implementing design systems, or standardizing UI patterns.

Frontend
2676

interactive-dashboard-builder

by anthropics

Build self-contained interactive HTML dashboards with Chart.js, dropdown filters, and professional styling. Use when creating dashboards, building interactive reports, or generating shareable HTML files with charts and filters that work without a server.

Frontend
2298

browser-automation

by browserbase

Automate web browser interactions using natural language via CLI commands. Use when the user asks to browse websites, navigate web pages, extract data from websites, take screenshots, fill forms, click buttons, or interact with web applications. Triggers include \

Frontend
21175

svg-precision

by dkyazzentwatwa

Deterministic SVG generation, validation, and rendering. Use for icons, diagrams, charts, UI mockups, or technical drawings requiring structural correctness and cross-viewer compatibility.

Frontend
233466

theme-factory

by anthropics

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

Frontend
40139