vue-performance
Skill21 starsChanged 10 months agoMITView on GitHub
Diagnose and fix Vue 3 performance problems. Profiling workflow (DevTools, render tracking), rendering optimization (shallowRef, v-memo, virtual lists, Vapor Mode), bundle size (code splitting, async components, Rolldown analysis), memory leak hunting. Use when a Vue app is slow, janky, large, or leaking memory — or when reviewing for performance.
In this repository11 other files it gives its agents.
- antfuSkill
- build-toolingSkill
- designSkill
- find-skillsSkill
- nuxtSkill
- vitepressSkill
- vue-a11ySkill
- vue-clean-componentsSkill
- vue-dataSkill
- vue-formsSkill
- vueSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
Do not sprinkle v-memo everywhere — it's for the rare proven-hot v-for case and adds its own comparison cost.
- Very specific: line 33
Do not switch working code to markRaw/shallowReactive speculatively.
- Distinctive: line 34
Do not "optimize" without a before/after number from the profiler or bundle report.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Vue Performance Skill
Baseline 2026-07: Vue 3.5/3.6, Vite 8 (Rolldown). Rule zero: measure before optimizing — read diagnose first, then jump to the matching fix reference.
Triage Table
| Symptom | Likely area | Reference |
| Slow first load, big JS download | Bundle | bundle |
| Slow interaction / janky typing / laggy lists | Rendering | rendering |
| Tab slows down over time, crashes after long use | Memory leaks | memory-leaks |
| "It feels slow" (unquantified) | Measure first | diagnose |
Quick wins checklist (apply before deep work)
shallowReffor large objects/arrays that are replaced, not mutated (API responses).v-forwith stable:keys; computed for filtered lists (never method calls in template).- Virtualize lists > ~200 rows (
useVirtualList/vue-virtual-scroller). - Route-level code splitting (
() => import(...)) — free with file-based routing. - Heavy below-the-fold widgets →
defineAsyncComponent(+ Nuxt: lazy hydration). - Props stability: don't create fresh objects/arrays/closures inline in hot templates.
- Watchers: never
deep: trueon large trees when a getter on the specific field works. - Vue 3.6+: flip profiler-identified hot components to Vapor Mode (see
vueskill → vue-36-vapor).
Anti-rules (do NOT)
- Do not sprinkle
v-memoeverywhere — it's for the rare proven-hotv-forcase and adds its own comparison cost. - Do not switch working code to
markRaw/shallowReactivespeculatively; each removes reactivity guarantees someone else relies on. - Do not "optimize" without a before/after number from the profiler or bundle report.
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.

