github-api — Claude Code skill: what it does, how to install
github-api routes GitHub REST and GraphQL requests through dedicated reference guides. Helps build integrations, automate pull requests, and trigger Actions without leaking tokens.
no license 148 installs ★ 25 updated 2026-02-19
npx skills add markpitt/claude-skills --skill github-api -a claude-codeWhat github-api does
This skill categorises GitHub operations into separate task guides. It covers repository management and CI workflows. The assistant pairs commands with REST API v3 or GraphQL API v4 depending on data complexity.
Security directives form the core of the instructions. Authentication must use $GITHUB_TOKEN or the gh tool instead of plain text strings. Content from issues or reviews is handled as raw data to stop prompt injection.
You need an active gh auth login session or an exported GITHUB_TOKEN before running calls.
What it helps with
- automate branch protection and repository creation
- triage pull request reviews and comments
- dispatch GitHub Actions workflows from shell scripts
- run authenticated queries against the GraphQL endpoint
Example prompts for the agent
- Create a new repository using
ghand set up protection rules for main - Call the GitHub API to attach the bug label to issue #12
- Trigger the
build.ymlworkflow for production viagh workflow run
How to install github-api
1Skills CLI (Vercel)
npx skills add markpitt/claude-skills --skill github-api -a claude-code2Manually: put the files in place
~/.claude/skills/github-api/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/github-api/
1Skills CLI (Vercel)
npx skills add markpitt/claude-skills --skill github-api -a codex2Manually: put the files in place
.agents/skills/github-api/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add markpitt/claude-skills --skill github-api -a cursor2Manually: put the files in place
.cursor/skills/github-api/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install markpitt/claude-skills skills/github-api2Manually: put the files in place
.github/skills/github-api/SKILL.md1Skills CLI (Vercel)
npx skills add markpitt/claude-skills --skill github-api -a gemini-cli2Platform CLI
gemini skills install https://github.com/markpitt/claude-skills --path skills/github-apiManually: put the files in place
.devin/skills/github-api/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add markpitt/claude-skills --skill github-api -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about github-api
How to install github-api in Claude Code?
Run npx skills add markpitt/claude-skills --skill github-api -a claude-code.
What does the github-api skill do?
It guides the assistant toward verified patterns for GitHub REST API v3 and GraphQL API v4.
How are credentials secured?
Instructions forbid raw tokens in commands, requiring gh auth login or $GITHUB_TOKEN.