中文导读
Read GitHub Docs 是一套面向一人公司的通用 playbook,帮助你用更少的人力完成更稳的增长、交付与决策。
说明: 原始步骤、命令与 API 名称保留英文,以避免参数和接口名称失真。
概览
Access GitHub repository documentation and code via the gitmcp.io MCP service. URL Conversion
Convert GitHub URLs to gitmcp.io:
- github.com/owner/repo → gitmcp.io/owner/repo
- https://github.com/karpathy/llm-council → https://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-council → fetch_llm_council_documentation
- facebook/react → fetch_react_documentation
- my-org/my-repo → fetch_my_repo_documentation
- Available MCP Tools
- For any repository, these tools are available:
- fetch_{repo}_documentation - Fetch entire documentation. Call first for general questions.
- search_{repo}_documentation - Semantic search within docs. Use for specific queries.
- search_{repo}_code - Search code via GitHub API (exact match). Returns matching files.
- fetch_generic_url_content - Fetch any URL referenced in docs, respecting robots.txt.
- Workflow
- When given a GitHub repo, first fetch documentation to understand the project
- Use search-docs for specific questions about usage or features
- Use search-code to find implementations or specific functions
- Use fetch-url to retrieve external references mentioned in docs
SKILL.md 原文件
预览原始 SKILL.md. 下面可以直接查看完整原文。可滚动阅读、检查结构,再下载精确的 SKILL.md 原文件。
# read-github
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/repo → gitmcp.io/owner/repo
https://github.com/karpathy/llm-council → https://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-council → fetch_llm_council_documentation
facebook/react → fetch_react_documentation
my-org/my-repo → fetch_my_repo_documentation
Available MCP Tools
For any repository, these tools are available:
fetch_{repo}_documentation - Fetch entire documentation. Call first for general questions.
search_{repo}_documentation - Semantic search within docs. Use for specific queries.
search_{repo}_code - Search code via GitHub API (exact match). Returns matching files.
fetch_generic_url_content - Fetch any URL referenced in docs, respecting robots.txt.
Workflow
When given a GitHub repo, first fetch documentation to understand the project
Use search-docs for specific questions about usage or features
Use search-code to find implementations or specific functions
Use fetch-url to retrieve external references mentioned in docs
预览原始 SKILL.md. 下面可以直接查看完整原文。可滚动阅读、检查结构,再下载精确的 SKILL.md 原文件。
# read-github
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/repo → gitmcp.io/owner/repo
https://github.com/karpathy/llm-council → https://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-council → fetch_llm_council_documentation
facebook/react → fetch_react_documentation
my-org/my-repo → fetch_my_repo_documentation
Available MCP Tools
For any repository, these tools are available:
fetch_{repo}_documentation - Fetch entire documentation. Call first for general questions.
search_{repo}_documentation - Semantic search within docs. Use for specific queries.
search_{repo}_code - Search code via GitHub API (exact match). Returns matching files.
fetch_generic_url_content - Fetch any URL referenced in docs, respecting robots.txt.
Workflow
When given a GitHub repo, first fetch documentation to understand the project
Use search-docs for specific questions about usage or features
Use search-code to find implementations or specific functions
Use fetch-url to retrieve external references mentioned in docs
评论与讨论
添加评论