AgentSkillsCN

deepwiki

通过 DeepWiki 查询任意公开 GitHub 仓库的文档。适用于需要深入了解某个库、框架或依赖项时使用。可通过“查找文档”、“X 是如何工作的”、“DeepWiki”、“DeepWiki”等短语触发。

SKILL.md
--- frontmatter
name: deepwiki
description: >
  Query any public GitHub repo's documentation via DeepWiki.
  Use when needing to understand a library, framework, or dependency.
  Triggers on "look up docs", "how does X work", "deepwiki", "deepwiki".

deepwiki

Query any public GitHub repo's docs from the terminal via DeepWiki. Assumes Node.js is installed.

Commands

CommandUsageDescription
tocnpx @seflless/deepwiki toc <owner/repo>Table of contents
wikinpx @seflless/deepwiki wiki <owner/repo>Full wiki content
asknpx @seflless/deepwiki ask <owner/repo> "<question>"AI-powered Q&A
asknpx @seflless/deepwiki ask <repo1> <repo2> "<question>"Multi-repo Q&A (max 10)

Flags

FlagPurpose
--jsonRaw JSON output (good for piping)
-q, --quietNo spinners/progress
--no-colorDisable colors

Examples

bash
# Understand a library's structure
npx @seflless/deepwiki toc facebook/react

# Get full docs for reference
npx @seflless/deepwiki wiki oven-sh/bun --json > bun-docs.json

# Ask a specific question
npx @seflless/deepwiki ask anthropics/claude-code "How does the tool permission system work?"

# Cross-project question
npx @seflless/deepwiki ask facebook/react vercel/next.js "How do server components work across these projects?"

Tips

  • Use --json when you need structured data to parse
  • Use toc first to understand what docs exist, then ask for specifics
  • Multi-repo ask is great for understanding how libraries interact