vue3-fsd-development — community vue3-fsd-development, vue-template, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Frontend Agents needing advanced Vue 3 development capabilities with Feature-Sliced Design (FSD) architecture. Vue 3 Template

cpvasques cpvasques
[0]
[0]
Updated: 3/5/2026

Agent Capability Analysis

The vue3-fsd-development skill by cpvasques is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for Frontend Agents needing advanced Vue 3 development capabilities with Feature-Sliced Design (FSD) architecture.

Core Value

Empowers agents to develop scalable and maintainable Vue 3 applications using Feature-Sliced Design principles, with built-in support for TypeScript, lazy loading, and code splitting, ensuring performance and type safety.

Capabilities Granted for vue3-fsd-development

Building modular and reusable UI components with Vue 3 and FSD
Implementing efficient lazy loading and code splitting strategies
Ensuring type safety and code quality with TypeScript integration

! Prerequisites & Limits

  • Requires knowledge of Vue 3 and Feature-Sliced Design principles
  • TypeScript experience is necessary
  • Limited to Vue 3 ecosystem
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

vue3-fsd-development

Install vue3-fsd-development, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Vue 3 FSD Development

Guidelines para desenvolvimento Vue 3 seguindo arquitetura Feature-Sliced Design (FSD) adaptada.

Princípios Fundamentais

  1. Separação de Responsabilidades: Cada camada tem responsabilidade única e bem definida
  2. Isolamento de Features: Features são auto-contidas e independentes
  3. Reutilização Inteligente: Widgets e shared para código reutilizável
  4. Performance First: Lazy loading e code splitting por padrão
  5. Type Safety: TypeScript em todos os arquivos

Arquitetura FSD

Estrutura de camadas (ordem de dependência):

app/ → pages/ → features/ → widgets/ → shared/

Regras de dependência:

  • app/ não depende de nenhuma camada
  • pages/ pode importar de features/, widgets/, shared/
  • features/ pode importar de widgets/, shared/
  • widgets/ pode importar de shared/
  • shared/ não depende de outras camadas

NUNCA:

  • ❌ Features importando de pages/
  • ❌ Widgets importando de features/ ou pages/
  • ❌ Shared importando de qualquer outra camada

Para detalhes completos, veja architecture.md.

Estrutura de Features

Cada feature segue esta estrutura:

features/[feature-name]/
├── index.vue              # Componente principal
├── model/                 # Lógica de negócio
│   ├── [feature]Schema.ts # Schema Zod
│   └── use[Feature].ts    # Composable
├── ui/                    # Componentes UI específicos
│   └── [component]/
│       ├── index.vue
│       └── __tests__/
└── store/                 # Store Pinia (se necessário)

Diretrizes:

  • Uma feature = um domínio de negócio
  • Lógica sempre em model/
  • UI específica em ui/
  • Testes junto ao código em __tests__/

Lazy Loading Obrigatório

Rotas: Sempre usar dynamic imports:

typescript
1component: () => import('@/pages/users/UsersView.vue')

Features pesadas: Lazy load quando possível:

vue
1<script setup> 2const HeavyComponent = defineAsyncComponent(() => 3 import('@/features/heavy-feature/index.vue') 4) 5</script>

Mocks condicionais: Lazy load de MSW:

typescript
1if (import.meta.env.VITE_ENABLE_MOCK_SERVER === 'true') { 2 const { worker } = await import('../shared/mocks/browser.ts') 3 worker.start() 4}

Para otimizações avançadas, veja performance.md.

Padrões de Código

Composables com Vue Query

typescript
1import { useMutation } from '@tanstack/vue-query' 2import { toast } from 'vue-sonner' 3import { postLogin as postLoginService } from '@/shared/api/auth-api/postLogin' 4import type { Payload } from '@/shared/api/auth-api/types/postLogin.types' 5 6const postLogin = () => { 7 const { isPending, isError, error, isSuccess, mutate } = useMutation({ 8 mutationFn: (payload: Payload) => 9 postLoginService(payload).catch((error) => 10 toast.error(error?.response?.data?.message || 'Erro desconhecido.'), 11 ), 12 }) 13 14 return { isPending, isError, error, isSuccess, mutate } 15} 16 17export function useLogin() { 18 return { postLogin } 19}

APIs

typescript
1import { axiosClient } from '../config/http-client' 2import type { Payload, Response } from './types/postLogin.types' 3 4export async function postLogin(payload: Payload): Promise<Response> { 5 const response = await axiosClient.request<Response>({ 6 endpoint: 'login', 7 method: 'POST', 8 body: payload, 9 }) 10 return response.data 11}

Validação Zod

typescript
1import { z } from 'zod' 2 3const loginSchema = z.object({ 4 email: z.string().email('Email inválido'), 5 password: z.string().min(6, 'Senha deve ter no mínimo 6 caracteres'), 6}) 7 8export type LoginFormData = z.infer<typeof loginSchema>

Para mais padrões, veja patterns.md.

Boas Práticas

✅ FAZER

  • Usar Composition API com <script setup>
  • Tipar tudo com TypeScript
  • Separar tipos em arquivos types/
  • Usar cn() para merge de classes Tailwind
  • Implementar error handling em composables
  • Usar Vue Query para estado servidor
  • Usar Pinia apenas para estado cliente global
  • Testar features junto com o código

❌ NÃO FAZER

  • Misturar lógica de negócio com UI
  • Criar dependências circulares entre camadas
  • Importar features em widgets
  • Usar any em TypeScript
  • Hardcode de valores (usar env vars)
  • Lógica complexa em templates
  • Mutar props diretamente
  • Criar stores Pinia para estado local

Para lista completa, veja best-practices.md.

Performance

Code Splitting

  • Rotas sempre lazy loaded
  • Features pesadas com defineAsyncComponent
  • Bibliotecas grandes importadas dinamicamente

Vue Query

  • Configurar staleTime e gcTime apropriadamente
  • Usar queryKey reativo para invalidação automática
  • Implementar paginação com currentPage e perPage

Renderização

  • Usar v-show para toggle frequente
  • Usar v-if para renderização condicional pesada
  • Evitar watchers desnecessários
  • Usar computed para valores derivados

Para otimizações avançadas, veja performance.md.

Nomenclatura

  • Componentes: PascalCase (LoginView.vue, UserDialog.vue)
  • Composables: camelCase com use (useLogin.ts, useListUsers.ts)
  • Stores: camelCase com use (useAuthStore)
  • APIs: camelCase com verbo (postLogin.ts, getAllUsers.ts)
  • Features: kebab-case (login-auth/, handle-users/)
  • Tipos: PascalCase (Payload, Response, User)

Imports

  • Sempre usar alias @/ para src/
  • Ordenação automática via ESLint simple-import-sort
  • Agrupar: externos → internos → tipos
typescript
1import { useMutation } from '@tanstack/vue-query' 2import { toast } from 'vue-sonner' 3 4import { postLogin as postLoginService } from '@/shared/api/auth-api/postLogin' 5import type { Payload } from '@/shared/api/auth-api/types/postLogin.types'

Recursos Adicionais

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is vue3-fsd-development?

Perfect for Frontend Agents needing advanced Vue 3 development capabilities with Feature-Sliced Design (FSD) architecture. Vue 3 Template

How do I install vue3-fsd-development?

Run the command: npx killer-skills add cpvasques/vue-template/vue3-fsd-development. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for vue3-fsd-development?

Key use cases include: Building modular and reusable UI components with Vue 3 and FSD, Implementing efficient lazy loading and code splitting strategies, Ensuring type safety and code quality with TypeScript integration.

Which IDEs are compatible with vue3-fsd-development?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for vue3-fsd-development?

Requires knowledge of Vue 3 and Feature-Sliced Design principles. TypeScript experience is necessary. Limited to Vue 3 ecosystem.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add cpvasques/vue-template/vue3-fsd-development. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use vue3-fsd-development immediately in the current project.

Related Skills

Looking for an alternative to vue3-fsd-development or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI