Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器github未标认证来源可访问许可证需确认审计通过

vike-skills维凯技能

Agent Skill

vike-skills 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

775

周安装

12

GitHub Stars

公开资料未说明

下载量

97
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/yuann3/skills --skill vike-skills

简介

用于处理 GitHub 仓库、Issue 和 Pull Request 协作信息。

  • 适合围绕代码变更和仓库状态进行整理与分析。
  • 通过 npx skills add 命令从指定仓库安装使用。
  • 需确认权限范围和文件操作可能性后再部署。
  • vike-skills 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Vike Skills (Vue)

Core principle: Build fast, SEO-friendly Vue applications with server-side rendering using Vike's flexible architecture.

When to Use This Skill

Always use when:

  • Creating new Vike + Vue pages
  • Setting up data fetching with +data hooks
  • Configuring layouts and nested layouts
  • Implementing route guards and authentication
  • Managing head tags and SEO
  • Working with client-only components

Don't use for:

  • Non-Vike Vue applications (use Nuxt or plain Vue)
  • React or Solid projects (use vike-react or vike-solid)

Documentation Quick Links

Development Checklist

When creating a new page, use TodoWrite to track:

  • Create +Page.vue component
  • Add +data.js if page needs data fetching
  • Use useData() to access data in component
  • Add +guard.js if page requires authentication
  • Configure head tags (+title, +description) for SEO
  • Handle errors with throw render() or throw redirect()
  • Use clientOnly() for browser-only components

Essential Requirements

Every Page Must Have

  1. +Page.vue component - The page's Vue component
  2. Proper data access - Use useData() not direct pageContext
  3. Error handling - Handle missing data gracefully
  4. SEO consideration - Title and description for public pages

Every Data Hook Must Have

  1. Type exports - export type Data = Awaited<ReturnType<typeof data>>
  2. Error handling - Use throw render(404) for missing resources
  3. Minimal data - Only return what the page needs (auto-serialized)

Every Layout Must Have

  1. Children slot - <slot /> to render nested content
  2. Proper scoping - Place in correct directory for inheritance
  3. No data fetching assumptions - Layouts share page's +data

Every Guard Must Have

  1. Clear conditions - Check auth state before render
  2. Proper redirects - Use throw redirect('/login') or throw render(401)
  3. Async support - Guards can be async for API checks

Core Patterns

Basic Page with Data

<!-- /pages/movies/+Page.vue -->
<script setup lang="ts">
import { useData } from 'vike-vue/useData'
import type { Data } from './+data'

const { movies } = useData<Data>()
</script>

<template>
  <h1>Movies</h1>
  <ul>
    <li v-for="movie in movies" :key="movie.id">
      {{ movie.title }}
    </li>
  </ul>
</template>
// /pages/movies/+data.ts
export type Data = Awaited<ReturnType<typeof data>>

export async function data() {
  const movies = await fetchMovies()
  return { movies }
}

Layout

<!-- /pages/+Layout.vue -->
<script setup>
import Navigation from '../components/Navigation.vue'
</script>

<template>
  <Navigation />
  <main>
    <slot />
  </main>
</template>

Route Guard

// /pages/admin/+guard.ts
import { redirect } from 'vike/abort'

export async function guard(pageContext) {
  if (!pageContext.user) {
    throw redirect('/login')
  }
  if (!pageContext.user.isAdmin) {
    throw render(403, 'Admin access required')
  }
}

File Naming Conventions

FilePurpose
+Page.vuePage component
+Layout.vueLayout wrapper
+data.tsServer-side data fetching
+guard.tsRoute protection
+config.tsPage/directory configuration
+title.tsPage title
+Head.vueCustom head tags

File Suffixes

SuffixRuns On
.server.tsServer only (default for +data)
.client.tsClient only
.shared.tsBoth server and client

Red Flags - Stop If You See

  • Accessing window or document in SSR code without clientOnly()
  • Missing passToClient for server data needed on client
  • Data fetching inside Vue components (use +data instead)
  • Hardcoded URLs instead of using routing
  • Missing error handling in +data hooks
  • Guards that don't throw (they must throw, not return)
  • Layouts without <slot /> for children

Common Rationalizations

ExcuseReality
"I'll add SEO later"Missing titles hurt from day one
"Guards can return false"Guards must throw redirect() or throw render()
"I can access window in +data"+data runs on server by default
"pageContext has everything"Use useData() for type-safe data access

Configuration Inheritance

Vike configs cascade down the directory tree:

pages/
  +config.ts          # Applies to ALL pages
  +Layout.vue         # Global layout
  (marketing)/
    +Layout.vue       # Nested inside global layout
    about/+Page.vue   # Has both layouts
  admin/
    +guard.ts         # Applies to all admin pages
    +config.ts        # Admin-specific config
    users/+Page.vue   # Protected by guard

passToClient Defaults

With client routing, these are automatically available client-side:

  • pageContext.Page
  • pageContext.data
  • pageContext.config
  • pageContext.routeParams
  • pageContext.urlOriginal
  • pageContext.urlPathname
  • pageContext.urlParsed

For custom properties (like user), add to +config.ts:

export default {
  passToClient: ['user']
}

Quick Workflow

  1. Need API details? → Check reference.md
  2. Need examples? → Check examples.md
  3. Building something? → Follow checklist above, use TodoWrite
  4. Stuck? → Check official docs at https://vike.dev

Final Rule

Every Vike + Vue page must have:
1. +Page.vue component
2. +data.ts for server data (if needed)
3. useData() for type-safe data access
4. Error handling for edge cases
5. SEO tags for public pages

Follow these principles for fast, SEO-friendly Vue applications.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.96%
按下载量换算34

Claude

30.81%
按下载量换算30

Cursor

18.9%
按下载量换算18

Gemini CLI

9.71%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills