Prior art: This project builds on the
.github/plugins/deep-wikiplugin from microsoft/skills as prior art. The license and copyright of the original are retained (see License).
AI-Powered Wiki Generator for Code Repositories β Claude Code 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, deepwiki-open, langchain-ai/openwiki, and vercel-labs/openwiki.
# Inside Claude Code, run these slash commands:
/plugin marketplace add pleaseai/claude-code-plugins
/plugin install memex@pleaseaiclaude --plugin-dir ./memex| Command | Description |
|---|---|
/memex:generate |
Generate a complete wiki β catalogue + all pages + onboarding guides + VitePress site |
/memex:crisp |
Fast wiki generation β concise, parallelized, rate-limit-friendly. 5β8 pages, no build step |
/memex:catalogue |
Generate only the hierarchical wiki structure as JSON |
/memex:page <topic> |
Generate a single wiki page with dark-mode Mermaid diagrams |
/memex:changelog |
Generate a structured changelog from git commits |
/memex:research <topic> |
Multi-turn deep investigation with evidence-based analysis |
/memex:ask <question> |
Ask a question about the repository |
/memex:onboard |
Generate 4 audience-tailored onboarding guides (Contributor, Staff Engineer, Executive, PM) |
/memex:agents |
Generate AGENTS.md files for pertinent folders (only where missing) |
/memex:llms |
Generate llms.txt and llms-full.txt for LLM-friendly project access |
/memex:ado |
Generate a Node.js script to convert wiki to Azure DevOps Wiki-compatible format |
/memex:build |
Package generated wiki as a static site (VitePress, Nextra, Astro Starlight, β¦) via the wiki-site-core adapter contract; --tool selects the generator (default VitePress) |
/memex:deploy |
Generate GitHub Actions workflow to deploy wiki to GitHub Pages |
| 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
| 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-site-core |
User asks to build/package a site β generator-neutral core + per-tool adapter contract (manifest read by build/deploy/CI) |
wiki-vitepress |
User asks to build a site or package wiki as VitePress (the reference adapter of wiki-site-core) |
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 |
# Install the plugin (slash command inside Claude Code)
/plugin marketplace add pleaseai/claude-code-plugins
/plugin install memex@pleaseai
# Generate a full wiki with onboarding guides and VitePress site
/memex:generate
# Fast wiki β concise, parallelized, avoids rate limits
/memex:crisp
# Just the structure
/memex:catalogue
# Single page with dark-mode diagrams
/memex:page Authentication System
# Generate onboarding guides
/memex:onboard
# Build VitePress dark-theme site
/memex:build
# Research a topic (evidence-based, 5 iterations)
/memex:research How does the caching layer work?
# Ask a question
/memex:ask What database migrations exist?
# Generate llms.txt for LLM-friendly access
/memex:llms
# Deploy wiki to GitHub Pages (optional)
/memex:deployRepository β Scan β Catalogue (JSON TOC) β Per-Section Pages β Assembled Wiki
β
Mermaid Diagrams + Citations
β
Onboarding Guides (Contributor, Staff Engineer, Executive, PM)
β
Static Site β VitePress / Nextra / Astro Starlight (Dark Theme, per-tool adapter)
β
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-site-core |
Packages all pages into a static site via a generator-neutral core + per-tool adapter manifest (VitePress reference + Nextra v4 + Astro Starlight); wiki-vitepress is the VitePress adapter |
| 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 |
- Source-linked citations: Before any task, resolve the source repo URL (or confirm local). All citations use
[file:line](REPO_URL/blob/BRANCH/file#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
<!-- Sources: ... -->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
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
memex/
βββ .claude-plugin/
β βββ plugin.json # Plugin manifest (name, version, description)
βββ commands/ # Slash commands (/memex:*)
β βββ 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 # static-site packaging (multi-tool, --tool selector)
βββ 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-site-core/ # Generator-neutral packaging core + adapter contract
β β βββ SKILL.md # Core + per-tool adapter overview
β β βββ references/
β β βββ adapter-contract.md # Capability manifest schema (build/deploy/CI)
β β βββ core-packaging.md # Tool-independent logic (post-proc, citations, tokens, sidebar, llms.txt)
β β βββ adapters/
β β βββ vitepress.md # VitePress reference adapter (manifest + delta)
β β βββ nextra.md # Nextra v4 adapter (baseline parity)
β β βββ starlight.md # Astro Starlight adapter (baseline parity)
β βββ wiki-vitepress/ # VitePress adapter entry (thin pointer to wiki-site-core)
β β βββ SKILL.md # VitePress adapter overview + gotchas
β β βββ references/
β β βββ vitepress-build.md # Full VitePress config, theme, CSS, zoom impl (authoritative)
β βββ 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
Licensed under the MIT License.
This project references the deep-wiki plugin from microsoft/skills (MIT) as prior art. The original copyright is retained; modifications are Β© Minsu Lee.