github-docs
Skill4 starsChanged 7 months agoMITView on GitHub
Reference and APIs for retrieving GitHub documentation, page lists, and article content programmatically for LLMs. You MUST load this skill when asked to search or retrieve GitHub documentation.
In this repository124 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- .github/workflows/AGENTS.mdAGENTS.md
- .vscode/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- agent-log-analysisSkill
- agent-mdSkill
- agent-md-writerSkill
- agent-skill-md-writerSkill
- agentskillsSkill
- agents-md-writerSkill
- ai-prompt-writerSkill
- ansibleSkill
- apache-airflow-apiSkill
- apache-airflow-dagsSkill
- astro-cliSkill
- astronomer-docsSkill
- awesome-copilotSkill
- brainstorm-agent-runsSkill
- brainstorm-github-prSkill
- brainstormSkill
- catSkill
- chrome-devtoolsSkill
- claude-docsSkill
- codeqlSkill
- code-reviewSkill
- code-tourSkill
- coding-standard-writerSkill
- context-aware-opsSkill
- copilot-cliSkill
- copilot-docsSkill
- critical-thinkingSkill
- datadog-agentSkill
- datadog-apiSkill
- datadog-mcpSkill
- datadog-monitorsSkill
- datadog-pulumiSkill
- devcontainerSkill
- dictationSkill
- direnvSkill
- dockerfileSkill
- dockerSkill
- docs-reviewSkill
- docs-writerSkill
- dot-claudeSkill
- dotfilesSkill
- dot-githubSkill
- editorconfigSkill
- fact-writerSkill
- gdpr-compliantSkill
- gh-agent-taskSkill
- gh-apiSkill
- gh-aw-compileSkill
- gh-aw-firewall-debugSkill
- gh-aw-firewallSkill
- gh-aw-newSkill
- gh-awSkill
- gh-aw-troubleshootingSkill
- gh-codespaceSkill
- gh-issueSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
Select the Endpoint: Use the appropriate API based on the context.
- Very specific: line 29
Execute the Query: Use webfetch or curl to fetch the data.
- Very specific: line 34
All endpoints are hosted at https://docs.github.com/.
- Very specific: line 46
Search API: Search across all docs content.
- Very specific: line 51
Prefer Markdown Extraction: When reading articles for context, use the /api/article/body endpoint rather than /api/article, as the body …
- Very specific: line 52
Always Specify Language and Version: When using the Page List or Search APIs, specify language=en and version=free-pro-team@latest (or the …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
github-docs
<!-- markdownlint-disable MD013 MD023 MD031 MD032 -->When to Use
- Documentation Search: Locating specific GitHub documentation articles via search queries.
- Article Retrieval: Fetching the full rendered markdown of a specific GitHub docs page.
- Documentation Browsing: Programmatically listing available pages, languages, or versions of GitHub docs.
When Not to Use
- GitHub API/Operations: Interacting with live repositories, issues, or PRs. Use
gh,gh-api, or thegithub-mcp-serverdirectly for operational data. - REST/GraphQL Endpoint Usage: Executing REST/GraphQL queries for repo data, unless looking up the documentation of how those APIs work.
Core Process
- Identify the Need: Determine whether you need to search for a topic or fetch a specific known documentation path.
- Select the Endpoint: Use the appropriate API based on the context.
- For searching:
/api/search/v1 - For listing available pages:
/api/pagelist/{language}/{version} - For retrieving full markdown:
/api/article/body
- For searching:
- Execute the Query: Use
webfetchorcurlto fetch the data. The documentation APIs return structured JSON or markdown, which are optimized for LLM consumption. - Process Content: Extract the relevant information to answer the user's query or inform the ongoing task.
APIs & Usage
All endpoints are hosted at https://docs.github.com/. Use webfetch or curl to access them.
- Versions API: Lists all available documentation versions.
curl "https://docs.github.com/api/pagelist/versions" - Languages API: Lists all available languages.
curl "https://docs.github.com/api/pagelist/languages" - Page List API: Returns every docs page path for a given language and version.
curl "https://docs.github.com/api/pagelist/en/free-pro-team@latest" - Article API: Returns the full rendered content and context of any docs page as JSON.
curl "https://docs.github.com/api/article?pathname=/en/get-started/start-your-journey/about-github-and-git" - Article Body API: Returns the full rendered content of any docs page as markdown (preferred for context loading).
curl "https://docs.github.com/api/article/body?pathname=/en/get-started/start-your-journey/about-github-and-git" - Search API: Search across all docs content.
curl "https://docs.github.com/api/search/v1?query=actions&language=en&version=free-pro-team@latest"
Core Principles
- Prefer Markdown Extraction: When reading articles for context, use the
/api/article/bodyendpoint rather than/api/article, as the body endpoint directly returns markdown which minimizes token usage and avoids JSON unwrapping. - Always Specify Language and Version: When using the Page List or Search APIs, specify
language=enandversion=free-pro-team@latest(or the relevant enterprise version) to ensure accurate results.
Common Pitfalls
- Confusing Docs API with GitHub API: The
docs.github.com/api/endpoints are exclusively for retrieving documentation content, not for operating on GitHub resources (which useapi.github.com). - Missing Pathname Parameter: The Article and Article Body APIs require the
pathnamequery parameter to be URL-encoded if it contains special characters, though typically paths start with/en/. - Search vs. MCP Tools: The GitHub MCP server (
github-mcp-server) provides operational tools but does not include docs search. You must use the RESTSearch APIlisted here to find documentation.
References
- https://docs.github.com/llms.txt - The official GitHub documentation curated for LLMs.
- https://github.com/llms.txt - Curated links for GitHub-related projects and resources.
Related Skills
- gh: You MUST load this skill when interacting with the GitHub CLI for operational tasks (as opposed to docs retrieval).
- gh-api:
You MUST load this skill when interacting with the main GitHub API (
api.github.com).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

