AI
Vike integrates with AI agents via:
- Vike's documentation index at vike.dev/llms.txt
- A
vike/SKILL.mdto make agents (Claude, Codex, Cursor, Gemini, ...) aware of vike.dev/llms.txt
llms.txt
Vike's documentation index lives at vike.dev/llms.txt — a compact overview of Vike's docs for AI agents.
Most AI models are familiar and proficient with Vike. But for advanced Vike features AI can make mistakes.
Therefore, if your AI agent doesn't automatically load it (see Skill below), we recommend nudging your agent to read vike.dev/llms.txt whenever it uses Vike in an uncommon way.
Skill
Vike automatically adds the following skills/vike/SKILL.md to make AI agents (Claude Code, Codex, Cursor, Gemini CLI, ...) automatically aware of Vike's documentation.
---
name: "vike"
description: "Vike documentation index — a compact overview of Vike's docs. Consider consulting it, e.g. when using uncommon Vike APIs or when stuck on a Vike problem."
---
See https://vike.dev/llms.txtUpon running the development server, Vike adds
vike/SKILL.mdto every existingskills/directory (**/skills/*/SKILL.md, e.g..agents/skills/) and automatically Git-commits it. Ifvike/SKILL.mdis outdated, Vike updates it (and Git-commits the change).
Vike skips adding vike/SKILL.md if:
- Your app doesn't contain any
skills/directory (unless you set+ai.skillto a list of directories) - The setting
+ai.skillisfalse - You're in a CI environment
- Your app isn't inside a Git repository
If you
.gitignoreyour skills directory, Vike still createsvike/SKILL.mdbut doesn't Git-commit it.
// pages/+config.js
export default {
ai: {
// Never add (nor update) vike/SKILL.md
skill: false,
// Add vike/SKILL.md to exactly these directories
skill: ['.agents/skills', '.claude/skills']
}
}// pages/+config.ts
import type { Config } from 'vike/types'
export default {
ai: {
// Never add (nor update) vike/SKILL.md
skill: false,
// Add vike/SKILL.md to exactly these directories
skill: ['.agents/skills', '.claude/skills']
}
} satisfies Config