hyf0 avatar

Vue Best Practices

Vue-best-practices provides a standardized workflow and instruction set for Vue 3 development, emphasizing Composition API with `<script setup>` and TypeScript as the default approach while supporting Options API and JSX when explicitly required by projects. It covers core principles like predictable state management, explicit data flow, component-focused design, and includes required references on reactivity, single-file components, data flow, and composables that developers must apply to every Vue task. The skill is designed for developers working with Vue, .vue files, Vue Router, Pinia, or Vite to ensure consistent, maintainable code architecture from the start.

install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
7
skills.sh installs
24.5K
GitHub stars
2.7K
last updated
Jul 14, 2026

Install

$ npx -y skills add hyf0/vue-skills --skill vue-best-practices --agent claude-code

Installs into .claude/skills of the current project.

Files

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.
  • Decompose by responsibility: keep each implementation focused and the contracts between implementations explicit.
  • 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)

Sponsors

Details

Repository
github.com/hyf0/vue-skills
Categories
Frontend Development, Backend & APIs

More from hyf0/vue-skills

All 11
1expo avatarexpo-domexpo/skillsFramework (OSS). Use Expo DOM components to run web code in a webview on native and as-is on web. Migrate web code to native incrementally. For the end-to-end m23.9Kskills.sh installs
2angular avatarangular-new-appangular/skillsCreates a new Angular app using the Angular CLI. This skill should be used whenever a user wants to create a new Angular application and contains important guid20.6Kskills.sh installs
3astrolicious avatarastroastrolicious/agent-skillsastro19.3Kskills.sh installs
4vuejs-ai avatarvue-options-api-best-practicesvuejs-ai/skillsVue 3 Options API style (data(), methods, this context). Each reference shows Options API solution only.12.4Kskills.sh installs
5affaan-m avatarfrontend-patternsaffaan-m/everything-claude-codefrontend patterns8.6Kskills.sh installs
6sickn33 avatarnextjs-best-practicessickn33/antigravity-awesome-skillsnextjs best practices6.7Kskills.sh installs