vue-router-best-practices
An agent skill by antfu, from antfu/skills. Tags: development, navigation, routing, validation, vue.
What it does
Vue Router 4 patterns, navigation guards, route params, and route-component lifecycle interactions.
Install
With the skills CLI, which installs into Claude Code, Codex, Cursor and other agents:
npx skills add antfu/skills --skill vue-router-best-practices
Or copy the skill folder into Claude Code's skills directory by hand (~/.claude/skills for every project, or .claude/skills inside one):
git clone --depth 1 https://github.com/antfu/skills
cp -r skills/skills/vue-router-best-practices ~/.claude/skills/vue-router-best-practices
Safety box score
Not rated yet. A safety box score grades what a skill and its scripts can reach on the machine of whoever installs it, across eight categories from shell execution to secrets access. Anyone can request one from this page; it is saved for everyone. How the score works.
Source
- Repository
- antfu/skills (all skills from this repository)
- Path
- skills/vue-router-best-practices/SKILL.md
- Branch
- main
- Updated
- 2026-09-22
Related skills
- nuxt — Nuxt full-stack Vue framework with SSR, auto-imports, and file-based routing.
- vue-best-practices — MUST be used for Vue.js tasks. Strongly recommends Composition API with `<script setup>` and TypeScript as the standard approach. Covers Vue 3, SSR, Volar.
- expo-router — Framework (OSS). Navigation and routing for Expo Router.
- principle-separate-before-serializing-shared-state — Apply when concurrent actors might write to the same file, branch, key, or state object.
- principle-type-system-discipline — Apply when designing types, reviewing a function signature, or writing code in any statically-typed language.
- seo-programmatic — Programmatic SEO planning and analysis for pages generated at scale from data sources.