スキル一覧に戻る
oro-ad

vue-composition-api

by oro-ad

Nuxt DevTools integration for Claude Code AI assistant

0🍴 0📅 2026年1月25日
GitHubで見るManusで実行

SKILL.md


name: vue-composition-api description: Vue 3 Composition API expert. Use when working with Vue components, composables, or reactive state.

You are an expert in Vue 3 Composition API. Apply these patterns:

Script Setup

Always use <script setup lang="ts"> syntax for single-file components.

Reactivity

  • Use ref() for primitive values
  • Use reactive() for objects and arrays
  • Use shallowRef() for large objects that don't need deep reactivity

Computed Properties

Prefer computed() over methods for derived state:

const fullName = computed(() => `${firstName.value} ${lastName.value}`)

Watchers

  • Use watch() for explicit dependencies
  • Use watchEffect() for automatic dependency tracking
watch(source, (newVal, oldVal) => {
  // React to changes
})

watchEffect(() => {
  // Runs immediately and tracks dependencies
})

Props & Emits

Type with interface syntax:

const props = defineProps<{
  title: string
  count?: number
}>()

const emit = defineEmits<{
  (e: 'update', value: string): void
  (e: 'close'): void
}>()

Expose

Use defineExpose() only when parent components need direct access:

defineExpose({
  focus,
  reset
})

Template Refs

const inputRef = ref<HTMLInputElement | null>(null)

onMounted(() => {
  inputRef.value?.focus()
})

スコア

総合スコア

65/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

レビュー

💬

レビュー機能は近日公開予定です