Token导航 LogoToken导航

Agent Skill · 开发

vitepress-tutorial(维特新闻教程)

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

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

总安装 512周安装 22GitHub Stars 公开资料未说明下载 180核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/howell5/willhong-skills --skill vitepress-tutorial

这个 Skill 是做什么的

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

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。适合在需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库和原始 README 核验具体用法,支持 Codex、Claude、Cursor、Gemini CLI。

安装命令:npx skills add https://github.com/howell5/willhong-skills --skill vitepress-tutorial。安装前建议确认权限范围和维护状态,避免触发不必要的联网或文件读写。

来源仓库内路径:skills/vitepress-tutorial

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

vitepress-tutorial 怎么安装?

在终端执行 npx skills add https://github.com/howell5/willhong-skills --skill vitepress-tutorial。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

vitepress-tutorial 支持哪些 AI 工具?

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

vitepress-tutorial 需要什么权限?

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

vitepress-tutorial 是免费的吗?

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

vitepress-tutorial 用的人多吗?

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

vitepress-tutorial 安全吗?

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

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

值得选的地方

  • 同时适配 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有提醒
vitepress-tutorial

维特新闻教程 · 本页

512—需要联网MIT通过

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

SKILL.md 原文

VitePress Source Tutorial Generator

Generate VitePress documentation sites for source code learning and analysis.

Overview

This skill creates standalone VitePress tutorial sites that teach developers how a codebase works internally. Unlike user documentation that explains "how to use", these tutorials explain "how it's implemented".

Usage

/vitepress-tutorial [task-description]

Examples:

  • /vitepress-tutorial 帮我解析这个仓库的架构
  • /vitepress-tutorial explain the agent system in detail

Workflow

Phase 1: Project Analysis & Setup (REQUIRED FIRST)

  1. Detect project type - Identify language, framework, monorepo structure
  2. Ask user for preferences - Use AskUserQuestion tool to confirm:

- Output directory path (suggest reasonable default based on project structure) - Tutorial focus areas (if not specified in the task) - Content language(s) - Which language(s) to generate content in (see Language Selection below)

  1. Create project skeleton immediately - After user confirms:

- Create directory structure - Write package.json with Mermaid plugin - Write .vitepress/config.ts - Write pnpm-workspace.yaml (if inside another workspace) - Run pnpm install

Phase 2: Deep Analysis

  1. Explore source directory using Task tool with Explore agent
  2. Identify key components, patterns, and architecture
  3. Map dependencies and data flows
  4. Build mental model of module interactions

Phase 3: Content Generation

  1. Generate all documentation files based on analysis
  2. Include Mermaid diagrams for architecture visualization
  3. Reference actual source code with file:line annotations
  4. Build and verify the site works

CRITICAL INSTRUCTIONS

Ask Before Writing

ALWAYS use AskUserQuestion to confirm output location AND content language before creating any files.

Use two questions in one AskUserQuestion call:

Question 1: "Where should I create the VitePress tutorial site?"
Options:
- "./docs" (project docs folder)
- "./tutorials/{project-name}" (dedicated tutorials folder)
- Custom path...

Question 2: "What language(s) should the tutorial content be written in? (Max 2)"
multiSelect: true
Options:
- "中文 (Chinese)" - Content in Chinese, code comments in English
- "English" - Content and code comments in English
- "日本語 (Japanese)" - Content in Japanese, code comments in English
- "한국어 (Korean)" - Content in Korean, code comments in English

Language Selection Rules

  • Max 2 languages - If user selects more than 2, ask them to narrow down. Mention they can run the skill again later to add more languages.
  • Single language - Generate content directly under docs/ with no locale prefix. Set lang in config accordingly.
  • Two languages - Use VitePress i18n with locale-based directory structure:

- First selected language → root / (default locale) - Second selected language → /{locale-code}/ prefix - Configure locales in .vitepress/config.ts with proper labels and nav/sidebar for each locale - Add language switcher in navbar automatically

  • Language-to-locale mapping: zh-CN (Chinese), en-US (English), ja (Japanese), ko (Korean)
  • Content language only affects prose - Code snippets, file paths, and technical terms stay in English regardless of content language

Standalone Project Setup

When creating inside an existing pnpm workspace, ALWAYS create these files to make it independent:

pnpm-workspace.yaml (in tutorial root):

# Independent workspace - prevents inheriting parent config
packages: []

package.json (MUST include):

{
  "name": "{tutorial-name}",
  "version": "1.0.0",
  "type": "module",
  "scripts": {
    "dev": "vitepress dev docs",
    "build": "vitepress build docs",
    "preview": "vitepress preview docs"
  },
  "devDependencies": {
    "mermaid": "^11.4.0",
    "vitepress": "^1.6.3",
    "vitepress-plugin-mermaid": "^2.0.17"
  },
  "pnpm": {
    "onlyBuiltDependencies": ["esbuild"]
  }
}

Config with Mermaid

docs/.vitepress/config.ts (MUST use withMermaid wrapper):

import { defineConfig } from 'vitepress'
import { withMermaid } from 'vitepress-plugin-mermaid'

export default withMermaid(defineConfig({
  // CRITICAL: Fix Mermaid's dayjs ESM compatibility issue
  vite: {
    optimizeDeps: {
      include: ['mermaid', 'dayjs']
    }
  },
  // ... rest of config
  mermaid: {
    theme: 'default'
  }
}))

Why vite.optimizeDeps? Mermaid depends on dayjs which is a CommonJS module. Without this config, Vite dev server will throw "does not provide an export named 'default'" error.

Install Dependencies

After creating project files, ALWAYS run:

cd {output-path} && pnpm install

Output Structure

Single Language

{output-path}/
├── package.json              # With mermaid plugin
├── pnpm-workspace.yaml       # If inside another workspace
├── README.md
└── docs/
    ├── .vitepress/
    │   └── config.ts         # With withMermaid wrapper
    ├── index.md              # Homepage
    ├── introduction/
    │   ├── overview.md       # Project overview
    │   └── architecture.md   # Architecture diagram
    └── {modules}/            # One directory per module
        ├── index.md
        └── {topics}.md

Two Languages (i18n)

{output-path}/
├── package.json
├── pnpm-workspace.yaml
├── README.md
└── docs/
    ├── .vitepress/
    │   └── config.ts         # With locales config + withMermaid
    ├── index.md              # Default locale homepage
    ├── introduction/         # Default locale content
    │   ├── overview.md
    │   └── architecture.md
    ├── {modules}/
    │   ├── index.md
    │   └── {topics}.md
    └── {locale}/             # e.g. "en" or "zh"
        ├── index.md          # Second locale homepage
        ├── introduction/
        │   ├── overview.md
        │   └── architecture.md
        └── {modules}/
            ├── index.md
            └── {topics}.md

Features

  • Mermaid Diagrams: Architecture, sequence, and flow diagrams (auto-installed)
  • Source References: Auto-generate Source: path/to/file.go:123 annotations
  • Code Highlighting: Go, TypeScript, Python with line highlighting
  • Multi-language Support: Choose up to 2 languages per run (Chinese, English, Japanese, Korean). Run again to add more languages later.
  • Standalone Deploy: Ready for Vercel, Netlify, or GitHub Pages

Content Guidelines

  1. Always explore first - Read source files before writing tutorials
  2. Reference actual code - Include real code snippets with file paths
  3. Use Mermaid for architecture - Visual diagrams aid understanding
  4. Keep chapters focused - One concept per file, ~200-400 lines
  5. Link between chapters - Use VitePress prev/next navigation
  6. Include API tables - Summarize endpoints, functions, types

Supporting Files

  • @config-template.md - VitePress configuration template
  • @project-structure.md - Project structure and file templates
  • @content-guidelines.md - Content writing guidelines

平台分布

Claude Code

28.05%
按下载量换算50

OpenCode

20.59%
按下载量换算37

Gemini CLI

16.37%
按下载量换算29

Antigravity

11.63%
按下载量换算21

windsurf

7.86%
按下载量换算14

Codex

3.78%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

继续浏览同类 Skills