github-api
Skill4 starsChanged 5 months agoMITView on GitHub
GitHub REST API calls with a token you are given. Uses a token supplied by the caller (GITHUB_TOKEN, or passed in by an orchestrator/workflow) to read or write issues, pull requests, repos, commits, file contents, Actions runs, and notifications, and to search — picking the right endpoint, paginating, and reading results. It does NOT log anyone in or obtain credentials: if no token is available it stops and says so. Use in headless/server contexts or when a token is provided; for interactive OAuth login use the `github-client` skill instead.
- Reads credentials
5 other projects use a version of this.
Adopted by
Most recently taken up by
- nikhonit/social-media-api-skillstheir own version, first seen Oct 13, 2026
- scavio-ai/skillstheir own version, first seen Oct 11, 2026
- cooker/wxHmtheir own version, first seen Oct 9, 2026
- lindeskar/claude-configtheir own version, first seen Oct 2, 2026
- ckifonidis/claude-code-skilstheir own version, first seen Feb 17, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- cooker/wxHm★ 70same name
- scavio-ai/skills★ 48same name
- nikhonit/social-media-api-skills★ 3same name
- ckifonidis/claude-code-skils★ 2same name
- lindeskar/claude-config★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository2 other files it gives its agents.
- github-client-pureSkill
- github-clientSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 0 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Use this skill to read and write GitHub data through the REST API at https://api.github.com.
- Very specific: line 22
Use the token from GITHUB_TOKEN, or one handed to you by the caller (orchestrator, workflow, or environment).
- Very specific: line 29
Only ever send the token to api.github.com — never put it in a URL, send it to another host, echo it, or write it to a shared/committed …
- Very specific: line 39
Every call is METHOD https://api.github.com<path> with the three headers above.
- Very specific: line 74
Prefer the smallest request: a specific path + per_page over fetching everything and filtering client-side.
- Very specific: line 79
Check X-RateLimit-Remaining and X-RateLimit-Reset (epoch seconds).
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GitHub REST API
Use this skill to read and write GitHub data through the REST API at
https://api.github.com. You issue the HTTP requests yourself with whatever
capability you have — a shell (curl), an HTTP request tool, or a language
runtime. This skill tells you which request to make and how to read the result.
Using your token
This skill makes calls with a token provided to you — it does not log anyone in or obtain credentials itself.
- Use the token from
GITHUB_TOKEN, or one handed to you by the caller (orchestrator, workflow, or environment). - Send it as
Authorization: Bearer <token>on every request, together withAccept: application/vnd.github+jsonandX-GitHub-Api-Version: 2022-11-28. - If no token is available, stop and say so — you cannot acquire one here.
(The
github-clientskill handles interactive OAuth login; this skill is for headless use where a token is supplied.) - Only ever send the token to
api.github.com— never put it in a URL, send it to another host, echo it, or write it to a shared/committed file.
When is a token required? Public, read-only data works without one but is
capped at 60 requests/hour (authenticated: 5,000/hour), and private resources are
invisible (they return 404). Anything private, any write, and search/code
require a token.
The request shape
Every call is METHOD https://api.github.com<path> with the three headers
above. Paths use {owner}/{repo} and resource ids, e.g.
/repos/{owner}/{repo}/issues/{number}. Bodies (for POST/PATCH) are JSON; add
-H "Content-Type: application/json" -d '{...}'.
Most-used recipes
5 most recent open issues in a repo (newest first; note: this endpoint also
returns pull requests — skip any item that has a pull_request field):
curl -sS "https://api.github.com/repos/vercel/next.js/issues?state=open&sort=created&direction=desc&per_page=5" \
-H "Authorization: Bearer $GITHUB_TOKEN" -H "Accept: application/vnd.github+json"Search issues/PRs across GitHub (returns { total_count, items }):
curl -sS "https://api.github.com/search/issues?q=repo:facebook/react+is:issue+is:open+label:bug&sort=created&order=desc&per_page=5" \
-H "Authorization: Bearer $GITHUB_TOKEN" -H "Accept: application/vnd.github+json"One issue with its body: GET /repos/{owner}/{repo}/issues/{number}
Recent commits on a branch: GET /repos/{owner}/{repo}/commits?sha={branch}&per_page=10
A file's contents: GET /repos/{owner}/{repo}/contents/{path}?ref={branch} (content is base64; or send Accept: application/vnd.github.raw for the raw bytes).
See references/endpoints.md for the full catalog and references/search-syntax.md for search qualifiers.
Conventions that trip people up
- "Most recent" / "latest" →
sort=created&direction=desc. "Top N" →per_page=N. - The repo issues list includes PRs. Filter them out by checking for a
pull_requestkey on each item. - Pagination:
per_page(max 100) +page. The responseLinkheader carriesrel="next"; follow it to page, stop when it's absent. - Dates are ISO 8601 UTC (
2026-06-19T20:13:00Z). Search supports ranges likecreated:>=2026-01-01. - Search has its own, lower rate limit (~30 requests/min) and caps results at 1,000 — narrow the query rather than paging deeply.
- Prefer the smallest request: a specific path +
per_pageover fetching everything and filtering client-side.
Errors & rate limits
401invalid/expired token — the supplied token is bad or expired; request a fresh one from whoever provided it.403often a rate-limit or permission issue ·404missing or no access (GitHub hides private resources as 404) ·422validation error (bad query/params).- Check
X-RateLimit-RemainingandX-RateLimit-Reset(epoch seconds). On403/429with aRetry-Afterheader, wait that many seconds before retrying. Back off on secondary-rate-limit messages. - On error, the JSON body has a
messageand often adocumentation_url— read it before retrying.
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.

