vue-application-structure

Structure Vue 3 applications using Composition API, component organization, and TypeScript. Use when building scalable Vue applications with proper separation of concerns.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "vue-application-structure" with this command: npx skills add aj-geddes/useful-ai-prompts/aj-geddes-useful-ai-prompts-vue-application-structure

Vue Application Structure

Table of Contents

Overview

Build well-organized Vue 3 applications using Composition API, proper file organization, and TypeScript for type safety and maintainability.

When to Use

  • Large-scale Vue applications
  • Component library development
  • Reusable composable hooks
  • Complex state management
  • Performance optimization

Quick Start

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)

Reference Guides

Detailed implementations in the references/ directory:

GuideContents
Vue 3 Composition API ComponentVue 3 Composition API Component
Async Data Fetching ComposableAsync Data Fetching Composable
Component Organization StructureComponent Organization Structure
Form Handling ComposableForm Handling Composable
Pinia Store (State Management)Pinia Store (State Management)

Best Practices

✅ DO

  • Follow established patterns and conventions
  • Write clean, maintainable code
  • Add appropriate documentation
  • Test thoroughly before deploying

❌ DON'T

  • Skip testing or validation
  • Ignore error handling
  • Hard-code configuration values

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

code-review-analysis

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

ios-swift-development

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

android-kotlin-development

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

flutter-development

No summary provided by upstream source.

Repository SourceNeeds Review