From aj-geddes-useful-ai-prompts-4
Structures Vue 3 applications using Composition API, component organization, and TypeScript for scalable, maintainable codebases.
How this skill is triggered — by the user, by Claude, or both
Slash command
/aj-geddes-useful-ai-prompts-4:vue-application-structureThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- [Overview](#overview)
Build well-organized Vue 3 applications using Composition API, proper file organization, and TypeScript for type safety and maintainability.
Minimal working example:
// useCounter.ts (Composable)
import { ref, computed } from 'vue';
export function useCounter(initialValue = 0) {
const count = ref(initialValue);
const doubled = computed(() => count.value * 2);
const increment = () => count.value++;
const decrement = () => count.value--;
const reset = () => count.value = initialValue;
return {
count,
doubled,
increment,
decrement,
reset
};
}
// Counter.vue
<template>
<div class="counter">
<p>Count: {{ count }}</p>
<p>Doubled: {{ doubled }}</p>
// ... (see reference guides for full implementation)
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| Vue 3 Composition API Component | Vue 3 Composition API Component |
| Async Data Fetching Composable | Async Data Fetching Composable |
| Component Organization Structure | Component Organization Structure |
| Form Handling Composable | Form Handling Composable |
| Pinia Store (State Management) | Pinia Store (State Management) |
npx claudepluginhub joshuarweaver/cascade-code-languages-misc-1 --plugin aj-geddes-useful-ai-prompts-4Guides Vue 3 development with Composition API, <script setup>, and TypeScript. Covers architecture, reactivity, SFC structure, and ecosystem tools (Vue Router, Pinia, Vite, Volar).
Provides Vue 3 + TypeScript project conventions: component boundaries, composables, Pinia state ownership, API/error handling, routing, and style isolation. Use when designing or reviewing Vue 3 project structure.
Enforces Vue 3 best practices: Composition API with `<script setup>` and TypeScript, SFC structure, reactivity patterns, and component architecture. Loads for any Vue, .vue, Vue Router, Pinia, or Vite+Vue work.