mcpField
V
vue-router-best-practices

vue-router-best-practices

github.com/vuejs-aiDevelopment3.2k15.3k installsUpdated 5d ago
Repository

About vue-router-best-practices

A Vue Router practice skill for developers building Vue applications. It organizes guidance around navigation guards, route lifecycle behavior, and production setup, with pointers to common pitfalls.

Key features

  1. 01Navigation guard patterns
  2. 02Route parameter and lifecycle guidance
  3. 03Cleanup of persistent event listeners
  4. 04Production SPA routing guidance

Use cases

  1. 01Debugging redirects or guard issues
  2. 02Handling navigation between route parameters
  3. 03Removing listeners after component unmount
  4. 04Setting up Vue Router for an SPA

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/vuejs-ai/skills --skill vue-router-best-practices

After installing, type/vue-router-best-practicesin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

reference/
router-beforeenter-no-param-trigger.md
router-beforerouteenter-no-this.md
router-guard-async-await-pattern.md
router-navigation-guard-infinite-loop.md
router-navigation-guard-next-deprecated.md
router-param-change-no-lifecycle.md
router-simple-routing-cleanup.md
router-use-vue-router-for-production.md

Details

From the project README

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

Navigation Guards
Route Lifecycle
Setup

Comments

Markdown supported