vitepress
Skill by antfu
Guides an AI assistant through building documentation sites with VitePress, a static site generator built on Vite and Vue. It covers configuration, themes, and Markdown with Vue components.
Install vitepress
Built from the published package, never by AI.
git clone --depth 1 https://github.com/antfu/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/vitepress ~/.claude/skills/vitepressRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/antfu/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/vitepress ~/.gemini/antigravity-cli/skills/vitepressAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
VitePress is a Static Site Generator built on Vite and Vue 3. It takes Markdown content, applies a theme, and generates static HTML that becomes an SPA for fast navigation. The source describes it as suited to documentation, blogs, and marketing sites.
This skill gives the assistant reference material on VitePress. Topics include site configuration, the CLI, file-based routing, Markdown features, code blocks, Vue components in Markdown, build-time data loading, theme configuration, custom themes, internationalization, SSR, and deployment. The skill is based on VitePress 2.0.0-alpha.20 and is aimed at developers who build documentation sites, configure themes, or write Markdown with Vue components.
Written from the project's SKILL.md and checked against it.
What it can do
- ConfigurationCovers config file setup, defineConfig, and site metadata.
- RoutingExplains file-based routing, the source directory, and rewrites.
- MarkdownCovers frontmatter, containers, tables, anchors, and includes.
- Code BlocksCovers syntax highlighting, line highlighting, diffs, and focus.
- Vue in MarkdownCovers components, script setup, directives, and templating.
- Data LoadingCovers build-time data loaders and createContentLoader.
- Theme ConfigCovers nav, sidebar, search, social links, and footer settings.
- Custom ThemeCovers building themes from scratch and the theme interface.
- InternationalizationCovers multi-language sites and locale configuration.
- DeploymentCovers deploying to GitHub Pages, Netlify, Vercel, Cloudflare, and Nginx.
What you need
- Node.js 22 or later for VitePress 2
Try asking
- Set up a VitePress config with a nav and sidebar for my docs
- Add a multi-language setup to my VitePress documentation site
- Show me how to highlight lines in a VitePress code block
Good to know
- Based on VitePress 2.0.0-alpha.20, generated on 2026-09-25
- VitePress 2 notes say to install with vitepress@next
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/vitepress/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
GENERATION.md139 B -
SKILL.md4 KB -
references/advanced-i18n.md6 KB -
references/advanced-ssr.md4 KB -
references/core-cli.md2 KB
Show all 16 files
-
references/core-config.md7 KB -
references/core-markdown.md6 KB -
references/core-routing.md4 KB -
references/features-code-blocks.md4 KB -
references/features-data-loading.md4 KB -
references/features-dynamic-routes.md5 KB -
references/features-vue.md4 KB -
references/recipes-deploy.md5 KB -
references/theme-config.md7 KB -
references/theme-custom.md6 KB -
references/theme-customization.md8 KB
Alternatives to vitepress
All alternatives →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr
vitepress: common questions
What is VitePress used for?
The source describes VitePress as a static site generator for documentation, blogs, and marketing sites. It takes Markdown content, applies a theme, and generates static HTML.
Can I use Vue components in VitePress Markdown?
Yes. The source says Vue components work directly in Markdown, and it includes a reference on Vue in Markdown.
Which Node.js version does VitePress 2 need?
The source says VitePress 2 requires Node.js 22 or later.
How do I install vitepress?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is vitepress free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is vitepress safe to use?
It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to vitepress?
Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.
