This skill may not reflect the latest upstream change
Next.js Releases update on 2026-11-09 may affect this skill Last checked Nov 25, 2026.
vue-router-best-practices
Vue Router 4 patterns, navigation guards, route params, and route-component lifecycle interactions.
Install this skill
No account required. Pick your tool, or use the command that detects it for you.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install vue-skills-vue-router-best-practicesManual setup by platform
Claude Code
~/.claude/skills/vue-skills-vue-router-best-practices/SKILL.md
Signing
SignedSLSA L2- Signed by
- skills-hub.ai distributor
- Method
- Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
- Key
- skills-hub-ed25519-2026-11
- Signed
Instructions
Vue Router best practices, common gotchas, and navigation patterns.
Navigation Guards
- Navigating between same route with different params β See router-beforeenter-no-param-trigger
- Accessing component instance in beforeRouteEnter guard β See router-beforerouteenter-no-this
- Navigation guard making API calls without awaiting β See router-guard-async-await-pattern
- Users trapped in infinite redirect loops β See router-navigation-guard-infinite-loop
- Navigation guard using deprecated next() function β See router-navigation-guard-next-deprecated
Route Lifecycle
- Stale data when navigating between same route β See router-param-change-no-lifecycle
- Event listeners persisting after component unmounts β See router-simple-routing-cleanup
Setup
- Building production single-page application β See router-use-vue-router-for-production
Security
Reviews (0)
Related skills
Browse all βMore from Vue.js AI Skills
View source βMore Build skills
Browse category βFrequently asked questions about vue-router-best-practices
What does the vue-router-best-practices skill do?
Vue Router 4 patterns, navigation guards, route params, and route-component lifecycle interactions. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the vue-router-best-practices skill?
Run `npx @skills-hub-ai/cli install vue-skills-vue-router-best-practices` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/vue-skills-vue-router-best-practices/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does vue-router-best-practices work with?
vue-router-best-practices runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the vue-router-best-practices skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use vue-router-best-practices after installing it?
In Claude Code, type `/vue-skills-vue-router-best-practices` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the vue-router-best-practices skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.