๐ Deep Wiki โ
AI-Powered Wiki Generator for Code Repositories โ GitHub Copilot CLI Plugin
Generate comprehensive, structured, Mermaid-rich documentation wikis for any codebase โ with dark-mode VitePress sites, onboarding guides, and deep research capabilities. Distilled from the prompt architectures of OpenDeepWiki and deepwiki-open.
Installation โ
From a marketplace โ
bash
# Inside Copilot CLI, run these slash commands:
/plugin marketplace add microsoft/skills
/plugin install deep-wiki@skillsbash
copilot --plugin-dir ./deep-wikiCommands โ
| Command | Description |
|---|---|
/deep-wiki:generate | Generate a complete wiki โ catalogue + all pages + onboarding guides + VitePress site |
/deep-wiki:crisp | Fast wiki generation โ concise, parallelized, rate-limit-friendly. 5โ8 pages, no build step |
/deep-wiki:catalogue | Generate only the hierarchical wiki structure as JSON |
/deep-wiki:page <topic> | Generate a single wiki page with dark-mode Mermaid diagrams |
/deep-wiki:changelog | Generate a structured changelog from git commits |
/deep-wiki:research <topic> | Multi-turn deep investigation with evidence-based analysis |
/deep-wiki:ask <question> | Ask a question about the repository |
/deep-wiki:onboard | Generate 4 audience-tailored onboarding guides (Contributor, Staff Engineer, Executive, PM) |
/deep-wiki:agents | Generate AGENTS.md files for pertinent folders (only where missing) |
/deep-wiki:llms | Generate llms.txt and llms-full.txt for LLM-friendly project access |
/deep-wiki:ado | Generate a Node.js script to convert wiki to Azure DevOps Wiki-compatible format |
/deep-wiki:build | Package generated wiki as a VitePress site with dark theme |
/deep-wiki:deploy | Generate GitHub Actions workflow to deploy wiki to GitHub Pages |
Agents โ
| Agent | Description |
|---|---|
wiki-architect | Analyzes repos, generates structured catalogues + onboarding architecture |
wiki-writer | Generates pages with dark-mode Mermaid diagrams and deep citations |
wiki-researcher | Deep research with zero tolerance for shallow analysis โ evidence-first |
View available agents: /agents
Skills (Auto-Invoked) โ
| Skill | Triggers When |
|---|---|
wiki-architect | User asks to create a wiki, document a repo, or map a codebase |
wiki-page-writer | User asks to document a component or generate a technical deep-dive |
wiki-changelog | User asks about recent changes or wants a changelog |
wiki-researcher | User wants in-depth investigation across multiple files |
wiki-qa | User asks a question about how something works in the repo |
wiki-vitepress | User asks to build a site or package wiki as VitePress |
wiki-onboarding | User asks for onboarding docs or getting-started guides |
wiki-agents-md | User asks to generate AGENTS.md files for coding agent context |
wiki-llms-txt | User asks to generate llms.txt or make docs LLM-friendly |
wiki-ado-convert | User asks to export wiki for Azure DevOps or convert Mermaid/markdown for ADO |
Quick Start โ
bash
# Install the plugin (slash command inside Copilot CLI)
/plugin install deep-wiki@skills
# Generate a full wiki with onboarding guides and VitePress site
/deep-wiki:generate
# Fast wiki โ concise, parallelized, avoids rate limits
/deep-wiki:crisp
# Just the structure
/deep-wiki:catalogue
# Single page with dark-mode diagrams
/deep-wiki:page Authentication System
# Generate onboarding guides
/deep-wiki:onboard
# Build VitePress dark-theme site
/deep-wiki:build
# Research a topic (evidence-based, 5 iterations)
/deep-wiki:research How does the caching layer work?
# Ask a question
/deep-wiki:ask What database migrations exist?
# Generate llms.txt for LLM-friendly access
/deep-wiki:llms
# Deploy wiki to GitHub Pages (optional)
/deep-wiki:deployHow It Works โ
Repository โ Scan โ Catalogue (JSON TOC) โ Per-Section Pages โ Assembled Wiki
โ
Mermaid Diagrams + Citations
โ
Onboarding Guides (Contributor, Staff Engineer, Executive, PM)
โ
VitePress Site (Dark Theme + Click-to-Zoom)
โ
AGENTS.md Files (Only If Missing)
โ
llms.txt + llms-full.txt (LLM-friendly)
โ
GitHub Pages Deployment (Optional)| Step | Component | What It Does |
|---|---|---|
| 1 | wiki-architect | Analyzes repo โ hierarchical JSON table of contents |
| 2 | wiki-page-writer | For each TOC entry โ rich Markdown with dark-mode Mermaid + citations |
| 3 | wiki-onboarding | Generates 4 audience-tailored onboarding guides in onboarding/ folder |
| 4 | wiki-vitepress | Packages all pages into a VitePress dark-theme static site |
| 5 | wiki-changelog | Git commits โ categorized changelog |
| 6 | wiki-researcher | Multi-turn investigation with evidence standard |
| 7 | wiki-qa | Q&A grounded in actual source code |
| 8 | wiki-agents-md | Generates AGENTS.md files for pertinent folders (only if missing) |
| 9 | wiki-llms-txt | Generates llms.txt + llms-full.txt for LLM-friendly access |
| 10 | wiki-ado-convert | Converts VitePress wiki to Azure DevOps Wiki-compatible format |
Design Principles โ
- Source-linked citations: Before any task, resolve the source repo URL (or confirm local). All citations use
[file:line](https://github.com/microsoft/skills/blob/cf77b1efbf3117501f4727c476894751311ee885/.github/plugins/deep-wiki/REPO_URL/blob/BRANCH/file/README.md#Lline)for remote repos,(file:line)for local - Structure-first: Always generate a TOC/catalogue before page content
- Evidence-based: Every claim cites
file_path:line_numberwith clickable links โ no hand-waving - Diagram-rich: Minimum 3โ5 dark-mode Mermaid diagrams per page using multiple diagram types, with click-to-zoom and `` comment blocks. More diagrams = better โ use them liberally for architecture, flows, state, data models, and decisions.
- Table-driven: Prefer tables over prose for any structured information. Use summary tables, comparison tables, and always include a "Source" column with citations.
- Progressive disclosure: Big picture first, then drill into details. Every section starts with a TL;DR.
- Hierarchical depth: Max 4 levels for component-level granularity
- Systems thinking: Architecture โ Subsystems โ Components โ Methods
- Never invent: All content derived from actual code โ trace real implementations
- Dark-mode native: All output designed for dark-theme rendering (VitePress)
- Depth before breadth: Trace actual code paths, never guess from file names
- Agent-discoverable: Output placed at standard paths (
llms.txtat repo root,AGENTS.mdin key folders) so coding agents and MCP tools find documentation automatically
Agent & MCP Integration โ
The generated output is designed to be discoverable by coding agents using the GitHub MCP Server or any MCP-compatible tool:
| File | Path | Discovery Method |
|---|---|---|
llms.txt | Repo root (./llms.txt) | Standard llms.txt spec location โ agents check here first via get_file_contents |
llms-full.txt | wiki/llms-full.txt | Full inlined docs โ agents load this for comprehensive context |
AGENTS.md | Root + key folders | Standard agent instructions file โ references wiki docs in Documentation section |
| Wiki pages | wiki/**/*.md | Searchable via search_code โ all pages contain source-linked citations |
llms.txt | wiki/.vitepress/public/ | Served at /llms.txt on deployed VitePress site |
How it works with GitHub MCP:
- Agent calls
get_file_contentsonllms.txtโ gets project summary + links to all wiki pages - Agent calls
get_file_contentson specific wiki pages โ gets full documentation with source citations - Agent calls
search_codewith patterns โ finds relevant wiki sections across the repository - Agent reads
AGENTS.mdโ Documentation section points to wiki and onboarding guides
Plugin Structure โ
deep-wiki/
โโโ .claude-plugin/
โ โโโ plugin.json # Plugin manifest (name, version, description)
โโโ commands/ # Slash commands (/deep-wiki:*)
โ โโโ generate.md # Full wiki generation pipeline
โ โโโ crisp.md # Fast, concise wiki (rate-limit-friendly)
โ โโโ catalogue.md # Wiki structure as JSON
โ โโโ page.md # Single page with dark-mode diagrams
โ โโโ changelog.md # Git-based changelog
โ โโโ research.md # 5-iteration deep research
โ โโโ ask.md # Q&A about the repo
โ โโโ onboard.md # Onboarding guide generation
โ โโโ agents.md # AGENTS.md generation (only if missing)
โ โโโ llms.md # llms.txt generation for LLM-friendly access
โ โโโ deploy.md # GitHub Pages deployment workflow generation
โ โโโ ado.md # Azure DevOps Wiki export script generation
โ โโโ build.md # VitePress site packaging
โโโ skills/ # Auto-invoked based on context
โ โโโ wiki-architect/
โ โ โโโ SKILL.md
โ โโโ wiki-page-writer/
โ โ โโโ SKILL.md
โ โโโ wiki-changelog/
โ โ โโโ SKILL.md
โ โโโ wiki-researcher/
โ โ โโโ SKILL.md
โ โโโ wiki-qa/
โ โ โโโ SKILL.md
โ โโโ wiki-vitepress/
โ โ โโโ SKILL.md # VitePress packaging + dark-mode Mermaid
โ โโโ wiki-onboarding/
โ โ โโโ SKILL.md # Onboarding guide generation
โ โโโ wiki-agents-md/
โ โ โโโ SKILL.md # AGENTS.md generation for coding agents
โ โโโ wiki-llms-txt/
โ โ โโโ SKILL.md # llms.txt generation for LLM-friendly access
โ โโโ wiki-ado-convert/
โ โโโ SKILL.md # Azure DevOps Wiki conversion
โโโ agents/ # Custom agents (visible in /agents)
โ โโโ wiki-architect.md
โ โโโ wiki-writer.md
โ โโโ wiki-researcher.md
โโโ README.md