agentleFS
ihiteshguptaihiteshgupta/ClaudeSkills/skills/frontend/vue-expert/SKILL.md

vue-expert

Skill0 starsChanged 13 months agoMITView on GitHub

Expert in Vue.js 3 development with Composition API, TypeScript, Pinia, and modern patterns. Use for Vue component development and best practices.

10 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use mcp-developer, csharp-developer and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • JeffallanSkill

    mcp-developer

    Use when building, debugging, or extending MCP servers or clients that connect AI systems with external tools and data sources. Invoke to implement tool handlers, configure resource providers, set up stdio/HTTP/SSE transport layers, validate schemas with Zod or Pydantic, debug protocol compliance issues, or scaffold complete MCP server/client projects using TypeScript or Python SDKs.

    Also in 6 projects that use this

  • JeffallanSkill

    csharp-developer

    Use when building C# applications with .NET 8+, ASP.NET Core APIs, or Blazor web apps. Builds REST APIs using minimal or controller-based routing, configures database access with Entity Framework Core, implements async patterns and cancellation, structures applications with CQRS via MediatR, and scaffolds Blazor components with state management. Invoke for C#, .NET, ASP.NET Core, Blazor, Entity Framework, EF Core, Minimal API, MAUI, SignalR.

    Also in 7 projects that use this

  • +10 more from Jeffallan

The file

We split this skill into the rules it gives an agent

5 rules. 1 is common, 4 are distinctive, and 0 are very specific to this project.

  • 1

    Common

    Most of the 9 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Prefer Composition API over Options API

    line 25
  2. Common:

    Use computed for derived state

    line 32
  3. Distinctive:

    Performance: - Use v-memo, KeepAlive, and lazy loading

    line 166
  4. Distinctive:

    Scoped Styles: - Keep styles scoped to components

    line 167
  5. Distinctive:

    Testing: - Use Vitest and Vue Test Utils

    line 168

“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Vue.js 3 Development Expert

Purpose

Provide expert-level Vue.js 3 development assistance focusing on Composition API, TypeScript integration, state management with Pinia, and modern Vue patterns.

When to Use This Skill

  • Building Vue 3 components with Composition API
  • TypeScript integration with Vue
  • State management with Pinia
  • Vue Router setup and configuration
  • Form handling and validation
  • Composables development
  • Performance optimization
  • Testing Vue components

Key Principles

1. Composition API First

  • Prefer Composition API over Options API
  • Use <script setup> syntax
  • Create reusable composables
  • Leverage TypeScript with Vue

2. Reactivity System

  • Understand ref vs reactive
  • Use computed for derived state
  • Watch for side effects
  • toRefs for destructuring

3. Component Design

  • Single File Components (SFC)
  • Props and emits with TypeScript
  • Provide/inject for dependency injection
  • Scoped slots for flexibility

Component Template

<script setup lang="ts">
import { ref, computed, watch, onMounted } from 'vue';

interface Props {
  data: DataType;
  title?: string;
}

interface Emits {
  (e: 'update', value: string): void;
  (e: 'delete', id: number): void;
}

const props = withDefaults(defineProps<Props>(), {
  title: 'Default Title'
});

const emit = defineEmits<Emits>();

const state = ref<StateType>({
  loading: false,
  items: []
});

const computedValue = computed(() => {
  return props.data.map(item => item.value);
});

watch(() => props.data, (newVal, oldVal) => {
  // Handle data changes
}, { deep: true });

onMounted(() => {
  // Component mounted
});

const handleAction = () => {
  emit('update', 'new value');
};
</script>

<template>
  <div class="container">
    <h1>{{ title }}</h1>
    <button @click="handleAction">Action</button>
  </div>
</template>

<style scoped>
.container {
  padding: 1rem;
}
</style>

Composables Pattern

// useData.ts
import { ref, Ref } from 'vue';

export function useData<T>(initialValue: T) {
  const data: Ref<T> = ref(initialValue);
  const loading = ref(false);
  const error = ref<Error | null>(null);

  const fetchData = async (url: string) => {
    loading.value = true;
    error.value = null;
    try {
      const response = await fetch(url);
      data.value = await response.json();
    } catch (err) {
      error.value = err as Error;
    } finally {
      loading.value = false;
    }
  };

  return {
    data,
    loading,
    error,
    fetchData
  };
}

Pinia Store

// stores/user.ts
import { defineStore } from 'pinia';
import { ref, computed } from 'vue';

export const useUserStore = defineStore('user', () => {
  const user = ref<User | null>(null);
  const isAuthenticated = computed(() => user.value !== null);

  const login = async (credentials: Credentials) => {
    const response = await api.login(credentials);
    user.value = response.user;
  };

  const logout = () => {
    user.value = null;
  };

  return {
    user,
    isAuthenticated,
    login,
    logout
  };
});

Best Practices

  1. Use TypeScript - Type safety for props, emits, and state
  2. Composables for Logic - Extract reusable logic into composables
  3. Performance - Use v-memo, KeepAlive, and lazy loading
  4. Scoped Styles - Keep styles scoped to components
  5. Testing - Use Vitest and Vue Test Utils

Tools & Libraries

  • State Management: Pinia
  • Routing: Vue Router
  • Forms: VeeValidate, Vuelidate
  • UI Libraries: Vuetify, Element Plus, PrimeVue
  • Testing: Vitest, Vue Test Utils
  • Build Tools: Vite, Nuxt 3

This skill ensures modern, type-safe, and performant Vue.js applications.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.