Skip to content
Agentmart
Submit a tool

trove-vue

Vue 3 Composition API conventions and best practices.

Skill by bravew

IndexedMIT★ 10
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/bravew-trove-vue-587c51

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Vue 3 Composition API conventions and best practices. Auto-activates when working with Vue single-file components. Covers reactivity, component patterns, Vue Router, and Pinia state management. Use when: vue component; composition api; pinia store.

Use cases: frontend, backend

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/trove-vue

What's inside

Skill name
trove-vue
Description
Vue 3 Composition API conventions and best practices. Auto-activates when working with Vue single-file components. Covers reactivity, component patterns, Vue Router, and Pinia state management. Use when: vue component; composition api; pinia store.
License
MIT
Instructions
95 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

<!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly -->
<!-- Regenerate: bun run build:skills -->

## Session Init

This skill ships Trove conventions. Prefer existing project patterns over generic best practices when they conflict.

# Vue 3 Composition API Conventions

## Script Setup

Always use `<script setup lang="ts">` for single-file components:

```vue
<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>
```

## Reactivity (CRITICAL)

- Use `ref()` for primitives, `reactive()` for objects
- Always access `.value` on refs in script (auto-unwrapped in template)
- Use `computed()` for derived state — never compute in template
- Use `watchEffect()` for side effects that depend on reactive state

```typescript
// 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)
```

## Component Props & Emits

```typescript
// 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]
}>()
```

## API Calls

Use composables for API integration:

```typescript
// 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 }
}
```

## AI Gotchas

- **Template refs**: Use `ref<HTMLElement | null>(null)` for DOM element refs
- **v-model**: Use `defineModel()` for two-way binding in custom components
- **Async components**: Use `defineAsyncComponent()` for code splitting
- **Provide/Inject**: Type with `InjectionKey<T>` for type safety

From bravew/trove, MIT.

More from bravew/trove

Compare and alternatives

    Featured in

    Signals

    Stars
    10
    Forks
    1
    Open issues
    0
    Last commit (this folder)
    Sep 10, 2026 (1 month ago)
    Last release
    Oct 8, 2026 (20 days ago)

    From GitHub (fetched Oct 24, 2026).

    Details

    License
    MIT
    First seen
    Oct 24, 2026
    Last checked
    Oct 24, 2026

    More from bravew

    Cite this page

    trove-vue skill. Agent Mart. https://agentmart.dev/skills/bravew-trove-vue-587c51 (last updated 2026-10-24)