SKILL

vue-patterns

Vue.js 3 Composition API 模式、组件架构、响应式最佳实践、Pinia 状态管理、Vue Router 导航以及 Nuxt SSR 模式。适用于 Vue、Nuxt、Vite 或 Pinia 项目。在构建或审查 Vue 3、Nuxt 或 Pinia 代码时使用——涉及 Composition API、响应式或路由导航。

机器翻译
查看英文原文

Vue.js 3 Composition API patterns, component architecture, reactivity best practices, Pinia state management, Vue Router navigation, and Nuxt SSR patterns. Activates for Vue, Nuxt, Vite, or Pinia projects. Use when building or reviewing Vue 3, Nuxt, or Pinia code — Composition API, reactivity, or router navigation.

适用对象:Vue / Nuxt。自动收录 · 待核查。

原作者说明节选

从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。

查看英文原文

原文涵盖的主题

  • Vue.js Patterns and Best Practices
  • When to Activate
  • 1. Project Structure
  • Recommended Layout (Feature-First)
  • File Naming
  • 2. Component Architecture
  • Single-File Component Order
  • Presentational vs Container

Comprehensive guide for Vue.js 3 development using Composition API ( ), covering component design, reactivity, state management, routing, testing, and SSR patterns. Nuxt-specific guidance is included where it differs from vanilla Vue. Activate this skill when: The project uses Vue.js (any version), Nuxt, Vite + Vue, or Pinia. The user asks about Vue component architecture, composables, reactivity, or state management. Reviewing Vue Single-File Components (.vue files). Setting up Vue Router, Pinia stores, or Vite/Vitest configuration. Discussing Vue-specific performance, security, or SSR patterns. -- | Convention | When to Use | |-----------|-------------| | PascalCase.vue | All components (enforced by vue/multi-word-component-names) | | useCamelCase.ts | Composables | | camelCase.ts | Utilities, API clients, types | | kebab-case directories | Route segments, feature folders | -- Container components: Own data fetching, state, and side effects. Render presentational components. Presentational components: Receive props, emit events. No API calls, no store access. Pure rendering. Always provide type, and required/default where appropriate. Boolean props: isXxx, hasXxx, canXxx. Never m

这里只展示节选,请以完整原文和当前要求为准。

来源仓库
affaan-m/ECC
源文件
pi/core/skills/vue-patterns/SKILL.md
固定版本
d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
阅读完整原作者说明 ↗

来源与内容状态

本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。

原作者:affaan-m/ECC · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-09T15:01:43.314Z。

分类由名称、说明与路径规则生成,分类不代表已核实适配。

许可与权利归属

MIT。第三方内容及版权归原作者,使用条件以原文为准。

许可原文 ↗

本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。

限制与注意事项

  • 元数据收录不代表本站已经安装、适配、实测或进行安全审查。