vue-best-practices
Skill by vuejs-ai
Guides AI assistants through Vue.js tasks using Vue 3, the Composition API, script setup and TypeScript as the default approach. Built for developers working on Vue components and projects.
Install vue-best-practices
Built from the published package, never by AI.
git clone --depth 1 https://github.com/vuejs-ai/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/vue-best-practices ~/.claude/skills/vue-best-practicesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/vuejs-ai/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/vue-best-practices ~/.gemini/antigravity-cli/skills/vue-best-practicesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Vue Best Practices is an instruction set for AI assistants working on Vue.js tasks. It sets Vue 3, the Composition API, and script setup with TypeScript as the default stack. It asks the assistant to read core references on reactivity, SFC structure, component data flow and composables before coding. It also covers keeping state minimal, deriving other values with computed, and planning component boundaries.
The workflow runs in a fixed order. The assistant confirms the architecture, applies the core foundations, and loads optional references such as slots, Teleport or state management only when requirements call for them. Performance work comes after behavior is correct. A final self-check covers requirements, state ownership and refactor behavior. The skill is for developers building or refactoring Vue projects.
Written from the project's SKILL.md and checked against it.
What it can do
- Architecture checkConfirms the default stack of Vue 3, Composition API and script setup with TypeScript before coding.
- Reactivity guidanceKeeps source state minimal with ref or reactive and derives other values with computed.
- SFC structureOrders script, template and style sections and applies template safety rules.
- Component boundariesPlans responsibilities, state owners and contracts for non-trivial features and refactors.
- Data flow rulesApplies props down and events up, with typed defineProps, defineEmits and InjectionKey.
- Composable designSplits stateful behavior into focused composables and separates coordinators from public facades.
- Optional featuresPoints to references for slots, KeepAlive, Teleport, Suspense, transitions and plugins when needed.
- Performance passCovers list virtualization and v-once or v-memo after core behavior is verified.
- Final self-checkChecks behavior, reactivity, boundaries, state lifetime and refactor behavior before finishing.
Try asking
- Refactor this Vue component to use script setup with TypeScript
- Plan component boundaries for a new Vue settings page
- Review my Vue composable for state ownership and cleanup
Good to know
- Options API is used only when the project explicitly requires it.
- Optional skills for Options API and JSX are loaded only if available.
- Performance changes should wait until functionality is complete and verified.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/vue-best-practices/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md10 KB -
references/animation-class-based-technique.md5 KB -
references/animation-state-driven-technique.md6 KB -
references/component-async.md2 KB -
references/component-data-flow.md10 KB
Show all 23 files
-
references/component-fallthrough-attrs.md4 KB -
references/component-keep-alive.md3 KB -
references/component-slots.md4 KB -
references/component-suspense.md5 KB -
references/component-teleport.md3 KB -
references/component-transition-group.md3 KB -
references/component-transition.md3 KB -
references/composables.md8 KB -
references/directives.md4 KB -
references/perf-avoid-component-abstraction-in-lists.md5 KB -
references/perf-v-once-v-memo-directives.md6 KB -
references/perf-virtualize-large-lists.md5 KB -
references/plugins.md4 KB -
references/reactivity.md8 KB -
references/render-functions.md4 KB -
references/sfc.md6 KB -
references/state-management.md3 KB -
references/updated-hook-performance.md5 KB
Alternatives to vue-best-practices
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
vue-best-practices: common questions
Does this skill require the Options API?
No. The source makes Composition API with script setup and TypeScript the default. Options API is used only when the project explicitly requires it.
Which references does the skill always load?
The source lists four core references for every Vue task: reactivity, sfc, component-data-flow and composables. Other references load only when a requirement calls for them.
When should performance work happen?
The source says performance optimization is a post-functionality pass. It should not start until core behavior is implemented and verified.
How do I install vue-best-practices?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is vue-best-practices free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is vue-best-practices safe to use?
It scores 89 of 100. Grades: maintenance B, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to vue-best-practices?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
