vue-best-practices
Vue 3 best practices, common gotchas, and performance optimization.
Reactivity
- Accessing ref() values without .value in scripts → See ref-value-access
- Destructuring reactive() objects, losing reactivity → See reactive-destructuring
- Choosing between ref() and reactive() for state → See prefer-ref-over-reactive
- Accessing refs inside arrays and collections → See refs-in-collections-need-value
- Large objects or external library data overhead → See shallow-ref-for-performance
- Using nested refs in template expressions → See template-ref-unwrapping-top-level
- Comparing reactive objects with === operator → See reactivity-proxy-identity-hazard
- Library instances breaking in reactive state → See reactivity-markraw-for-non-reactive
- Expecting watchers to fire for each state change → See reactivity-same-tick-batching
- Integrating external state management libraries → See reactivity-external-state-integration
- Deriving state with watchEffect instead of computed → See reactivity-computed-over-watcheffect-mutations
More from sltc-dev/core-foundry
universal-code-reviewer
自动进化型 CR 专家。智能检测项目类型并引用对应的 Skill 规则(如 vue-best-practices)。维护项目"潜规则"一致性。
12github-pr-assistant
专业的 GitHub PR 助手。专注于辅助生成高质量的 Pull Request 标题、描述,并进行代码审查检查,确保符合最佳实践。
5project-guide-doc
项目开发指南文档生成器。自动分析项目结构、技术栈和常用命令,生成全面的 DEVELOPMENT_GUIDE.md 文档。适用于新成员入职、项目文档维护和团队知识管理。触发场景包括:"创建项目文档"、"生成开发指南"、"写项目README"、"项目怎么开始"、"新人如何上手"等。
5vercel-react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
5change-spec-planner
将杂乱的功能需求、issues、bug 描述或新项目想法整理成规范的变更施工图 Markdown,并在写代码前固化到项目内。Use when a request needs to be clarified before implementation, when a code task must create or update a change spec in docs/changes, or when the work must be classified as lite, standard, or major for review and scope control.
1