返回顶部
d

deepwiki-askDeepWiki查询

通过 DeepWiki MCP 查询仓库信息。支持提问、获取结构、获取文档内容。Query a repository via DeepWiki MCP: ask questions, get structure, get documentation. 用户提供 owner/repo 时触发。

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.1.0
安全检测
已通过
313
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

deepwiki-ask

DeepWiki 仓库查询

通过 DeepWiki MCP 对指定仓库发起查询,支持三种操作模式:提问、获取仓库结构、获取文档内容。

触发场景

  • - 用户询问某仓库的作用、结构或功能
  • 用户提供仓库名(owner/repo)并带有问题
  • 用户需要了解仓库的整体结构
  • 用户需要查看仓库的详细文档内容

参数

参数必填说明
repo仓库名 owner/repo
question
否 | 要问的问题(提问模式) | | structure | 否 | 获取文档结构(结构模式) | | contents | 否 | 获取文档内容(内容模式) | | topic | 否 | 指定文档主题(与 contents 一起使用) |

执行流程

提问模式

  1. 1. 从用户消息提取 repo(owner/repo)和 question
  2. 执行(必须加 --json):

python ROOT>/deepwikiask.py -r -q --json

Windows 下中文问题若编码异常,可把问题写入 UTF-8 文件后:-q @ROOT>/tempq.txt

结构模式

  1. 1. 从用户消息提取 repo(owner/repo)。
  2. 执行(必须加 --json):

python ROOT>/deepwikiask.py -r --structure --json

内容模式

  1. 1. 从用户消息提取 repo(owner/repo)和可选的 topic
  2. 执行(必须加 --json):

python ROOT>/deepwikiask.py -r --contents --json
python ROOT>/deepwikiask.py -r --contents --topic --json

  1. 3. 解析 stdout JSON:status == success 则根据操作模式展示相应结果;status == error 则提示 message。
  2. 请求可能需 30–120 秒,需等待。

输出示例

提问模式

json {status: success, repo: owner/repo, mode: question, question: ..., result: ...}

结构模式

json {status: success, repo: owner/repo, mode: structure, result: ...}

内容模式

json {status: success, repo: owner/repo, mode: contents, result: ...}

错误响应

json {status: error, repo: owner/repo, message: ...}

配置

config.json:requesttimeoutseconds(10–600,默认 120)、requestmaxretries(0–10,默认 3)。

错误处理

  • - 仓库格式错误:提示 owner/repo 格式
  • 超时/网络错误:脚本重试后返回 status: error,需要提示用户检查网络

历史版本

v1.1.0 (2026-03-14)

  • - 📋 支持获取文档结构(--structure)
  • 📄 支持获取文档内容(--contents)
  • 📄 支持指定文档主题(--topic)
  • 🔄 重构为 MCP 客户端类,移除 requests 依赖,改用标准库 urllib

v1.0.0 (2026-03-10)

  • - 🎉 初始版本发布
  • 📖 支持 owner/repo + question 单次问答

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 deepwiki-ask-1776165569 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 deepwiki-ask-1776165569 技能

通过命令行安装

skillhub install deepwiki-ask-1776165569

下载

⬇ 下载 deepwiki-ask v1.1.0(免费)

文件大小: 6.29 KB | 发布时间: 2026-4-15 13:49

v1.1.0 最新 2026-4-15 13:49
Expanded to support repository structure and documentation queries:

- Added structure mode: retrieve repository documentation structure with --structure.
- Added contents mode: retrieve detailed documentation content with --contents, supports specifying a topic.
- Updated parameters and output formats to handle multiple query modes.
- Refined description to clarify function and use scenarios.
- Maintained previous Q&A functionality; improved error handling instructions.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部