mcpField
V
vue-best-practices

vue-best-practices

github.com/uni-helper开发111778 次安装39 周前更新
代码仓库

关于 vue-best-practices

vue-best-practices 是面向 Vue 3 开发者的参考技能,整理常见问题、推荐模式和性能注意事项,涵盖响应式、组件、模板及相关 API。

主要功能

  1. 01响应式与计算属性建议
  2. 02侦听器行为与清理
  3. 03组件和属性使用模式
  4. 04模板与表单常见问题
  5. 05组合式 API 实践
  6. 06性能与生命周期建议

适用场景

  1. 01排查异常的响应式行为
  2. 02避免组件和属性使用错误
  3. 03检查模板与表单逻辑
  4. 04改善 Vue 3 性能

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/uni-helper/skills --skill vue-best-practices

安装后在 Claude Code 中输入/vue-best-practices确认已加载。

包含的文件

除 SKILL.md 外,安装时一起下载的参考资料和脚本。

LICENSE.md
reference/
animation-class-based-technique.md
animation-key-for-rerender.md
animation-state-driven-technique.md
animation-transitiongroup-performance.md
async-component-error-handling.md
async-component-hydration-strategies.md
async-component-keepalive-ref-issue.md
async-component-loading-delay.md
async-component-suspense-control.md
async-component-vue-router.md
attrs-event-listener-merging.md
attrs-hyphenated-property-access.md
attrs-not-reactive.md
avoid-prop-drilling-use-provide-inject.md
checkbox-true-false-value-form-submission.md
cleanup-side-effects.md
click-events-on-components.md
component-events-dont-bubble.md
component-naming-conflicts.md
component-naming-pascalcase.md
component-ref-requires-defineexpose.md
composable-avoid-hidden-side-effects.md
composable-call-location-restrictions.md
composable-composition-pattern.md
composable-naming-return-pattern.md
composable-options-object-pattern.md
composable-readonly-state.md
composable-tovalue-inside-watcheffect.md
composable-vs-utility-functions.md

详细介绍

Vue 3 最佳实践、常见陷阱和性能优化。

响应性
计算属性
侦听器
组件
Props 和 Emits
模板
模板引用
表单与 v-model
事件与修饰符
生命周期
插槽
Provide/Inject
Attrs
Composables
Composition API
Directives
过渡
动画
KeepAlive
异步组件
渲染函数
Teleport
Suspense
TypeScript
SSR
性能
SFC(单文件组件)
插件
应用配置

评论

支持 Markdown