From partme-ai-full-stack-skills
Guides Vue Router v4 usage: route configuration, navigation, nested routes, guards, programmatic nav, lazy loading, and Vue 3 Composition API. For Vue 3 app routing tasks.
npx claudepluginhub partme-ai/full-stack-skills --plugin t2ui-skillsThis skill uses the workspace's default tool permissions.
Use this skill whenever the user wants to:
LICENSE.txtapi/composables.mdapi/history.mdapi/index.mdapi/navigation-failures.mdapi/route-location.mdapi/route-records.mdapi/router-link.mdapi/router-options.mdapi/router-view.mdapi/router.mdexamples/advanced/composition-api.mdexamples/advanced/data-fetching.mdexamples/advanced/dynamic-routing.mdexamples/advanced/extending-router-link.mdexamples/advanced/lazy-loading-routes.mdexamples/advanced/navigation-failures.mdexamples/advanced/navigation-guards.mdexamples/advanced/route-meta-fields.mdexamples/advanced/router-view-slot.mdCreates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Use this skill whenever the user wants to:
router.push(), router.replace(), etc.useRouter, useRoute)This skill is organized to match the Vue Router official documentation structure (https://router.vuejs.org/guide/, https://router.vuejs.org/api/). When working with Vue Router:
Identify the topic from the user's request:
examples/essentials/getting-started.mdexamples/essentials/dynamic-route-matching.mdexamples/essentials/routes-matching-syntax.mdexamples/essentials/named-routes.mdexamples/essentials/nested-routes.mdexamples/essentials/programmatic-navigation.mdexamples/essentials/named-views.mdexamples/essentials/redirect-alias.mdexamples/essentials/passing-props.mdexamples/essentials/different-history-modes.mdexamples/advanced/navigation-guards.mdexamples/advanced/route-meta-fields.mdexamples/advanced/data-fetching.mdexamples/advanced/composition-api.mdexamples/advanced/routerview-slot.mdexamples/advanced/transitions.mdexamples/advanced/scroll-behavior.mdexamples/advanced/lazy-loading-routes.mdexamples/advanced/typed-routes.mdexamples/advanced/extending-router-link.mdexamples/advanced/navigation-failures.mdexamples/advanced/dynamic-routing.mdLoad the appropriate example file from the examples/ directory:
Essentials (基础) - examples/essentials/:
examples/essentials/getting-started.md - Creating a router and basic setupexamples/essentials/dynamic-route-matching.md - Dynamic route matching with paramsexamples/essentials/routes-matching-syntax.md - Route matching syntax and patternsexamples/essentials/named-routes.md - Named routes and navigationexamples/essentials/nested-routes.md - Nested routes and RouterViewexamples/essentials/programmatic-navigation.md - Programmatic navigation with router methodsexamples/essentials/named-views.md - Named views and multiple RouterViewexamples/essentials/redirect-alias.md - Redirects and aliasesexamples/essentials/passing-props.md - Passing props to route componentsexamples/essentials/different-history-modes.md - Hash, HTML5 history, and memory modesAdvanced (高级) - examples/advanced/:
examples/advanced/navigation-guards.md - Global, per-route, and in-component guardsexamples/advanced/route-meta-fields.md - Route meta fields and custom dataexamples/advanced/data-fetching.md - Data fetching strategiesexamples/advanced/composition-api.md - Using useRouter() and useRoute() with Composition APIexamples/advanced/routerview-slot.md - RouterView slot propsexamples/advanced/transitions.md - Route transitions and animationsexamples/advanced/scroll-behavior.md - Scroll behavior configurationexamples/advanced/lazy-loading-routes.md - Lazy loading routes and code splittingexamples/advanced/typed-routes.md - TypeScript typed routesexamples/advanced/extending-router-link.md - Extending RouterLink componentexamples/advanced/navigation-failures.md - Handling navigation failuresexamples/advanced/dynamic-routing.md - Adding and removing routes dynamicallyFollow the specific instructions in that example file for syntax, structure, and best practices
Important Notes:
Reference API documentation in the api/ directory when needed:
api/router.md - Router instance API (createRouter, addRoute, removeRoute, etc.)api/route-records.md - Route record types and propertiesapi/useRouter-useRoute.md - Composition API functions (useRouter, useRoute)api/navigation-helpers.md - Navigation helper functionsapi/router-link-router-view-components.md - RouterLink and RouterView componentsapi/history-modes-api.md - History mode APIsapi/error-and-failure-types.md - Error and failure typesUse templates from the templates/ directory:
templates/router-setup.md - Router setup templatestemplates/route-config.md - Route configuration templatesThis skill includes detailed examples organized to match the Vue Router official documentation structure (https://router.vuejs.org/guide/, https://router.vuejs.org/api/). All examples are in the examples/ directory, organized by topic:
examples/essentials/examples/essentials/getting-started.md - Creating a router, installing Vue Router, and basic setupexamples/essentials/dynamic-route-matching.md - Dynamic route matching with params and queryexamples/essentials/routes-matching-syntax.md - Route matching syntax, catch-all routes, and regexexamples/essentials/named-routes.md - Named routes and navigation with namesexamples/essentials/nested-routes.md - Nested routes and nested RouterViewexamples/essentials/programmatic-navigation.md - Programmatic navigation with router.push(), router.replace(), router.go()examples/essentials/named-views.md - Named views and multiple RouterView componentsexamples/essentials/redirect-alias.md - Redirects and aliases configurationexamples/essentials/passing-props.md - Passing props to route componentsexamples/essentials/different-history-modes.md - Hash mode, HTML5 history mode, and memory modeexamples/advanced/examples/advanced/navigation-guards.md - Global guards, per-route guards, and in-component guardsexamples/advanced/route-meta-fields.md - Route meta fields and accessing meta in guardsexamples/advanced/data-fetching.md - Data fetching strategies (before navigation, after navigation)examples/advanced/composition-api.md - Using useRouter() and useRoute() with Composition APIexamples/advanced/routerview-slot.md - RouterView slot props and custom renderingexamples/advanced/transitions.md - Route transitions and animationsexamples/advanced/scroll-behavior.md - Scroll behavior configurationexamples/advanced/lazy-loading-routes.md - Lazy loading routes and code splittingexamples/advanced/typed-routes.md - TypeScript typed routes and type safetyexamples/advanced/extending-router-link.md - Extending RouterLink componentexamples/advanced/navigation-failures.md - Handling navigation failures and errorsexamples/advanced/dynamic-routing.md - Adding and removing routes dynamically at runtimetemplates/)templates/router-setup.md - Router setup templates for different scenariostemplates/route-config.md - Route configuration templatesTo use examples:
To use templates:
templates/router-setup.md for router setup templatestemplates/route-config.md for route configuration templatesDetailed API documentation is available in the api/ directory, organized to match the official Vue Router API documentation structure:
api/router.md)createRouter() - Creating a router instanceaddRoute(), removeRoute(), hasRoute(), getRoutes(), push(), replace(), go(), back(), forward()currentRoute, optionsapi/route-records.md)api/useRouter-useRoute.md)useRouter() - Access router instance in setupuseRoute() - Access current route in setupapi/navigation-helpers.md)api/router-link-router-view-components.md)RouterLink component props and usageRouterView component props and usageapi/history-modes-api.md)createWebHistory() - HTML5 history modecreateWebHashHistory() - Hash modecreateMemoryHistory() - Memory modeapi/error-and-failure-types.md)To use API reference:
api/ directoryexamples/ directoryVue Router, router, routing, navigation, route, routes, nested routes, named routes, dynamic routes, route params, route query, navigation guards, route meta, programmatic navigation, RouterLink, RouterView, useRouter, useRoute, history mode, hash mode, HTML5 history, lazy loading, code splitting, typed routes, TypeScript, 路由, 导航, 路由守卫, 嵌套路由, 命名路由, 动态路由, 编程式导航, 懒加载, 类型化路由