agentleFS
KIMJINWOO4KIMJINWOO4/vue-skills/skills/vue-performance/SKILL.md

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.

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
  1. Very specific:

    Do not sprinkle v-memo everywhere — it's for the rare proven-hot v-for case and adds its own comparison cost.

    line 32
  2. Very specific:

    Do not switch working code to markRaw/shallowReactive speculatively.

    line 33
  3. Distinctive:

    Do not "optimize" without a before/after number from the profiler or bundle report.

    line 34

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

SymptomLikely areaReference
Slow first load, big JS downloadBundlebundle
Slow interaction / janky typing / laggy listsRenderingrendering
Tab slows down over time, crashes after long useMemory leaksmemory-leaks
"It feels slow" (unquantified)Measure firstdiagnose

Quick wins checklist (apply before deep work)

  1. shallowRef for large objects/arrays that are replaced, not mutated (API responses).
  2. v-for with stable :keys; computed for filtered lists (never method calls in template).
  3. Virtualize lists > ~200 rows (useVirtualList / vue-virtual-scroller).
  4. Route-level code splitting (() => import(...)) — free with file-based routing.
  5. Heavy below-the-fold widgets → defineAsyncComponent (+ Nuxt: lazy hydration).
  6. Props stability: don't create fresh objects/arrays/closures inline in hot templates.
  7. Watchers: never deep: true on large trees when a getter on the specific field works.
  8. Vue 3.6+: flip profiler-identified hot components to Vapor Mode (see vue skill → vue-36-vapor).

Anti-rules (do NOT)

  • Do not sprinkle v-memo everywhere — it's for the rare proven-hot v-for case and adds its own comparison cost.
  • Do not switch working code to markRaw/shallowReactive speculatively; each removes reactivity guarantees someone else relies on.
  • Do not "optimize" without a before/after number from the profiler or bundle report.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.