Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问clear审计通过

vitepress-tutorial维特新闻教程

Agent Skill

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

总安装

512

周安装

22

GitHub Stars

公开资料未说明

下载量

180
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

简介

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

  • 适合在需要围绕仓库状态、代码变更或协作事项进行整理时使用。
  • 可结合来源仓库和原始 README 核验具体用法,支持 Codex、Claude、Cursor、Gemini CLI。
  • 安装命令:npx skills add https://github.com/howell5/willhong-skills --skill vitepress-tutorial。
  • 安装前建议确认权限范围和维护状态,避免触发不必要的联网或文件读写。

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

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

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