一键导入
vue
Vue 3 component patterns, composition API, reactive data binding, two-way binding with defineModel, and best practices.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Vue 3 component patterns, composition API, reactive data binding, two-way binding with defineModel, and best practices.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Type-safe SQL ORM for TypeScript with zero runtime overhead
Refactoring pattern untuk menghindari import tidak perlu, menggunakan composable untuk logic, centralized type management di shared/types, dan form component pattern yang mendukung edit dan create dengan sama composable.
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.
Use when building styled UI with @nuxt/ui v4 components (Button, Modal, Form, Table, etc.) - provides ready-to-use components with Tailwind Variants theming. Use vue skill for raw component patterns, reka-ui for headless primitives.
基于 SOC 职业分类
| name | vue |
| description | Vue 3 component patterns, composition API, reactive data binding, two-way binding with defineModel, and best practices. |
| metadata | {"author":"Vue.js Core Team + Project Guidelines","version":"3.4+","source":"https://vuejs.org, project-specific conventions"} |
Comprehensive guide for building Vue 3 components with the Composition API, focusing on reactive patterns, two-way binding, and modern best practices.
| Topic | Description | Reference |
|---|---|---|
| Two-Way Binding | Modern defineModel API, v-model binding | bindings-definemodel |
| Props & Emits (Legacy) | defineProps, defineEmits, old v-model pattern | bindings-legacy-pattern |
| Reactive State | ref, reactive, computed, watchers | state-management |
| Lifecycle Hooks | onMounted, onUpdated, onUnmounted | lifecycle-hooks |
| Topic | Description | Reference |
|---|---|---|
| Component Composition | Splitting logic, code organization | best-practices-composition |
defineModel (Vue 3.4+)For cleaner two-way data binding:
<script setup lang="ts">
// Single value binding
const modelValue = defineModel<number | null>();
// Multiple v-model bindings
const isOpen = defineModel<boolean>("isOpen");
const title = defineModel<string>("title");
</script>
<template>
<div>
<button @click="modelValue = modelValue ? null : 1">
Toggle: {{ modelValue }}
</button>
</div>
</template>
<script setup lang="ts">
const props = defineProps<{ modelValue: number | null }>();
const emit = defineEmits<{
(e: "update:modelValue", value: number | null): void;
}>();
// Then emit updates:
emit("update:modelValue", newValue);
</script>
Refactor components using the old pattern when:
Start with refactoring: