Communityコーディング&開発github.com

antfu/vue

Vue 3 Composition API、script setup マクロ、リアクティビティシステム、組み込みコンポーネント。Vue SFCの作成時、defineProps/defineEmits/defineModel、ウォッチャー、またはTransition/Teleport/Suspense/KeepAliveの使用時に利用します。

vue とは?

このスキルは、Vue 3アプリケーション開発において、Composition APIやscript setupマクロ、リアクティビティシステム、そしてVueの組み込みコンポーネント(Transition、Teleport、Suspense、KeepAliveなど)を効果的に活用するための支援を提供します。開発者がVue Single File Components (SFC)を作成する際に、defineProps、defineEmits、defineModelといったコンパイラマクロや、watch、computedなどのリアクティブAPIを正しく使用できるようガイドします。また、Vue 3の新しい機能であるSuspenseによる非同期コンポーネントの扱いや、Teleportによるポータルレンダリング、Transitionによるアニメーション制御など、実践的なパターンとベストプラクティスを提供します。このスキルは主にVue 3を使用したフロントエンド開発プロジェクトに焦点を当てており、他のAIエージェントフレームワーク(Claude Code、Cursorなど)と組み合わせて使用することで、Vue開発の生産性を大幅に向上させることができます。

対応~Claude Code~Codex CLI~Cursor
Part ofReact
npx skills add https://github.com/antfu/skills/tree/main/skills/vue

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

vue は何をしますか?

Vue 3 Composition API、script setup マクロ、リアクティビティシステム、組み込みコンポーネント。Vue SFCの作成時、defineProps/defineEmits/defineModel、ウォッチャー、またはTransition/Teleport/Suspense/KeepAliveの使用時に利用します。

Individual skills in this repo

This repo contains 16 individual skills — each has its own dedicated page.

antfu/antfu

Anthony Fu's opinionated tooling and conventions for JavaScript/TypeScript projects. Use when setting up new projects, configuring ESLint/Prettier alternatives, monorepos, library publishing, or when the user mentions Anthony Fu's preferences.

antfu/nuxt

Nuxt full-stack Vue framework with SSR, auto-imports, and file-based routing. Use when working with Nuxt apps, server routes, useFetch, middleware, or hybrid rendering.

antfu/pinia

Pinia official Vue state management library, type-safe and extensible. Use when defining stores, working with state/getters/actions, or implementing store patterns in Vue apps.

antfu/pnpm

Node.js package manager with strict dependency resolution. Use when running pnpm specific commands, configuring workspaces, or managing dependencies with catalogs, patches, or overrides.

antfu/slidev

Create and present web-based slidedecks for developers using Slidev with Markdown, Vue components, code highlighting, animations, and interactive features. Use when building technical presentations, conference talks, code walkthroughs, teaching materials, or developer decks.

antfu/tsdown

Bundle TypeScript and JavaScript libraries with blazing-fast speed powered by Rolldown. Use when building libraries, generating type declarations, bundling for multiple formats, or migrating from tsup.

antfu/turborepo

Turborepo monorepo build system guidance. Triggers on: turbo.json, task pipelines, dependsOn, caching, remote cache, the "turbo" CLI, --filter, --affected, CI optimization, environment variables, internal packages, monorepo structure/best practices, and boundaries. Use when user: configures tasks/workflows/pipelines, creates packages, sets up monorepo, shares code between apps, runs changed/affected packages, debugs cache, or has apps/packages directories.

antfu/unocss

UnoCSS instant atomic CSS engine, superset of Tailwind CSS. Use when configuring UnoCSS, writing utility rules, shortcuts, or working with presets like Wind, Icons, Attributify.

antfu/vite

Vite build tool configuration, plugin API, SSR, and Vite 8 Rolldown migration. Use when working with Vite projects, vite.config.ts, Vite plugins, or building libraries/SSR apps with Vite.

antfu/vitepress

VitePress static site generator powered by Vite and Vue. Use when building documentation sites, configuring themes, or writing Markdown with Vue components.

antfu/vitest

Vitest fast unit testing framework powered by Vite with Jest-compatible API. Use when writing tests, mocking, configuring coverage, or working with test filtering and fixtures.

antfu/vue-best-practices

MUST be used for Vue.js tasks. Strongly recommends Composition API with `<script setup>` 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.

antfu/vue-router-best-practices

Vue Router 4 patterns, navigation guards, route params, and route-component lifecycle interactions.

antfu/vue-testing-best-practices

Use for Vue.js testing. Covers Vitest, Vue Test Utils, component testing, mocking, testing patterns, and Playwright for E2E testing.

antfu/vueuse-functions

Apply VueUse composables where appropriate to build concise, maintainable Vue.js / Nuxt features.

antfu/web-design-guidelines

Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".

関連スキル