← Back to list

vue-composition-api
by spjoshis
Modular Claude plugins for agent-based expertise and reusable skills across software development and Agile. Easily extend, share, and automate best practices for modern development.
⭐ 1🍴 0📅 Dec 30, 2025
SKILL.md
name: vue-composition-api description: Master Vue 3 Composition API with setup, ref, reactive, computed, watch, and composables for building scalable reactive applications.
Vue Composition API
Master Vue 3's Composition API for building scalable, reusable, and type-safe reactive applications.
Core Concepts
Script Setup
<script setup lang="ts">
import { ref, computed } from 'vue'
const count = ref(0)
const doubled = computed(() => count.value * 2)
function increment() {
count.value++
}
</script>
<template>
<div>
<p>{{ count }} x 2 = {{ doubled }}</p>
<button @click="increment">Increment</button>
</div>
</template>
Composables
// composables/useFetch.ts
export function useFetch<T>(url: string) {
const data = ref<T | null>(null)
const error = ref<Error | null>(null)
const loading = ref(true)
const fetchData = async () => {
loading.value = true
try {
const response = await fetch(url)
data.value = await response.json()
} catch (e) {
error.value = e as Error
} finally {
loading.value = false
}
}
onMounted(fetchData)
return { data, error, loading, refetch: fetchData }
}
Reactive State
import { reactive, toRefs } from 'vue'
const state = reactive({
count: 0,
message: 'Hello'
})
// Destructure while maintaining reactivity
const { count, message } = toRefs(state)
Best Practices
- Use
reffor primitives,reactivefor objects - Extract reusable logic into composables
- Use TypeScript for type safety
- Implement proper cleanup in
onUnmounted - Use
computedfor derived state - Leverage
watchEffectfor side effects
Resources
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
3ヶ月以内に更新
+5
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
○言語
プログラミング言語が設定されている
0/5
✓タグ
1つ以上のタグが設定されている
+5
Reviews
💬
Reviews coming soon
