{"skill":{"slug":"deepwiki-mcp","displayName":"DeepWiki MCP","summary":"Query DeepWiki MCP to get AI-grounded answers about any public GitHub repository. Use when answering questions about a repo's source code, architecture, conf...","description":"---\nname: deepwiki\ndescription: >\n  Query DeepWiki MCP to get AI-grounded answers about any public GitHub repository.\n  Use when answering questions about a repo's source code, architecture, configuration,\n  or internals. Triggers on \"how does X work in <repo>\", \"deepwiki\", \"look up in codebase\",\n  \"ask deepwiki\", \"check the source code\".\ntriggers:\n  - deepwiki\n  - look up in codebase\n  - ask deepwiki\n  - check the source\n  - how does X work in\n  - openclaw source\n  - repo architecture\n  - codebase question\n---\n\n# DeepWiki MCP\n\nQuery any public GitHub repository using DeepWiki's AI-powered documentation and Q&A service. No API key, no auth, free.\n\n**MCP endpoint:** `https://mcp.deepwiki.com/mcp`\n\n## Scope & Boundaries\n\n**This skill handles:**\n- Asking natural-language questions about any public GitHub repo\n- Listing documentation topics indexed by DeepWiki\n- Fetching full wiki contents for a repo\n- Running queries via the included helper script\n\n**This skill does NOT handle:**\n- Private repository access (requires paid Devin account)\n- Modifying repositories or submitting PRs\n- Real-time code analysis (DeepWiki may lag a few days behind latest commits)\n- Local code search or grep (use standard file tools for that)\n\n## Inputs\n\n| Input | Required | Description |\n|-------|----------|-------------|\n| Question | Yes | Natural-language question about a repo |\n| Repository | No | `owner/repo` format. Defaults to `openclaw/openclaw` |\n| Action | No | `ask` (default), `topics`, or `docs` |\n\n## Outputs\n\n- AI-grounded text answer with source references from the repo\n- Or a structured list of documentation topics\n- Or full wiki contents (large output)\n\n## Workflow\n\n### Step 1 — Run the helper script\n\nThe script is located in this skill's directory at `scripts/deepwiki.sh`.\n\n```bash\n# Ask a question (defaults to openclaw/openclaw)\n<skill_dir>/scripts/deepwiki.sh ask \"How does session compaction work?\"\n\n# Ask about a specific repo\n<skill_dir>/scripts/deepwiki.sh ask facebook/react \"How does concurrent mode work?\"\n\n# List documentation topics\n<skill_dir>/scripts/deepwiki.sh topics openclaw/openclaw\n\n# Get full wiki contents (large output — prefer ask for targeted queries)\n<skill_dir>/scripts/deepwiki.sh docs openclaw/openclaw\n```\n\nReplace `<skill_dir>` with the directory containing this SKILL.md.\n\n### Step 2 — Interpret and relay the answer\n\nDeepWiki returns AI-generated answers grounded in the repo's actual source code. The response typically includes:\n- Direct answer to the question\n- References to specific files and code paths\n- Context about related functionality\n\nRelay the answer to the user, adding your own context if you have additional knowledge.\n\n### Step 3 — Follow up if needed\n\nIf the answer is incomplete or raises new questions:\n- Ask a more specific follow-up question\n- Use `topics` to find relevant documentation sections\n- Use `docs` for broader context (but note: output can be very large)\n\n## Direct curl (fallback)\n\nIf the helper script is unavailable:\n\n```bash\ncurl -s -X POST https://mcp.deepwiki.com/mcp \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Accept: application/json, text/event-stream\" \\\n  -d '{\n    \"jsonrpc\": \"2.0\",\n    \"id\": 1,\n    \"method\": \"tools/call\",\n    \"params\": {\n      \"name\": \"ask_question\",\n      \"arguments\": {\n        \"repoName\": \"owner/repo\",\n        \"question\": \"YOUR QUESTION\"\n      }\n    }\n  }' | grep '^data:' | grep '\"id\":1' | sed 's/^data: //' | \\\n  python3 -c \"import json,sys; d=json.load(sys.stdin); print(d['result']['content'][0]['text'])\"\n```\n\n## MCP Tools Reference\n\n| Tool | Purpose | Arguments |\n|------|---------|-----------|\n| `ask_question` | Ask any question, get AI-grounded answer | `repoName`, `question` |\n| `read_wiki_structure` | List documentation topics for a repo | `repoName` |\n| `read_wiki_contents` | Get full wiki docs for a repo | `repoName` |\n\n## Error Handling\n\n| Problem | Detection | Action |\n|---------|-----------|--------|\n| Timeout (>60s) | curl hangs or no response | Retry once; DeepWiki may be under load |\n| Empty response | No `data:` lines in SSE stream | Check if repo exists and is public |\n| Repo not indexed | Error message about unknown repo | Try again — DeepWiki indexes on first request |\n| Rate limited | HTTP 429 or error response | Wait 30s and retry |\n| Script not found | File not at expected path | Use direct curl fallback |\n\n## Success Criteria\n\n- DeepWiki returns a substantive answer (not an error or empty response)\n- Answer references actual code/files from the repository\n- User's question is addressed with grounded information\n\n## Configuration\n\nNo persistent configuration required. The skill uses:\n- `exec` tool to run the helper script (bash + curl + python3)\n- No API keys or authentication needed\n- Works for any public GitHub repository\n\n**System dependencies:**\n\n| Dependency | Purpose |\n|------------|---------|\n| bash | Script execution |\n| curl | HTTP requests to MCP endpoint |\n| python3 | JSON parsing of SSE responses |\n\n## Notes\n\n- Responses take 10-30s (AI generates answers server-side)\n- `ask_question` is the most useful tool — use it first\n- DeepWiki crawls repos periodically; may lag behind very recent commits\n- Works for any public GitHub repo, not just OpenClaw\n- For private repos, a paid [Devin](https://devin.ai) account is required\n","tags":{"latest":"1.0.0"},"stats":{"comments":0,"downloads":643,"installsAllTime":1,"installsCurrent":1,"stars":0,"versions":1},"createdAt":1772296396494,"updatedAt":1778491670926},"latestVersion":{"version":"1.0.0","createdAt":1772296396494,"changelog":"Initial release: AI-powered Q&A for any public GitHub repo via DeepWiki MCP, helper script, no auth required","license":null},"metadata":null,"owner":{"handle":"chunhualiao","userId":"s17czb50cec363y7yz4cchy9p9848424","displayName":"Chunhua Liao","image":"https://avatars.githubusercontent.com/u/1627206?v=4"},"moderation":null}