Skip to content
Frontend
Skill

/vue-router-best-practices

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

From plugin
skills
3.4k8 skills

Claude Code

$ npx -y skills add vuejs-ai/skills --skill vue-router-best-practices --agent claude-code

SKILL.md

vue-router-best-practices.SKILL.md
name: vue-router-best-practices
description: "Vue Router 4 patterns, navigation guards, route params, and route-component lifecycle interactions."
version: 1.0.0
license: MIT
author: github.com/vuejs-ai

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

Navigation Guards

  • Navigating between same route with different params โ†’ See [router-beforeenter-no-param-trigger](reference/router-beforeenter-no-param-trigger.md)
  • Accessing component instance in beforeRouteEnter guard โ†’ See [router-beforerouteenter-no-this](reference/router-beforerouteenter-no-this.md)
  • Navigation guard making API calls without awaiting โ†’ See [router-guard-async-await-pattern](reference/router-guard-async-await-pattern.md)
  • Users trapped in infinite redirect loops โ†’ See [router-navigation-guard-infinite-loop](reference/router-navigation-guard-infinite-loop.md)
  • Navigation guard using deprecated next() function โ†’ See [router-navigation-guard-next-deprecated](reference/router-navigation-guard-next-deprecated.md)

Route Lifecycle

  • Stale data when navigating between same route โ†’ See [router-param-change-no-lifecycle](reference/router-param-change-no-lifecycle.md)
  • Event listeners persisting after component unmounts โ†’ See [router-simple-routing-cleanup](reference/router-simple-routing-cleanup.md)

Setup

  • Building production single-page application โ†’ See [router-use-vue-router-for-production](reference/router-use-vue-router-for-production.md)
Read more
@vuejs-ai
Ships withskills

Agent skills for Vue 3 development. ๐Ÿšง Early Experiment / Community Project This repository is an early experiment in creating specialized skills for AI agents to enhance Vue 3 development.

Stars on GitHub

Momentum

stars in total
3.4k
Star history of vuejs-ai/skills on GitHub, a chart by star-history.com

Other skills on skills.

create-adaptable-composable

create-adaptable-compoโ€ฆ

Create a library-grade Vue composable that accepts maybe-reactive inputs (MaybeRef / MaybeRefOrGetter) so callers can pass aโ€ฆ

@vuejs-ai@vuejs-aiInstall Skill
vue-best-practices

vue-best-practices

MUST be used for Vue.js tasks. Strongly recommends Composition API with `<script setup>` and TypeScript as the standard approach.โ€ฆ

@vuejs-ai@vuejs-aiInstall Skill
vue-debug-guides

vue-debug-guides

Vue 3 debugging and error handling for runtime errors, warnings, async failures, and SSR/hydration issues. Use when diagnosing orโ€ฆ

@vuejs-ai@vuejs-aiInstall Skill

More skills from other plugins.

next-bundle-optimizer
Auto-invoked

next-bundle-optimizer

Audit and reduce Next.js browser initial-load work. Use for slow route startup, oversized client bundles, duplicate browserโ€ฆ

nextjs12d143k
@vercel@vercelInstall Skill
migrate-radix-to-base

migrate-radix-to-base

Migrates React projects and components from Radix UI to Base UI. Use when asked to migrate from radix, move to base-ui, convertโ€ฆ

ui3w127k
@shadcn-ui@shadcn-uiInstall Skill
chrome-release-cls

chrome-release-cls

Given a Chrome Releases blog post URL (chromereleases.googleblog.com), extract every CVE/bug and find the underlying Gerrit CLโ€ฆ

electron12d124k
@electron@electronInstall Skill
taste-skill
Auto-invoked

taste-skill

tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (Oneโ€ฆ

Questions about vue-router-best-practices.

Which coding agents can use vue-router-best-practices?
vue-router-best-practices installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.