askill
deepwiki-docs

deepwiki-docsSafety --Repository

Fetch, browse, and index documentation from DeepWiki (deepwiki.com) for any public GitHub repository. Use this skill when: (1) looking up documentation for an open-source library, framework, or tool, (2) needing to understand a GitHub repo's architecture, API, or code structure, (3) building a knowledge index/reference document from a repo's documentation, (4) the user mentions DeepWiki, asks about a GitHub project's docs, or needs to look up how a dependency/library works. Triggers on phrases like "look up docs for X", "how does X library work", "fetch documentation for owner/repo", "build a knowledge index", "check the DeepWiki for X", or when coding tasks would benefit from consulting upstream library documentation.

0 stars
1.2k downloads
Updated 2/6/2026

Package Files

Loading files...
SKILL.md

DeepWiki Docs

Fetch and index documentation from DeepWiki for any public GitHub repository. DeepWiki provides AI-generated, structured documentation for open-source projects including architecture diagrams, API references, and code explanations.

Quick Start

Method 1: Script (recommended for bulk operations)

# Get wiki table of contents
python /path/to/scripts/deepwiki_fetch.py structure <owner/repo>

# Get a specific page
python /path/to/scripts/deepwiki_fetch.py content <owner/repo> <page-slug>

# Export TOC as markdown
python /path/to/scripts/deepwiki_fetch.py export <owner/repo> --output toc.md

# Build full knowledge index (all pages in one document)
python /path/to/scripts/deepwiki_fetch.py index <owner/repo> --output docs.md

Method 2: web_fetch (for quick lookups)

# Fetch repo overview + sidebar structure
web_fetch("https://deepwiki.com/{owner}/{repo}")

# Fetch a specific documentation page
web_fetch("https://deepwiki.com/{owner}/{repo}/{page-slug}")

Parse the returned HTML:

  • Sidebar <a> links matching /{owner}/{repo}/{slug} → table of contents
  • Main text content → documentation

Workflow

Step 1: Get Wiki Structure

Always start by fetching the repository's documentation structure to discover available pages.

Use the script:

python scripts/deepwiki_fetch.py structure owner/repo

Or use web_fetch on https://deepwiki.com/{owner}/{repo} and parse sidebar links.

Step 2: Fetch Relevant Pages

Based on the user's question, select and fetch the most relevant page(s).

Page slugs follow the pattern: {N}-{title} or {N.M}-{title} (e.g., 4.1-fiber-architecture).

Step 3: Synthesize and Present

Summarize the fetched documentation content in context of the user's question. Always cite the DeepWiki source URL.

Building a Knowledge Index

For comprehensive documentation needs, use the index command to create a single markdown document containing all wiki pages. This is useful for:

  • Creating offline reference documents
  • Building LLM context for coding tasks
  • Generating documentation archives
python scripts/deepwiki_fetch.py index owner/repo --output repo_docs.md

Page Slug Format

PatternExampleDescription
{N}-{title}1-overviewTop-level section
{N.M}-{title}4.1-fiber-architectureSub-section
{N.M.K}-{title}3.2.1-webpack-configDeep sub-section

Reference Files

Notes

  • Only public GitHub repositories are available without authentication
  • If a repo is not indexed, direct the user to https://deepwiki.com to request indexing
  • The script uses only Python stdlib (no pip installs needed)
  • For the DeepWiki MCP server (advanced): https://mcp.deepwiki.com/mcp (no auth, three tools: read_wiki_structure, read_wiki_contents, ask_question)

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

AI review pending.

Metadata

Licenseunknown
Version-
Updated2/6/2026
PublisherChenYCL

Tags

apici-cdgithubgithub-actionsllmsecurity