No slash command · from trove-dev
Enforces Vue 3 Composition API conventions including script setup, reactivity patterns, typed props/emits, and composable-based API calls. Activates on .vue files.
Ships in trove-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill ships Trove conventions. Prefer existing project patterns over generic best practices when they conflict.
Always use <script setup lang="ts"> for single-file components:
<script setup lang="ts">
import { ref, computed, onMounted } from 'vue'
const count = ref(0)
const doubled = computed(() => count.value * 2)
onMounted(() => {
console.log('Component mounted')
})
</script>
ref() for primitives, reactive() for objects.value on refs in script (auto-unwrapped in template)computed() for derived state — never compute in templatewatchEffect() for side effects that depend on reactive state// BAD — reactive object loses reactivity on destructure
const { name, age } = reactive(user)
// GOOD — use toRefs to keep reactivity
const { name, age } = toRefs(reactive(user))
// BEST — use ref for individual values
const name = ref(user.name)
// Type-safe props with defaults
const props = withDefaults(defineProps<{
title: string
count?: number
}>(), {
count: 0,
})
// Type-safe emits
const emit = defineEmits<{
update: [value: string]
delete: [id: number]
}>()
Use composables for API integration:
// composables/useUser.ts
export function useUser(userId: Ref<string>) {
const user = ref<User | null>(null)
const loading = ref(false)
async function fetchUser() {
loading.value = true
try {
const { data } = await api.get(`/users/${userId.value}`)
user.value = data
} finally {
loading.value = false
}
}
watch(userId, fetchUser, { immediate: true })
return { user, loading, fetchUser }
}
ref<HTMLElement | null>(null) for DOM element refsdefineModel() for two-way binding in custom componentsdefineAsyncComponent() for code splittingInjectionKey<T> for type safetyWhat SKILL.md sets; muted values are Claude Code's defaults
vue component; composition api; pinia store
Three short reads, in order
17 skills in this plugin
/trove-architectDesign the shape before the code: sketch types, signatures, and module structure with not-implemented bodies, agree, then fill in. Scrap the sketch when implementation proves it wrong. Use for non-trivial work where jumping straight to code would lock in the wrong shape./trove-commitGit commit workflow and message conventions. Use when creating, drafting, or reviewing atomic commits with conventional messages./trove-docs-sync-auditRead-only documentation drift audit comparing what the docs claim against what the code does. Covers READMEs, setup guides, API and env docs, changelogs, examples, and generated docs. Use when asked whether docs are stale, missing, or inconsistent after a code change. This is not a code review.npx claudepluginhub bravew/trove --plugin trove-devOther plugins' skills for the same job