← 返回 Skills 市场
am-will

Read GitHub

作者 am-will · GitHub ↗ · v1.0.1
cross-platform ⚠ suspicious
4736
总下载
3
收藏
29
当前安装
2
版本数
在 OpenClaw 中安装
/install read-github
功能描述
Read GitHub repos the RIGHT way - via gitmcp.io instead of raw scraping. Why this beats web search: (1) Semantic search across docs, not just keyword matching, (2) Smart code navigation with accurate file structure - zero hallucinations on repo layout, (3) Proper markdown output optimized for LLMs, not raw HTML/JSON garbage, (4) Aggregates README + /docs + code in one clean interface, (5) Respects rate limits and robots.txt. Stop pasting raw GitHub URLs - use this instead.
使用说明 (SKILL.md)

Read GitHub Docs

Access GitHub repository documentation and code via the gitmcp.io MCP service.

URL Conversion

Convert GitHub URLs to gitmcp.io:

  • github.com/owner/repogitmcp.io/owner/repo
  • https://github.com/karpathy/llm-councilhttps://gitmcp.io/karpathy/llm-council

CLI Usage

The scripts/gitmcp.py script provides CLI access to repository docs.

List Available Tools

python3 scripts/gitmcp.py list-tools owner/repo

Fetch Documentation

Retrieves the full documentation file (README, docs, etc.):

python3 scripts/gitmcp.py fetch-docs owner/repo

Search Documentation

Semantic search within repository documentation:

python3 scripts/gitmcp.py search-docs owner/repo "query"

Search Code

Search code using GitHub Search API (exact match):

python3 scripts/gitmcp.py search-code owner/repo "function_name"

Fetch Referenced URL

Fetch content from URLs mentioned in documentation:

python3 scripts/gitmcp.py fetch-url owner/repo "https://example.com/doc"

Direct Tool Call

Call any MCP tool directly:

python3 scripts/gitmcp.py call owner/repo tool_name '{"arg": "value"}'

Tool Names

Tool names are dynamically prefixed with the repo name (underscored):

  • karpathy/llm-councilfetch_llm_council_documentation
  • facebook/reactfetch_react_documentation
  • my-org/my-repofetch_my_repo_documentation

Available MCP Tools

For any repository, these tools are available:

  1. fetch_{repo}_documentation - Fetch entire documentation. Call first for general questions.
  2. search_{repo}_documentation - Semantic search within docs. Use for specific queries.
  3. search_{repo}_code - Search code via GitHub API (exact match). Returns matching files.
  4. fetch_generic_url_content - Fetch any URL referenced in docs, respecting robots.txt.

Workflow

  1. When given a GitHub repo, first fetch documentation to understand the project
  2. Use search-docs for specific questions about usage or features
  3. Use search-code to find implementations or specific functions
  4. Use fetch-url to retrieve external references mentioned in docs
安全使用建议
Install only if you are comfortable with the skill making remote requests through gitmcp.io and with agents having access to its broad `fetch-url` and `call` commands. Prefer using the scoped `fetch-docs`, `search-docs`, and `search-code` commands, and avoid allowing arbitrary external URLs or direct MCP tool calls unless you have reviewed the target and trust the remote service.
功能分析
Type: OpenClaw Skill Name: read-github Version: 1.0.1 The skill is classified as suspicious due to the broad capabilities exposed by the `scripts/gitmcp.py` script. Specifically, the `fetch-url` command allows fetching content from arbitrary URLs provided by the user, which could lead to Server-Side Request Forgery (SSRF) or access to internal network resources if the `gitmcp.io` service does not adequately restrict target URLs. Additionally, the `call` command allows invoking any tool on the `gitmcp.io` service with arbitrary JSON arguments, providing a wide attack surface if the service exposes powerful or unintended functionalities. While the `SKILL.md` instructions are benign, the underlying script provides these risky capabilities.
能力评估
Purpose & Capability
The main purpose is reading GitHub documentation and code through gitmcp.io, but the script also exposes a generic MCP tool-call command and a URL-fetch command that is not technically limited to GitHub or documented references.
Instruction Scope
SKILL.md documents the broad commands, including direct tool calls, but does not set clear boundaries, allowlisted tools, confirmation requirements, or destination limits for non-GitHub URL fetching.
Install Mechanism
There is no standalone installer or persistence mechanism, but each command launches `npx -y mcp-remote`, which may fetch and run the MCP bridge package in the user's environment.
Credentials
Network access to gitmcp.io is expected, but the artifact allows user-supplied MCP URLs/tool names through the repo argument and direct-call path, making the effective network/service authority broader than the advertised GitHub-read workflow.
Persistence & Privilege
No artifact evidence shows background persistence, privilege escalation, credential harvesting, local file mutation, or destructive behavior.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install read-github
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /read-github 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Improved description - explains why gitmcp.io beats raw GitHub scraping
v1.0.0
Initial release - Access GitHub repos via gitmcp.io MCP service
元数据
Slug read-github
版本 1.0.1
许可证
累计安装 30
当前安装数 29
历史版本数 2
常见问题

Read GitHub 是什么?

Read GitHub repos the RIGHT way - via gitmcp.io instead of raw scraping. Why this beats web search: (1) Semantic search across docs, not just keyword matching, (2) Smart code navigation with accurate file structure - zero hallucinations on repo layout, (3) Proper markdown output optimized for LLMs, not raw HTML/JSON garbage, (4) Aggregates README + /docs + code in one clean interface, (5) Respects rate limits and robots.txt. Stop pasting raw GitHub URLs - use this instead. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 4736 次。

如何安装 Read GitHub?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install read-github」即可一键安装,无需额外配置。

Read GitHub 是免费的吗?

是的,Read GitHub 完全免费(开源免费),可自由下载、安装和使用。

Read GitHub 支持哪些平台?

Read GitHub 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Read GitHub?

由 am-will(@am-will)开发并维护,当前版本 v1.0.1。

💬 留言讨论