Catalog
vuejs-ai/vue-router-best-practices

vuejs-ai

vue-router-best-practices

Vue Router 4 patterns, navigation guards, route params, and route-component lifecycle interactions.

global
New~341
v1.0Saved Jul 11, 2026

Vue Router best practices, common gotchas, and navigation patterns.

Navigation Guards

Route Lifecycle

Setup

Files9
9 files · 41.4 KB

Select a file to preview

Overall Score

88/100

Grade

A

Excellent

Safety

95

Quality

87

Clarity

86

Completeness

82

Summary

This skill provides documentation and patterns for Vue Router 4 best practices, covering navigation guards, route lifecycle interactions, and common gotchas. It includes 8 reference guides explaining async guard patterns, parameter handling, deprecated syntax, infinite loops, and when to use Vue Router. The skill is read-only, purely informational, and scoped to Vue 3 with Vue Router 4 applications.

Detected Capabilities

read markdown filesdocument reference patternsprovide code examplesexplain lifecycle interactions

Trigger Keywords

Phrases that MCP clients use to match this skill to user intent.

vue router paramsnavigation guardsroute lifecycleasync navigationredirect loopsguard deprecationdata fetching patternsroute guards

Referenced Domains

External domains referenced in skill content, detected by static analysis.

github.comrouter.vuejs.orgvuejs.orgvueschool.io

Use Cases

  • navigate between routes with param changes
  • implement authentication guards in Vue apps
  • debug navigation guard infinite loops
  • handle async data fetching in navigation
  • prevent memory leaks in route transitions
  • migrate from deprecated next() syntax
  • design route-based data loading patterns
  • fix stale component data when reusing routes

Quality Notes

  • All 8 reference files are present and well-organized
  • Each guide clearly documents the problem, impact, and solution with code examples
  • Task checklists provide actionable guidance for developers
  • Comparison tables help clarify different guard types and navigation scenarios
  • Composition API and Options API patterns shown for each guide
  • Real-world scenarios (infinite loops, stale data) covered with debugging approaches
  • Links to official Vue Router documentation provided for reference
  • Documentation uses consistent structure: title, impact, problem, solutions, key points
  • Examples progress from wrong patterns to correct implementations
  • Includes alternative solutions where appropriate (e.g., three approaches to param change handling)
Model: claude-haiku-4-5-20251001Analyzed: Jul 11, 2026

Reviews

Add this skill to your library to leave a review.

No reviews yet

Be the first to share your experience.

Add vuejs-ai/vue-router-best-practices to your library

Command Palette

Search for a command to run...