Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/pymodel-vue-best-practices
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: frontend, backend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/vue-best-practices
What's inside
- Skill name
vue-best-practices- Description
- MUST be used for Vue.js tasks. Strongly recommends Composition API with `<script setup>` and TypeScript as the standard approach. Covers Vue 3, SSR, Volar, vue-tsc. Load for any Vue, .vue files, Vue Router, Pinia, or Vite with Vue work. ALWAYS use Composition API unless the project explicitly requires Options API.
- License
- MIT
- Metadata
- author: github.com/PyModel · version: 18.2.0
- Instructions
- 154 lines in SKILL.md · view on GitHub
Files (26)
- SKILL.md
- animation-class-based-technique.md · references/
- animation-state-driven-technique.md · references/
- component-async.md · references/
- component-data-flow.md · references/
- component-fallthrough-attrs.md · references/
- component-keep-alive.md · references/
- component-slots.md · references/
- component-suspense.md · references/
- component-teleport.md · references/
- component-transition-group.md · references/
- component-transition.md · references/
- composables.md · references/
- directives.md · references/
- perf-avoid-component-abstraction-in-lists.md · references/
- perf-v-once-v-memo-directives.md · references/
- perf-virtualize-large-lists.md · references/
- plugins.md · references/
- reactive-props-destructure.md · references/
- reactivity.md · references/
- render-functions.md · references/
- sfc.md · references/
- state-management.md · references/
- updated-hook-performance.md · references/
- vapor-mode.md · references/
- vue-3-5-helpers.md · references/
SKILL.md (first lines)
# Vue Best Practices Workflow Use this skill as an instruction set. Follow the workflow in order unless the user explicitly asks for a different order. ## Core Principles - **Keep state predictable:** one source of truth, derive everything else. - **Make data flow explicit:** Props down, Events up for most cases. - **Favor small, focused components:** easier to test, reuse, and maintain. - **Avoid unnecessary re-renders:** use computed properties and watchers wisely. - **Readability counts:** write clear, self-documenting code. ## 1) Confirm architecture before coding (required) - Default stack: Vue 3 + Composition API + `<script setup lang="ts">`. - If the project explicitly uses Options API, load `vue-options-api-best-practices` skill if available. - If the project explicitly uses JSX, load `vue-jsx-best-practices` skill if available. ### 1.1 Must-read core references (required) - Before implementing any Vue task, make sure to read and apply these core references: - `references/reactivity.md` - `references/sfc.md` - `references/component-data-flow.md` - `references/composables.md` - Keep these references in active working context for the entire task, not only when a specific issue appears. ### 1.2 Plan component boundaries before coding (required) Create a brief component map before implementation for any non-trivial feature. - Define each component's single responsibility in one sentence. - Keep entry/root and route-level view components as composition surfaces by default. - Move feature UI and feature logic out of entry/root/view components unless the task is intentionally a tiny single-file demo. - Define props/emits contracts for each child component in the map. - Prefer a feature folder layout (`components/<feature>/...`, `composables/use<Feature>.ts`) when adding more than one component. ## 2) Apply essential Vue foundations (required) These are essential, must-know foundations. Apply all of them in every Vue task using the core references already loaded in section `1.1`. ### Reactivity - Must-read reference from `1.1`: [reactivity](references/reactivity.md) - Keep source state minimal (`ref`/`reactive`), derive everything possible with `computed`. - Use watchers for side effects if needed. - Avoid recomputing expensive logic in templates. ### SFC structure and template safety - Must-read reference from `1.1`: [sfc](references/sfc.md) - Keep SFC sections in this order: `<script>` → `<template>` → `<style>`. - Keep SFC responsibilities focused; split large components. - Keep templates declarative; move branching/derivation to script. - Apply Vue template safety rules (`v-html`, list rendering, conditional rendering choices). ### Keep components focused Split a component when it has **more than one clear responsibility** (e.g. data orchestration + UI, or multiple independent UI sections). - Prefer **smaller components + composables** over one “mega component” - Move **UI sections** into child components (props in, events out). - Move **state/side effects** into composables (`useXxx()`). Apply objective split triggers. Split the component if **any** condition is true: - It owns both orchestration/state and substantial presentational markup for multiple sections. - It has 3+ distinct UI sections (for example: form, filters, list, footer/status). - A template block is repeated or could become reusable (item rows, cards, list entries). Entry/root and route view rule: - Keep entry/root and route view components thin: app shell/layout, provider wiring, and feature composition. - Do not place full feature implementations in entry/root/view components when those features contain independent parts. - For CRUD/list features (todo, table, catalog, inbox), split at least into: - feature container component - input/form component - list (and/or item) component - footer/actions or filter/status component - Allow a single-file implementation only for very small throwaway demos; if chosen, explicitly justify why splitting is unnecessary. ### Component data flow - Must-read reference from `1.1`: [component-data-flow](references/component-data-flow.md) - Use props down, events up as the primary model. - Use `v-model` only for true two-way component contracts. - Use provide/inject only for deep-tree dependencies or shared context. - Keep contracts explicit and typed with `defineProps`, `defineEmits`, and `InjectionKey` as needed. ### Composables - Must-read reference from `1.1`: [composables](references/composables.md) - Extract logic into composables when it is reused, stateful, or side-effect heavy. - Keep composable APIs small, typed, and predictable. - Separate feature logic from presentational components. ### Vue 3.5+ APIs (apply on Vue 3.5 or newer) - Prefer destructure defaults over `withDefaults()`; mind the getter-boundary rule -> [reactive-props-destructure](references/reactive-props-destructure.md) - Use 3.5 built-ins before hand-rolling: `useId`, `onWatcherCleanup`, `<Teleport defer>`, lazy hydration -> [vue-3-5-helpers](references/vue-3-5-helpers.md) ## 3) Consider optional features only when requirements call for them ### 3.1 Standard optional features Do not add these by default. Load the matching reference only when the requirement exists. - Slots: parent needs to control child content/layout -> [component-slots](references/component-slots.md) - Fallthrough attributes: wrapper/base components must forward attrs/events safely -> [component-fallthrough-attrs](references/component-fallthrough-attrs.md) - Built-in component `<KeepAlive>` for stateful view caching -> [component-keep-alive](references/component-keep-alive.md) - Built-in component `<Teleport>` for overlays/portals -> [component-teleport](references/component-teleport.md) - Built-in component `<Suspense>` for async subtree fallback boundaries -> [component-suspense](references/component-suspense.md) - Animation-related features: pick the simplest approach that matches the required motion behavior. - Built-in component `<Transition>` for enter/leave effects -> [transition](references/component-transition.md) - Built-in component `<TransitionGroup>` for animated list mutations -> [transition-group](references/component-transition-group.md) - Class-based animation for non-enter/leave effects -> [animation-class-based-technique](references/animation-class-based-technique.md) - State-driven animation for user-input-driven animation -> [animation-state-driven-technique](references/animation-state-driven-technique.md) ### 3.2 Less-common optional features
From PyModel/vue3-best-practices, MIT.
More from PyModel/vue3-best-practices
- 0.549score
vue-ai-apps
PyModel
Building AI/LLM and agent apps with Vue 3 and Nuxt: streaming chat UIs, the Vercel AI SDK (`ai` + `@ai-sdk/vue`), `useChat`, tool calling, structured output…
SkillBFreshness: B★ 1Claude Code +9 - 0.547score
vue-debug-guides
github.com/PyModel
Vue 3 debugging and error handling for runtime errors, warnings, async failures, and SSR/hydration issues.
SkillBFreshness: B★ 1Claude Code +9 - 0.544score
vue-router-best-practices
PyModel
Vue Router 4/5 patterns, navigation guards, route params, file-based routing, and route-component lifecycle interactions.
SkillBFreshness: B★ 1Claude Code +9 - 0.544score
vue-testing-best-practices
PyModel
Use for Vue.js testing.
SkillBFreshness: B★ 1Claude Code +9 - 0.539score
vue-pinia-best-practices
PyModel
Pinia stores, state management patterns, store setup, and reactivity with stores (Pinia 2-4: store API unchanged; v4 is ESM-only and requires…
SkillBFreshness: B★ 1Claude Code +9 - 0.536score
vue-options-api-best-practices
PyModel
Vue 3 Options API style (data(), methods, this context).
SkillBFreshness: B★ 1Claude Code +9 - 0.536score
vue-jsx-best-practices
PyModel
JSX syntax in Vue (e.g., class vs className, JSX plugin config).
SkillBFreshness: B★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Aug 16, 2026 (2 months ago)
- Last release
- Aug 16, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 18.2.0
- License
- MIT
- Repository
- github.com/PyModel/vue3-best-practices
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from github.com/PyModel
Cite this page
vue-best-practices skill. Agent Mart. https://agentmart.dev/skills/pymodel-vue-best-practices (last updated 2026-10-24)