본문으로 건너뛰기
cccskills
무료GitHub에 공개

mk-vue-best-practices

Deep Vue 3 best-practices review and authoring workflow: built-in components (Teleport, Suspense, KeepAlive, Transition), animations, slots, directives, render fns, perf pass. Complements mk:vue.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

실행 점수 미검증

설치 방법 보기

포함된 파일(23)

  • SKILL.md8.0 KB
  • references/animation-class-based.md3.7 KB
  • references/animation-state-driven.md4.6 KB
  • references/async-components.md2.9 KB
  • references/component-data-flow-advanced.md4.5 KB
  • references/component-fallthrough-attrs.md3.3 KB
  • references/component-keep-alive.md3.0 KB
  • references/component-slots.md4.0 KB
  • references/component-suspense.md4.5 KB
  • references/component-teleport.md2.9 KB
  • references/component-transition-group.md3.9 KB
  • references/component-transition.md2.9 KB
  • references/composables-organization.md5.8 KB
  • references/custom-directives.md3.9 KB
  • references/perf-avoid-abstraction-in-lists.md4.1 KB
  • references/perf-updated-hook.md4.2 KB
  • references/perf-v-once-v-memo.md5.5 KB
  • references/perf-virtualize-large-lists.md3.8 KB
  • references/plugins.md3.3 KB
  • references/reactivity-advanced.md5.0 KB
  • references/render-functions.md3.7 KB
  • references/sfc-structure-and-templates.md5.3 KB
  • SOURCE.md1.6 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Vue 3 Best Practices

Deep, ordered Vue 3 best-practices workflow plus a review/recommendations mode. Complements mk:vue: mk:vue is the everyday Composition API quick-reference (auto-activates on .vue); this skill is the opinionated workflow + best-practices reviewer you invoke deliberately.

When to Use

Invoke-only — this skill does NOT auto-activate on .vue. Activate it for:

  • the vue-best-practices skill [concern] (explicit).
  • "review my Vue code", "Vue best practices", "recommend Vue improvements".
  • A non-trivial Vue feature where the full ordered workflow earns its cost (built-in components, animations, optional features, a performance pass).

Do NOT invoke for: everyday Vue authoring quick-reference (mk:vue), generic diff/PR structural review (mk:review), TypeScript fundamentals (mk:typescript), React (mk:react-patterns), Angular (mk:angular), visual design (mk:frontend-design), testing (mk:testing / mk:qa; Vue test design/review → mk:vue-testing-best-practices).

Foundations Live in mk:vue

This skill does not restate the basics. For day-to-day foundations, read mk:vue:

  • ref/reactive/computed/watch, toRefs, destructuring → mk:vue ../vue/references/reactivity-performance.md
  • props / emits / defineModel / naming / basic slots → mk:vue ../vue/references/components.md
  • composable naming, default export, state scope, shared→Pinia → mk:vue ../vue/references/composables.md
  • Pinia / Pinia Colada / file-based routing → mk:vue references/{state-pinia,pinia-colada*,routing-pages}.md

This skill adds the deltas and the topics mk:vue does not cover (below).

Workflow

Follow in order unless the user asks otherwise.

1. Confirm architecture (required)

  • Default stack: Vue 3 + Composition API + <script setup lang="ts">.
  • Options API or JSX only if the project explicitly uses them.
  • For a non-trivial feature, sketch a brief component map first: one-sentence responsibility per component, props/emits contract per child, feature-folder layout (components/<feature>/..., composables/use<Feature>.ts). Keep entry/root and route-view components as thin composition surfaces.

2. Apply foundation deltas (required)

Read these for the guidance beyond mk:vue basics:

  • Reactivity deltas (shallowRef/shallowReactive, computed purity, class/style computed, watch immediate, async cleanup) → reactivity-advanced
  • Data-flow deltas (provide/inject + InjectionKey, imperative refs via defineExpose + useTemplateRef, event re-emit) → component-data-flow-advanced
  • SFC structure, scoped-style performance, template safety (v-html, v-for+v-if, v-if vs v-show) → sfc-structure-and-templates
  • Composable organization (compose from primitives, options object, readonly + actions, utilities-not-composables, organize by feature) → composables-organization

3. Optional features — load only when the requirement exists

Do not add these by default. Read the matching reference when the need is real.

Built-in components

Teleport/Suspense authoring (when to use, API, fallback) is owned here; Teleport/Suspense test-setup (stubs, flushPromises, attachTo, mountSuspense) → mk:vue-testing-best-practices.

Animation techniques (pick the simplest that matches the motion)

Less-common features (explicit product/technical need only)

State management is owned by mk:vue (Pinia + Pinia Colada) — route there, not here.

4. Performance pass — after behavior is correct

Optimize only once core behavior is implemented and verified. Measure with Vue DevTools before changing anything.

5. Final self-check

  • Core behavior matches requirements; all relevant deltas applied.
  • Reactivity is minimal and predictable; derive with computed.
  • SFC structure + template safety rules followed.
  • Components are focused; entry/root/view components stay thin composition surfaces.
  • Data-flow contracts are explicit and typed.
  • Composables used where reuse/complexity justifies them.
  • Optional features used only when required.
  • Performance changes applied only after functionality was complete.

Review & Recommendations Mode

When asked to review or recommend, walk the section-5 self-check as a rubric against the target code and emit a structured findings list — one row per finding:

[severity: high|med|low] · path:line · issue · fix
  • Ground each finding in a specific best-practice from this skill or a mk:vue reference.
  • Defer foundation-basics findings to mk:vue; defer non-Vue structural/security findings to mk:review / the project's security rules (do not duplicate them here).
  • End with a one-line verdict: ready / changes recommended / changes required.

Gotchas

  • (grow this from observed failures)
  • Reactivity foundation belongs to mk:vue. Follow the repository convention first, then mk:vue's ref() guidance for primitives unless the advanced reference documents a task-specific reason to use shallowRef().
  • Cross-skill gotchas (destructuring reactive(), storeToRefs, defineExpose, :slotted(), watchEffect cleanup, SSR store hydration, Pinia Colada keys) live in mk:vue — read them there rather than duplicating.

Anti-Patterns

Gap-topic anti-patterns only (foundation anti-patterns live in mk:vue):

Don'tDo Instead
Reach for a render function when a template worksKeep templates; render functions only when templates cannot express it
Add <Transition> for non-enter/leave motionUse a class-based or state-driven animation technique
Optimize (v-memo/virtualization) before behavior is correctPerformance pass last; measure with DevTools first
Hoist a ref to module scope for shared statePinia (global) or Pinia Colada (data) — see mk:vue
Install app-wide behavior ad hoc in componentsA plugin when behavior is genuinely app-wide

Provenance

Ported from an upstream Vue best-practices skill — see SOURCE.md for the upstream path and pinned commit (for future re-syncs).

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Use this skill to generate well-branded interfaces and assets for MeowKit (AI Agent Toolkit for Claude Code), either for production or throwaway prototypes/mocks/etc. Contains essential design guidelines, colors, type, fonts, assets, and UI kit components for prototyping.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ngocsangyem/MeowKit152026년 7월 28일 업데이트

mk-advise

무료

Turn a raw idea into ONE honest recommendation: interview one question at a time until confirmed, then give a verdict with trade-offs and a checklist. Not for options or debate.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ngocsangyem/MeowKit152026년 7월 28일 업데이트

Browser automation CLI for agents: navigate, click/fill, screenshot, extract data, test apps, Electron/Slack, cloud browsers. NOT for the user's real Chrome profile/cookies (mk:chrome-profile).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ngocsangyem/MeowKit152026년 7월 28일 업데이트

Detects the right agent and complexity tier at Phase 0 orient; runs first in every workflow. NOT for runtime agent routing inside a single skill.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ngocsangyem/MeowKit152026년 7월 28일 업데이트

Angular v20+ patterns: components, signals, services, forms, routing, HTTP, testing, SSR. Auto-activates on .ts files in Angular projects (angular.json detected).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ngocsangyem/MeowKit152026년 7월 28일 업데이트

Design and review durable REST, GraphQL, RPC, or event API contracts: shape, compatibility, pagination, error semantics. Discovers existing consumers first. Not implementation, schema, or release.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ngocsangyem/MeowKit152026년 7월 28일 업데이트

ngocsangyem의 스킬 모두 보기

이 스킬의 문제 신고