搜索

PythonReactSEOPDF
GitHub Skill

deepwiki-api

This skill enables GitHub repository documentation exploration using DeepWiki API directly via curl. Use when researching repository structure, understanding library APIs, or asking questions about open-source projects. MCP server not required.

s-hiraoku☆ 9 仓库 Stars5 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

DeepWiki API (Direct)

Overview

DeepWiki provides AI-powered documentation exploration for GitHub repositories. This skill uses the API directly via curl - no MCP server required.

Base URL

https://api.deepwiki.com

Read Wiki Structure

Get a list of documentation topics for a repository.

Endpoint
GET https://api.deepwiki.com/wiki/{owner}/{repo}/structure
Usage
curl -s "https://api.deepwiki.com/wiki/microsoft/vscode/structure" \
  -H "Accept: application/json" | jq '.'

Read Wiki Contents

Get full documentation content for a repository.

Endpoint
GET https://api.deepwiki.com/wiki/{owner}/{repo}/contents
Usage
curl -s "https://api.deepwiki.com/wiki/xtermjs/xterm.js/contents" \
  -H "Accept: application/json" | jq '.'

Ask Question

Ask a question about a repository and get AI-generated answers.

Endpoint
POST https://api.deepwiki.com/wiki/{owner}/{repo}/ask
Usage
curl -s -X POST "https://api.deepwiki.com/wiki/microsoft/vscode/ask" \
  -H "Content-Type: application/json" \
  -d '{"question": "How does the terminal handle PTY integration?"}'

Common Workflows

Research a Library
# Get structure first
curl -s "https://api.deepwiki.com/wiki/xtermjs/xterm.js/structure" | jq '.topics[]'

# Then ask specific questions
curl -s -X POST "https://api.deepwiki.com/wiki/xtermjs/xterm.js/ask" \
  -H "Content-Type: application/json" \
  -d '{"question": "How to implement custom key handling?"}'
Understand VS Code Patterns
curl -s -X POST "https://api.deepwiki.com/wiki/microsoft/vscode/ask" \
  -H "Content-Type: application/json" \
  -d '{"question": "How are WebView panels implemented?"}'
Explore Repository Architecture
curl -s -X POST "https://api.deepwiki.com/wiki/anthropics/claude-code/ask" \
  -H "Content-Type: application/json" \
  -d '{"question": "What is the overall architecture?"}'

Response Processing

# Extract answer only
| jq '.answer'

# Get with sources
| jq '{answer, sources}'

Notes

  • No API key required for public repositories
  • Rate limits may apply
  • Responses are AI-generated based on repository content

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-02-02
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!