CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

vue-router-best-practices

Use when adding routes or navigation guards with Vue Router 4 or 5: async guards without `next()`, redirect loops, components that keep stale data when only the params change, and `beforeRouteEnter` without `this`.

Quality

70%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

tessl review fix ./skills/vue-router-best-practices/SKILL.md

The canonical home for this skill is vue-router-best-practices in vuejs-ai/skills

SKILL.md
Quality
Evals
Security

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

Setup

Repository

onmax/nuxt-skills

Path

skills/vue-router-best-practices/SKILL.md

Last updated
First committed

Canonical home

vuejs-ai/skills
In sync

since Jul 28, 2026

Also appears in

JetBrains/skills
In sync

since Jul 17, 2026

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.