Token导航 LogoToken导航TokenDH.com
前端设计权限需确认github未标认证来源可访问许可证需确认审计未展示

vue3-frontendvue3 前端

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

1,673

周安装

69

GitHub Stars

2

下载量

546
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:vue3-frontend(vue3 前端)
来源仓库:https://github.com/eva813/vue3-skills
仓库路径:skills/vue3-frontend
安装命令:
npx skills add https://github.com/eva813/vue3-skills --skill vue3-frontend
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/eva813/vue3-skills --skill vue3-frontend

简介

用于 Vue 3 前端开发的综合支持。vue3-frontend 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

  • 适合处理 Vue 3 项目的页面构建和交互实现。
  • 可协助生成现代化的前端界面和用户体验。
  • 使用时应结合 Vue 3 生态和前端工程化实践。
  • 安装方式:通过 GitHub 仓库安装,兼容 Claude 等工具。

SKILL.md

name
vue3-frontend
description
Comprehensive Vue 3 frontend development skill. Use when developing Vue 3 applications, components, or composables. Covers: (1) Creating new Vue 3 projects and components, (2) Vue 2 to Vue 3 migration, (3) Code review and optimization, (4) Composition API implementation, (5) Best practices and common patterns, (6) TypeScript integration, (7) State management with Pinia, (8) Performance optimization. Includes component templates, composable examples, migration guides, and best practices documentation.

Vue 3 Frontend Development Skill

全面的 Vue 3 前端開發技能,提供元件範本、最佳實踐指南、遷移協助和常見模式。

Core Capabilities

1. Component Development

建立新的 Vue 3 元件,使用 <script setup> 語法和 Composition API。

Available templates:

  • assets/component-templates/BasicComponent.vue - 基本元件範本
  • assets/component-templates/FormComponent.vue - 完整的表單元件(含驗證)
  • assets/component-templates/DataTable.vue - 資料表格元件(含排序、分頁、搜尋)
  • assets/component-templates/Modal.vue - 模態框元件(含完整功能)

Usage:

# 複製範本到專案
cp assets/component-templates/BasicComponent.vue src/components/YourComponent.vue

2. Composables Development

建立可重用的邏輯抽象。

Available templates:

  • assets/composable-templates/useFetch.js - API 請求封裝
  • assets/composable-templates/useLocalStorage.js - localStorage 同步狀態

Usage:

# 複製到專案
cp assets/composable-templates/useFetch.js src/composables/

3. Vue 2 to Vue 3 Migration

協助將 Vue 2 專案遷移到 Vue 3。

Migration workflow:

  1. Read references/migration-guide.md for breaking changes
  2. Identify deprecated APIs in existing code
  3. Apply migration patterns from the guide
  4. Test thoroughly

Key migration areas:

  • Global API (Vue.use → app.use)
  • Reactivity system (Vue.set → direct assignment)
  • v-model syntax (value/input → modelValue/update:modelValue)
  • Lifecycle hooks (destroyed → unmounted)
  • Filters removal (use computed/methods)
  • Event Bus replacement (use mitt/Pinia)

4. Code Review and Optimization

檢查和優化 Vue 3 程式碼品質。

Review checklist:

  • Use <script setup> for better performance
  • Proper ref/reactive usage
  • Computed vs methods
  • v-show vs v-if
  • Key usage in v-for
  • Component splitting
  • Props validation
  • Error handling

Reference Documentation

Essential References

Always read these when working on specific tasks:

Migration tasks:

  • references/migration-guide.md - Complete Vue 2 to Vue 3 migration guide with all breaking changes

Composition API usage:

  • references/composition-api.md - Comprehensive Composition API reference (ref, reactive, computed, watch, lifecycle, etc.)

Best practices:

  • references/best-practices.md - Vue 3 best practices covering component design, reactivity, performance, code organization, error handling, TypeScript

Common patterns:

  • references/common-patterns.md - Form handling, data fetching, list rendering, modals, state management, routing, i18n

When to Read Each Reference

Before writing any component:

  1. Check best-practices.md for component design patterns
  2. Review relevant patterns in common-patterns.md

Before migration:

  1. Read entire migration-guide.md
  2. Reference composition-api.md for new API syntax

When implementing features:

  • Forms → common-patterns.md Form Handling section
  • Data fetching → common-patterns.md Data Fetching section
  • State management → common-patterns.md State Management section
  • i18n → common-patterns.md i18n section

Common Development Workflows

Workflow 1: Create a New Component

# 1. Choose appropriate template
view assets/component-templates/

# 2. Read best practices
view references/best-practices.md

# 3. Copy and customize template
cp assets/component-templates/BasicComponent.vue src/components/MyComponent.vue

# 4. Follow naming conventions (PascalCase)
# 5. Define props with validation
# 6. Use <script setup> syntax
# 7. Keep component focused and small

Workflow 2: Migrate Vue 2 Code to Vue 3

# 1. Read migration guide first
view references/migration-guide.md

# 2. Identify patterns to migrate
# - Options API → Composition API
# - this.$set → direct assignment
# - filters → computed/methods
# - Event Bus → mitt/Pinia

# 3. Apply changes systematically
# 4. Test each change
# 5. Update dependencies

Workflow 3: Implement Data Fetching

# 1. Review data fetching patterns
view references/common-patterns.md
# Look for "Data Fetching Patterns" section

# 2. Choose approach:
# - Custom composable (useFetch template)
# - VueUse (@vueuse/core)
# - TanStack Query

# 3. Implement with error handling and loading states

Workflow 4: Optimize Performance

# 1. Review performance section
view references/best-practices.md
# Look for "Performance Optimization" section

# 2. Check for issues:
# - Using methods instead of computed
# - Unnecessary v-if usage
# - Missing keys in v-for
# - Large components without splitting
# - No lazy loading

# 3. Apply optimizations:
# - Use computed for derived data
# - v-show for frequent toggles
# - defineAsyncComponent for heavy components
# - Virtual scrolling for large lists

Workflow 5: Form Development

# 1. Use form template or VeeValidate pattern
view assets/component-templates/FormComponent.vue
view references/common-patterns.md
# Look for "Form Handling Patterns" section

# 2. Implement validation
# 3. Handle errors and loading states
# 4. Add success/error feedback

Quick Reference Commands

Component Templates

# List all templates
ls -la assets/component-templates/

# Copy specific template
cp assets/component-templates/[TemplateName].vue src/components/

Composable Templates

# List all composables
ls -la assets/composable-templates/

# Copy specific composable
cp assets/composable-templates/[composableName].js src/composables/

Read Documentation

# Migration guide
view references/migration-guide.md

# Composition API reference
view references/composition-api.md

# Best practices
view references/best-practices.md

# Common patterns
view references/common-patterns.md

Best Practices Summary

Component Design

  • Always use <script setup> for better performance and DX
  • Define props with full validation
  • Use composables for reusable logic
  • Keep components small and focused (< 200 lines)
  • Extract complex logic into composables

Reactivity

  • Use ref() for primitives
  • Use reactive() for objects
  • Use computed() for derived data
  • Use watch() when you need old values
  • Use watchEffect() for automatic dependency tracking

Performance

  • Use computed() not methods for template calculations
  • Use v-show for frequent toggles
  • Use v-if for initial render conditions
  • Always use unique key in v-for
  • Lazy load heavy components with defineAsyncComponent()
  • Use virtual scrolling for large lists

Code Organization

src/
├── assets/          # Static resources
├── components/      # Reusable components
│   ├── common/      # Base components
│   ├── layout/      # Layout components
│   └── features/    # Feature components
├── composables/     # Reusable logic
├── stores/          # Pinia stores
├── router/          # Router config
├── views/           # Page components
├── utils/           # Utility functions
└── services/        # API services

TypeScript Support

When using TypeScript:

  • Define prop types with interfaces
  • Use generics in composables
  • Type emits properly
  • Use defineComponent when needed

See best-practices.md TypeScript Integration section for details.

Common Gotchas

  1. Destructuring reactive objects loses reactivity

- Use toRefs() or access properties directly

  1. Direct array/object mutation in Vue 2 style

- Vue 3 doesn't need $set, direct mutation works

  1. Forgetting .value with refs

- Remember: refs need .value in <script>, not in <template>

  1. Using reactive() for primitives

- Use ref() for primitives, reactive() for objects

  1. Not cleaning up side effects

- Always clean up in onBeforeUnmount() or use watchEffect() cleanup

Additional Resources

  • Official Vue 3 docs: https://vuejs.org/
  • Vue 3 Migration guide: https://v3-migration.vuejs.org/
  • Composition API FAQ: https://vuejs.org/guide/extras/composition-api-faq.html
  • VueUse: https://vueuse.org/ (utility composables)
  • Pinia: https://pinia.vuejs.org/ (state management)

Tips for Using This Skill

  1. Always start with references: Read relevant documentation before coding
  2. Use templates as starting points: Don't write from scratch if a template exists
  3. Follow the workflows: They embody best practices
  4. Check best practices regularly: Internalize the patterns
  5. When stuck: Check common-patterns.md for similar examples

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.33%
按下载量换算182

Claude

29.24%
按下载量换算160

Cursor

19.13%
按下载量换算104

Gemini CLI

9.83%
按下载量换算54

安全审计

暂无安全审计结果可展示。

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills