Index of every page on this site: llms.txt
All skills
am-will avatar

/read-github

@9f954c3
by am.willam-will/codex-skills1k stars
60
Run it yourself

Read and search GitHub repository documentation via gitmcp.io MCP service. **WHEN TO USE:** - User provides a GitHub URL - User mentions a specific repo in owner/repo format - User asks "what does this repo do?", "read the docs for X repo", or similar - User wants to search code or docs within a repo

Use this Skill: https://skilld.dev/gh/am-will/codex-skills/read-github

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈79 tokens for metadata: the name and description. ≈551 when used: this file.

Description uses 4.0% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈316 characters, or 4.0%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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:

  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

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

4 warnings2mo5 checks · Risk MEDIUM
  • Gen Agent Trust Hub2mo

    This skill accesses GitHub repositories via an external service called gitmcp.io. It downloads and executes a package from the NPM registry at runtime to establish this connection. Furthermore, it is vulnerable to indirect prompt injection, as it processes untrusted documentation and code directly from GitHub repositories without sanitization.

  • Socket2mo

    2 alerts: gptAnomaly

  • Snyk2mo

    Risk: MEDIUM · 2 issues

  • Runlayer9mo

    1/2 files flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 9f954c3. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 10 months ago

README badge

README badge for am-will/codex-skills/read-github

Fetches and searches GitHub repository documentation and code through the gitmcp.io MCP service. Includes CLI tools to fetch full docs, search documentation semantically, search code by exact match, and retrieve external URLs referenced in repositories.

Generated from the current SKILL.md.

What does this skill do?
It reads and searches GitHub repository documentation and code via the gitmcp.io MCP service. You provide a GitHub URL or owner/repo, and the skill fetches docs, performs semantic search within documentation, searches code via GitHub API, and retrieves URLs referenced in docs.
Do I need to authenticate with GitHub?
The skill uses the gitmcp.io MCP service, which handles GitHub API access. No explicit authentication setup is described in the SKILL.md.
Can this search code within a repo?
Yes. The skill provides exact-match code search via GitHub's Search API using the search-code command. It can find specific functions or code patterns but does not perform fuzzy or semantic code search.
What's the difference between search-docs and search-code?
search-docs performs semantic search within repository documentation (README, docs files, etc.), while search-code performs exact-match searching on the actual source code using GitHub's Search API.

Generated from the current SKILL.md. These answers refresh after source changes.