mcpField
V
vue-router-best-practices

vue-router-best-practices

github.com/hairyfDevelopment26100 installsUpdated 4w ago
Repository

About vue-router-best-practices

A Vue Router skill for developers seeking practical guidance on navigation patterns and common pitfalls. It covers navigation guards, route lifecycle behavior, and production SPA setup.

Key features

  1. 01Navigation guard patterns
  2. 02Async guard handling
  3. 03Redirect loop troubleshooting
  4. 04Route parameter lifecycle
  5. 05Cleanup on component unmount
  6. 06Production SPA setup

Use cases

  1. 01Handle navigation between routes with changing parameters
  2. 02Prevent guard-related redirect loops
  3. 03Clean up listeners when routes unmount

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/hairyf/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.

LICENSE.md
SYNC.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