vue-best-practices
Skill43 starsChanged 5 months agoMITView on GitHub
Vue.js performance optimization guidelines for building fast, maintainable applications. This skill should be used when writing, reviewing, or refactoring Vue.js code to ensure optimal performance patterns. Triggers on tasks involving Vue components, reactivity, Composition API, state management, or performance improvements.
18 other projects use a version of this.
Adopted by
Most recently taken up by
- onmax/nuxt-skillstheir own version, first seen Sep 18, 2026
- DingGao1124/skillstheir own version, first seen Aug 26, 2026
- konnga/skill-buddytheir own version, first seen Aug 12, 2026
- ElyzeSolutions/skillstheir own version, first seen Aug 6, 2026
- hangineer/Hannah-Claude-Code-Toolkittheir own version, first seen Jun 25, 2026
- reformovo/skillstheir own version, first seen Jun 24, 2026
Other versions18 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 18
- vuejs-ai/skills★ 2.9ksame name
- onmax/nuxt-skills★ 717same name
- jasonjgardner/blockbench-mcp-plugin★ 482same name
- JetBrains/skills★ 360same name
- konnga/skill-buddy★ 114same name
- uni-helper/skills★ 107same name
- skills-club/skills-live★ 13same name
- FrontToEnd/agent-skills★ 9same name
- GPTtang/skill-atlas★ 4same name
- DingGao1124/skills★ 2same name
8 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- skills/nuxt-agent-ready-best-practices/AGENTS.mdAGENTS.md
- skills/nuxt-best-practices/AGENTS.mdAGENTS.md
- skills/nuxt-geo-best-practices/AGENTS.mdAGENTS.md
- skills/nuxt-seo-best-practices/AGENTS.mdAGENTS.md
- skills/vue-best-practices/AGENTS.mdAGENTS.md
- nuxt-agent-ready-best-practicesSkill
- nuxt-best-practicesSkill
- nuxt-geo-best-practicesSkill
- nuxt-seo-best-practicesSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 12 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 72
Read individual rule files for detailed explanations and code examples:
“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Vue Best Practices
Comprehensive performance optimization guide for Vue.js applications (verified against the official Vue 3.5+ docs). Contains 18 rules across 5 categories, prioritized by impact to guide automated refactoring and code generation.
When to Apply
Reference these guidelines when:
- Writing new Vue components
- Implementing reactive state and computed properties
- Reviewing code for performance issues
- Refactoring existing Vue code
- Optimizing rendering and re-renders
- Working with Composition API or Options API
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
| 1 | Reactivity Fundamentals | CRITICAL | reactivity- |
| 2 | Component Performance | CRITICAL | component- |
| 3 | Computed & Watchers | HIGH | computed- / watch- |
| 4 | Template Optimization | MEDIUM-HIGH | template- |
| 5 | Composition API Patterns | MEDIUM | composable- |
Quick Reference
1. Reactivity Fundamentals (CRITICAL)
reactivity-ref-vs-reactive- Prefer ref() as the primary reactivity APIreactivity-avoid-destructure- Don't destructure reactive objectsreactivity-toRefs- Use toRefs()/getters when destructuring is neededreactivity-shallowRef- Use shallowRef() for large non-reactive datareactivity-raw-values- Treat toRaw() as a narrow escape hatch
2. Component Performance (CRITICAL)
component-async- Use defineAsyncComponent for heavy componentscomponent-keep-alive- Cache component state with KeepAlivecomponent-v-memo- v-memo micro-optimization for 1000+ item listscomponent-v-once- Use v-once for static contentcomponent-functional- Keep stateless components simple
3. Computed & Watchers (HIGH)
computed-cache- Use computed() for derived values, not methodscomputed-dependencies- Understand fine-grained per-property dependency trackingwatch-deep-avoid- Avoid deep watchers on large objects
4. Template Optimization (MEDIUM-HIGH)
template-v-show-vs-if- v-show for frequent toggles, v-if for raretemplate-key-attribute- Always use unique primitive keys in v-fortemplate-avoid-v-if-v-for- Never use v-if and v-for on same element
5. Composition API Patterns (MEDIUM)
composable-single-responsibility- One concern per composablecomposable-return-refs- Return refs, not reactive objects
How to Use
Read individual rule files for detailed explanations and code examples:
rules/reactivity-ref-vs-reactive.md
rules/component-v-memo.md
rules/_sections.mdEach rule file contains:
- Brief explanation of why it matters
- Incorrect code example with explanation
- Correct code example with explanation
- Additional context and references
Full Compiled Document
For the complete guide with all rules expanded: AGENTS.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

