openclaw 网盘下载
OpenClaw

技能详情(站内镜像,无评论)

首页 > 技能库 > DeepWiki Ask

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

综合技能

作者:do_while_true @autoxj

许可证:MIT-0

MIT-0 ·免费使用、修改和重新分发。无需归因。

版本:v1.1.0

统计:⭐ 1 · 187 · 0 current installs · 0 all-time installs

1

安装量(当前) 0

🛡 VirusTotal :良性 · OpenClaw :可疑

Package:autoxj/deepwiki-ask

安全扫描(ClawHub)

  • VirusTotal :良性
  • OpenClaw :可疑

OpenClaw 评估

The skill's declared purpose (querying a DeepWiki MCP endpoint for repo Q&A/structure/contents) is coherent with its instructions and visible code, but the provided source was truncated so a full audit wasn't possible and the skill will send user-provided repo/question data to an external service (privacy risk).

目的

Name/description describe querying DeepWiki MCP for repository info; the code implements an MCP JSON-RPC client that POSTs queries to https://mcp.deepwiki.com/mcp and exposes methods for question/structure/contents. No unrelated binaries, env vars, or services are requested.

说明范围

SKILL.md instructs the agent to run the included Python script with --json and parse stdout. That matches the script's intended CLI usage. The runtime behavior includes network calls to an external DeepWiki MCP endpoint using the repo and question provided by the user — expected for this skill, but it does transmit user inputs outside the host.

安装机制

No install spec; this is instruction + script. No downloads, package installs, or archive extraction are present in the manifest.

证书

The skill requests no environment variables or credentials. It reads/writes a local config.json in its own directory (creates default if missing). All accessed configuration is proportional to the described functionality.

持久

always is false, the skill does not request elevated or cross-skill configuration. It may create a local config.json (expected) but does not modify other skills or system-wide settings according to the visible files.

安装(复制给龙虾 AI)

将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。

请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「DeepWiki Ask」。简介:通过 DeepWiki MCP 查询仓库信息。支持提问、获取结构、获取文档内容。Query a repository via DeepWiki MCP: as…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/autoxj/deepwiki-ask/SKILL.md
(来源:yingzhi8.cn 技能库)

SKILL.md

打开原始 SKILL.md(GitHub raw)

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

# DeepWiki 仓库查询

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

## 触发场景

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

## 参数

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

## 执行流程

### 提问模式
1. 从用户消息提取 **repo**(owner/repo)和 **question**。
2. 执行(必须加 `--json`):
   ```
   python <SKILL_ROOT>/deepwiki_ask.py -r <owner/repo> -q "<question>" --json
   ```
   Windows 下中文问题若编码异常,可把问题写入 UTF-8 文件后:`-q @<SKILL_ROOT>/temp_q.txt`

### 结构模式
1. 从用户消息提取 **repo**(owner/repo)。
2. 执行(必须加 `--json`):
   ```
   python <SKILL_ROOT>/deepwiki_ask.py -r <owner/repo> --structure --json
   ```

### 内容模式
1. 从用户消息提取 **repo**(owner/repo)和可选的 **topic**。
2. 执行(必须加 `--json`):
   ```
   python <SKILL_ROOT>/deepwiki_ask.py -r <owner/repo> --contents --json
   python <SKILL_ROOT>/deepwiki_ask.py -r <owner/repo> --contents --topic "<topic_name>" --json
   ```

3. 解析 stdout JSON:`status == "success"` 则根据操作模式展示相应结果;`status == "error"` 则提示 `message`。
4. 请求可能需 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`:`request_timeout_seconds`(10–600,默认 120)、`request_max_retries`(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 单次问答