Vue Router Best Practices
Vue Router 4 patterns, navigation guards, route params, and route-component lifecycle interactions.
- Type
- Skill
- Author
- vuejs-ai
- Category
- Frontend
- GitHub stars
- 3.2K
- Installs
- 15.1K
- Last updated
- October 23, 2026
Install
npx skills add https://github.com/vuejs-ai/skills --skill vue-router-best-practicesUse cases
- Structure routing in a Vue 3 app using Vue Router 4 conventions.
- Debug navigation guard behavior that blocks or redirects unexpectedly.
- Check how route components interact with the component lifecycle.
Frequently Asked Questions
Which Vue Router version does this skill cover?
It documents Vue Router 4 patterns, so it targets Vue 3 projects rather than Vue 2 routing setups.
Does it cover navigation guards?
Yes, navigation guards are one of the main topics, alongside route params and route-component lifecycle interactions.
Will it scaffold a router for me?
No, the skill focuses on conventions and patterns rather than setup scaffolding.
About this skill
Documents Vue Router 4 patterns covering navigation guards, route params, and how route components interact with the component lifecycle. Useful when structuring routing in a Vue 3 app or debugging guard behavior. Focused on conventions rather than setup scaffolding.
Summary written with AI assistance from the project's public description.
Categories
More from vuejs-ai
Vue Best Practices
MUST be used for Vue.js tasks. Strongly recommends Composition API with `<script setup>` and TypeScript as the standard approach. Covers Vue 3, SSR...
by vuejs-ai
Vue Debug Guides
Vue 3 debugging and error handling for runtime errors, warnings, async failures, and SSR/hydration issues. Use when diagnosing or fixing Vue issues.
by vuejs-ai
Vue Pinia Best Practices
Pinia stores, state management patterns, store setup, and reactivity with stores.
by vuejs-ai
Create Adaptable Composable
Create a library-grade Vue composable that accepts maybe-reactive inputs (MaybeRef / MaybeRefOrGetter) so callers can pass a plain value, ref, or g...
by vuejs-ai
Similar Skills
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Ai Video Generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0,...
by inference-sh
Ai Image Generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FL...
by inference-sh