Generate or update a repository understanding deepwiki as Markdown, including a dynamic INDEX.md under deepwiki/. Use when users ask for /deepwiki, /deepwiki:init, /deepwiki:index, /deepwiki:update, or request a repo deepwiki/knowledge base.
Generates a comprehensive Markdown deepwiki for your repository when triggered by `/deepwiki` commands. Creates structured documentation with diagrams, images, and a dynamic index, automatically detecting first-run vs. updates.
/plugin marketplace add liyuyun-lyy/deepwiki/plugin install deepwiki@deepwikiThis skill inherits all available tools. When active, it can use any tool Claude has access to.
examples/architecture-example.mdexamples/data-flow-example.mdexamples/dependencies-example.mdexamples/glossary-example.mdexamples/module-example.mdexamples/overview-example.mdtemplates/architecture.mdtemplates/data-flow.mdtemplates/dependencies.mdtemplates/glossary.mdtemplates/module.mdtemplates/overview.mdCreate a Markdown-based deepwiki for a code repository. Always write files under deepwiki/.
On first-time generation (no existing deepwiki/ directory), ask the user to
choose the output language as a multiple-choice prompt:
A) English B) Chinese C) Other (please specify)
On updates when deepwiki/ already exists, do not ask again; keep the existing
language and proceed. If the language is unclear, infer it from existing pages.
/deepwiki or "generate deepwiki": run the full flow; the model detects whether this is the first run or an update and proceeds accordingly.Always ensure these exist:
deepwiki/INDEX.md - landing page summary and entry links.deepwiki/assets/ - local images and rendered diagram assets.deepwiki/GENERATION.md - generation metadata for incremental updates.Recommended pages (create as needed):
deepwiki/overview.mddeepwiki/architecture.mddeepwiki/modules/<module>.mddeepwiki/dependencies.mddeepwiki/data-flow.mddeepwiki/glossary.mddeepwiki/assets/ in the generated output.Use the templates in templates/ for page structure and the samples in
examples/ for tone and formatting. Templates define required sections and
minimum content expectations.
Templates:
templates/overview.mdtemplates/architecture.mdtemplates/dependencies.mdtemplates/data-flow.mdtemplates/module.mdtemplates/glossary.mdExamples:
examples/overview-example.mdexamples/architecture-example.mdexamples/dependencies-example.mdexamples/data-flow-example.mdexamples/module-example.mdexamples/glossary-example.mdConfirm output language:
deepwiki/ already exists, do not ask; preserve its language.Scan the repo:
Draft content:
Write or update pages:
Render images and diagrams:
deepwiki/assets/.Regenerate index and toc:
Regenerate index:
INDEX.md should summarize the repo and link to all core pages.Each page MUST follow its template structure and include a "Source References" section listing the relevant paths.
Update Notes format (use when modifying existing pages):
## Update Notes
- YYYY-MM-DD: Short summary of what changed and why.
Aim for richer, more detailed pages by default. Concretely:
cases/ and util/).case-format.md, evaluation-schema.md, operations.md).configuration.md, testing.md, troubleshooting.md, security.md,
telemetry.md, workflow.md).Snippets must be information-dense. Avoid trivial entrypoints or thin wrappers. Prefer snippets that expose:
If only trivial snippets are found, replace them with short extracted tables or structured summaries (e.g., parameters, env vars, or outputs) instead.
- src/app/main.ts.Use this structure for deepwiki/INDEX.md:
# Deepwiki Index
## Summary
- Purpose:
- Tech stack:
- Entry points:
- Where to start:
- How to navigate:
## Start Here
- [Overview](overview.md)
- [Architecture](architecture.md)
## Guides
- [Dependencies](dependencies.md)
- [Data Flow](data-flow.md)
## Modules
- [Module A](modules/module-a.md)
- [Module B](modules/module-b.md)
## Glossary
- [Glossary](glossary.md)
deepwiki/.Always write or update deepwiki/GENERATION.md with the latest commit reference
to support incremental runs. Include at minimum:
Link to GENERATION.md from deepwiki/INDEX.md under a short section such as
"Generation Metadata".
When a page has an "Inputs and Outputs" section, use a single table format and avoid redundant bullet summaries. Add a one-line intro above the table if needed.
Avoid repeating the same information in both bullets and tables. If a table exists for a section (parameters, interfaces, config, inputs/outputs), prefer the table and remove overlapping bullet lists. Use a short introductory sentence only if necessary to frame the table.
Comprehensive PostgreSQL-specific table design reference covering data types, indexing, constraints, performance patterns, and advanced features