# github-api

github-api routes GitHub REST and GraphQL requests through dedicated reference guides. Helps build integrations, automate pull requests, and trigger Actions without leaking tokens.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 148 installs · ★ 25 repo stars
- Author: markpitt
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/markpitt/claude-skills/tree/HEAD/skills/github-api/SKILL.md
- Updated: 2026-02-19
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/github-api

## What it 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.

## Requirements
- Works with: GitHub

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add markpitt/claude-skills --skill github-api -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/github-api/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/github-api/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add markpitt/claude-skills --skill github-api -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/github-api/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add markpitt/claude-skills --skill github-api -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/github-api/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install markpitt/claude-skills skills/github-api
```

2. **Manually: put the files in place**
- File: `.github/skills/github-api/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add markpitt/claude-skills --skill github-api -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/markpitt/claude-skills --path skills/github-api
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/github-api/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add markpitt/claude-skills --skill github-api -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/markpitt/claude-skills/tree/HEAD/skills/github-api/SKILL.md

## When to use it
- 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
- Create a new repository using `gh` and set up protection rules for main
- Call the GitHub API to attach the bug label to issue #12
- Trigger the `build.yml` workflow for production via `gh workflow run`

## Similar
- [github-ops](https://affpapa.org/en/nevibecode/skills/github-ops.md) — skill · 1600 installs
- [github-copilot-starter](https://affpapa.org/en/nevibecode/skills/github-copilot-starter.md) — skill · 8900 installs
- [github-workflow-automation](https://affpapa.org/en/nevibecode/skills/sickn33-github-workflow-automation.md) — skill · 1500 installs
- [github-workflow](https://affpapa.org/en/nevibecode/skills/github-workflow.md) — skill · 829 installs
- [github-actions](https://affpapa.org/en/nevibecode/skills/bobmatnyc-github-actions.md) — skill · 778 installs
- [github-mcp-server](https://affpapa.org/en/nevibecode/skills/github-mcp-server.md) — skill · 243 installs

From the same set: [markpitt/claude-skills](https://affpapa.org/en/nevibecode/by/markpitt/claude-skills.md) — 10 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
