This skill gathers Vue Router 4 gotchas for an agent to apply. Its SKILL.md has three groups, Navigation Guards, Route Lifecycle and Setup, with one reference per entry.
Guard topics include beforeEnter not firing on param changes, no this in beforeRouteEnter, awaiting async calls, infinite redirect loops and the deprecated next() function. Lifecycle topics cover stale data when the same route is reused with other params and listeners left behind after unmounting.
What You Get
- Five guard guides, from async await patterns to redirect loops
- Two lifecycle guides on param changes and listener cleanup
- A setup note on using Vue Router in production single-page apps
- Each entry phrased as a symptom with a linked reference
Common Use Cases
- Fixing a guard that never runs when only the route param changes
- Breaking an infinite redirect loop in a navigation guard
- Refreshing page data when a user moves between two items on the same route
What Makes It Unique
It covers the points where Vue Router differs from what a developer expects, such as param changes not mounting a component again. It is one of several focused Vue skills in the same repository.
Under The Hood
The agent loads a short Markdown index and reads the reference that matches the problem. There are no scripts. The skill does not tell the agent to fetch web pages, call APIs or run commands; the agent edits your router and component files when you ask for a fix.