aj-geddes avatar

Vue Application Structure

A solid foundation for structuring Vue 3 apps with Composition API and TypeScript. You get composables for common patterns like data fetching and form handling, plus a Pinia store setup and component organization conventions. The reference guides cover the basics you'd need to set up a maintainable codebase with proper separation of concerns. Honestly, this is most useful if you're starting a greenfield project or standardizing an existing team's approach. The patterns here are fairly conventional, which is good because you won't be fighting against the ecosystem. If you're already comfortable with Vue 3 architecture, you might not need this, but it's a decent quick reference for teams wanting consistent structure.

skills.sh installs
447
GitHub stars
379
last updated
Aug 21, 2026

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill vue-application-structure --agent claude-code

Installs into .claude/skills of the current project.

Files

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

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Frontend Development, Backend & APIs, AI & Agent Building
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258
1gocallum avatarclerk-nextjs-skillsgocallum/nextjs16-agent-skillsClerk authentication for Next.js 16 (App Router only) with proxy.ts setup, migration from middleware.ts, environment configuration, and MCP server integration.438skills.sh installs
2pproenca avatarreact-testing-librarypproenca/dot-skillsReact Testing Library best practices for writing maintainable, user-centric tests. Use when writing, reviewing, or refactoring RTL tests. Triggers on test files418skills.sh installs
3vercel-labs avatarvercel-react-best-practicesvercel-labs/agent-evalReact and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js c408skills.sh installs
4ofershap avatartailwind-best-practicesofershap/tailwind-best-practicesStop your AI agent from generating Tailwind CSS v3 code. Rules for v4 syntax, CSS-first config, modern utility patterns, and common anti-patterns.405skills.sh installs
5secondsky avatarnuxt-coresecondsky/claude-skills| Nuxt 4 core framework fundamentals: project setup, configuration, routing, SEO, error handling, and directory structure. Use when: creating new Nuxt 4 project401skills.sh installs
6secondsky avatarnuxt-datasecondsky/claude-skills| Nuxt 4 data management: composables, data fetching with useFetch/useAsyncData, and state management with useState and Pinia. Use when: creating custom composa400skills.sh installs