Token导航 LogoToken导航

Agent Skill · 开发

vue-router-v4(Vue router V4 开发)

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

vue-router-v4 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 11,887。

总安装 1,533周安装 62GitHub Stars 347下载 481核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:vue-router-v4(Vue router V4 开发)
来源仓库:https://github.com/teachingai/full-stack-skills
仓库路径:skills/vue-router-v4
安装命令:
npx skills add https://github.com/teachingai/full-stack-skills --skill vue-router-v4
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/teachingai/full-stack-skills --skill vue-router-v4

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

用于辅助 Vue Router v4 的开发工作。适合处理 Vue 3 应用的路由配置与导航实现。可协助生成路由规则和处理异步加载场景。使用时应确保与项目技术栈版本匹配。vue-router-v4 属于开发类 Skill,可作为该场景下的辅助能力补充。

安装方式:通过 GitHub 仓库安装,适用于 Claude 等工具。

来源仓库内路径:skills/vue-router-v4

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/teachingai/full-stack-skills --skill vue-route…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

vue-router-v4 怎么安装?

在终端执行 npx skills add https://github.com/teachingai/full-stack-skills --skill vue-router-v4。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

vue-router-v4 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

vue-router-v4 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

vue-router-v4 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

vue-router-v4 用的人多吗?

公开数据是累计安装 1,533 次,近一周安装 62 次,下载 481 次,GitHub 347 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

vue-router-v4 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
vue-router-v4

Vue router V4 开发 · 本页

1,533347需要联网MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

When to use this skill

Use this skill whenever the user wants to:

  • Set up routing in a Vue 3 application
  • Configure routes, nested routes, and named routes
  • Implement navigation guards (global, per-route, in-component)
  • Use programmatic navigation with router.push(), router.replace(), etc.
  • Handle dynamic route matching and route parameters
  • Work with route meta fields and route records
  • Implement lazy loading and code splitting for routes
  • Use Vue Router with Composition API (useRouter, useRoute)
  • Configure different history modes (hash, HTML5 history, memory)
  • Handle scroll behavior and transitions
  • Implement typed routes with TypeScript
  • Migrate from Vue Router 3 to Vue Router 4
  • Extend RouterLink component
  • Handle navigation failures and errors
  • Work with dynamic routing (adding/removing routes at runtime)

How to use this skill

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:

  1. Identify the topic from the user's request:

- Getting started/快速开始 → examples/essentials/getting-started.md - Dynamic route matching/动态路由匹配 → examples/essentials/dynamic-route-matching.md - Routes matching syntax/路由匹配语法 → examples/essentials/routes-matching-syntax.md - Named routes/命名路由 → examples/essentials/named-routes.md - Nested routes/嵌套路由 → examples/essentials/nested-routes.md - Programmatic navigation/编程式导航 → examples/essentials/programmatic-navigation.md - Named views/命名视图 → examples/essentials/named-views.md - Redirect and alias/重定向和别名 → examples/essentials/redirect-alias.md - Passing props to route components/向路由组件传递 props → examples/essentials/passing-props.md - Different history modes/不同的历史模式 → examples/essentials/different-history-modes.md - Navigation guards/导航守卫 → examples/advanced/navigation-guards.md - Route meta fields/路由元信息 → examples/advanced/route-meta-fields.md - Data fetching/数据获取 → examples/advanced/data-fetching.md - Composition API/组合式 API → examples/advanced/composition-api.md - RouterView slot/RouterView 插槽 → examples/advanced/routerview-slot.md - Transitions/过渡效果 → examples/advanced/transitions.md - Scroll behavior/滚动行为 → examples/advanced/scroll-behavior.md - Lazy loading routes/懒加载路由 → examples/advanced/lazy-loading-routes.md - Typed routes/类型化路由 → examples/advanced/typed-routes.md - Extending RouterLink/扩展 RouterLink → examples/advanced/extending-router-link.md - Navigation failures/导航失败 → examples/advanced/navigation-failures.md - Dynamic routing/动态路由 → examples/advanced/dynamic-routing.md

  1. Load the appropriate example file from the examples/ directory: Essentials (基础) - examples/essentials/: Advanced (高级) - examples/advanced/:

- examples/essentials/getting-started.md - Creating a router and basic setup - examples/essentials/dynamic-route-matching.md - Dynamic route matching with params - examples/essentials/routes-matching-syntax.md - Route matching syntax and patterns - examples/essentials/named-routes.md - Named routes and navigation - examples/essentials/nested-routes.md - Nested routes and RouterView - examples/essentials/programmatic-navigation.md - Programmatic navigation with router methods - examples/essentials/named-views.md - Named views and multiple RouterView - examples/essentials/redirect-alias.md - Redirects and aliases - examples/essentials/passing-props.md - Passing props to route components - examples/essentials/different-history-modes.md - Hash, HTML5 history, and memory modes - examples/advanced/navigation-guards.md - Global, per-route, and in-component guards - examples/advanced/route-meta-fields.md - Route meta fields and custom data - examples/advanced/data-fetching.md - Data fetching strategies - examples/advanced/composition-api.md - Using useRouter() and useRoute() with Composition API - examples/advanced/routerview-slot.md - RouterView slot props - examples/advanced/transitions.md - Route transitions and animations - examples/advanced/scroll-behavior.md - Scroll behavior configuration - examples/advanced/lazy-loading-routes.md - Lazy loading routes and code splitting - examples/advanced/typed-routes.md - TypeScript typed routes - examples/advanced/extending-router-link.md - Extending RouterLink component - examples/advanced/navigation-failures.md - Handling navigation failures - examples/advanced/dynamic-routing.md - Adding and removing routes dynamically

  1. Follow the specific instructions in that example file for syntax, structure, and best practices Important Notes:

- All examples follow Vue Router 4 API - Examples include both JavaScript and TypeScript versions where applicable - Each example file includes key concepts, code examples, and key points - Always check the example file for best practices and common patterns

  1. 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 properties - api/useRouter-useRoute.md - Composition API functions (useRouter, useRoute) - api/navigation-helpers.md - Navigation helper functions - api/router-link-router-view-components.md - RouterLink and RouterView components - api/history-modes-api.md - History mode APIs - api/error-and-failure-types.md - Error and failure types

  1. Use templates from the templates/ directory:

- templates/router-setup.md - Router setup templates - templates/route-config.md - Route configuration templates

Examples and Templates

This 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:

Essentials (基础) - examples/essentials/

  • examples/essentials/getting-started.md - Creating a router, installing Vue Router, and basic setup
  • examples/essentials/dynamic-route-matching.md - Dynamic route matching with params and query
  • examples/essentials/routes-matching-syntax.md - Route matching syntax, catch-all routes, and regex
  • examples/essentials/named-routes.md - Named routes and navigation with names
  • examples/essentials/nested-routes.md - Nested routes and nested RouterView
  • examples/essentials/programmatic-navigation.md - Programmatic navigation with router.push(), router.replace(), router.go()
  • examples/essentials/named-views.md - Named views and multiple RouterView components
  • examples/essentials/redirect-alias.md - Redirects and aliases configuration
  • examples/essentials/passing-props.md - Passing props to route components
  • examples/essentials/different-history-modes.md - Hash mode, HTML5 history mode, and memory mode

Advanced (高级) - examples/advanced/

  • examples/advanced/navigation-guards.md - Global guards, per-route guards, and in-component guards
  • examples/advanced/route-meta-fields.md - Route meta fields and accessing meta in guards
  • examples/advanced/data-fetching.md - Data fetching strategies (before navigation, after navigation)
  • examples/advanced/composition-api.md - Using useRouter() and useRoute() with Composition API
  • examples/advanced/routerview-slot.md - RouterView slot props and custom rendering
  • examples/advanced/transitions.md - Route transitions and animations
  • examples/advanced/scroll-behavior.md - Scroll behavior configuration
  • examples/advanced/lazy-loading-routes.md - Lazy loading routes and code splitting
  • examples/advanced/typed-routes.md - TypeScript typed routes and type safety
  • examples/advanced/extending-router-link.md - Extending RouterLink component
  • examples/advanced/navigation-failures.md - Handling navigation failures and errors
  • examples/advanced/dynamic-routing.md - Adding and removing routes dynamically at runtime

Templates Directory (templates/)

  • templates/router-setup.md - Router setup templates for different scenarios
  • templates/route-config.md - Route configuration templates

To use examples:

  • Identify the topic from the user's request
  • Load the appropriate example file from the corresponding directory
  • Follow the instructions, syntax, and best practices in that file
  • Adapt the code examples to your specific use case

To use templates:

  • Reference templates/router-setup.md for router setup templates
  • Use templates/route-config.md for route configuration templates
  • Adapt templates to your specific needs and coding style

API Reference

Detailed API documentation is available in the api/ directory, organized to match the official Vue Router API documentation structure:

Router API (api/router.md)

  • createRouter() - Creating a router instance
  • Router instance methods: addRoute(), removeRoute(), hasRoute(), getRoutes(), push(), replace(), go(), back(), forward()
  • Router instance properties: currentRoute, options

Route Records API (api/route-records.md)

  • Route record types and properties
  • Route configuration options

Composition API (api/useRouter-useRoute.md)

  • useRouter() - Access router instance in setup
  • useRoute() - Access current route in setup

Navigation Helpers (api/navigation-helpers.md)

  • Navigation helper functions and utilities

Components API (api/router-link-router-view-components.md)

  • RouterLink component props and usage
  • RouterView component props and usage

History Modes API (api/history-modes-api.md)

  • createWebHistory() - HTML5 history mode
  • createWebHashHistory() - Hash mode
  • createMemoryHistory() - Memory mode

Error and Failure Types (api/error-and-failure-types.md)

  • Navigation failure types
  • Error handling

To use API reference:

  1. Identify the API you need help with
  2. Load the corresponding API file from the api/ directory
  3. Find the API signature, parameters, return type, and examples
  4. Reference the linked example files for detailed usage patterns
  5. All API files include links to relevant example files in the examples/ directory

Best Practices

  1. Use named routes: Use named routes for better maintainability and refactoring
  2. Lazy load routes: Use dynamic imports for route components to enable code splitting
  3. Type safety: Use TypeScript with typed routes for better type safety
  4. Navigation guards: Use navigation guards appropriately (global, per-route, in-component)
  5. Route meta: Use route meta fields for custom data and permissions
  6. History mode: Choose the appropriate history mode based on deployment environment
  7. Scroll behavior: Configure scroll behavior for better UX
  8. Error handling: Handle navigation failures gracefully

Resources

Keywords

Vue 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, 路由, 导航, 路由守卫, 嵌套路由, 命名路由, 动态路由, 编程式导航, 懒加载, 类型化路由

平台分布

Claude Code

29.68%
按下载量换算143

Gemini CLI

23.47%
按下载量换算113

Antigravity

15.9%
按下载量换算76

Codex

12.43%
按下载量换算60

trae

6.9%
按下载量换算33

OpenCode

3.28%
按下载量换算16

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills