Use when you need to know how GitHub the platform works: gh commands and flags, REST and GraphQL, rate limits, tokens, rulesets, issues, release endpoints, Dependabot and CodeQL config. Not for how we drive PRs, reviews and releases (git-github-workflows), raw git (working-with-git), workflow YAML and its cookbooks (working-with-github-actions), or Apps (developing-for-github).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Working With Github?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/joeblackwaslike-working-with-github)
---
name: working-with-github
description: "Use when you need to know how GitHub the platform works: gh commands and flags, REST and GraphQL, rate limits, tokens, rulesets, issues, release endpoints, Dependabot and CodeQL config. Not for how we drive PRs, reviews and releases (git-github-workflows), raw git (working-with-git), workflow YAML and its cookbooks (working-with-github-actions), or Apps (developing-for-github)."
metadata:
last_updated: "2026-11-10"
---
# Working with GitHub
Reference for using **GitHub the platform** — the `gh` CLI, the REST and GraphQL APIs, and the web/repo features (PRs, review, issues, releases, branch protection, security config). The CLI pages in [`references/cli/`](references/cli/) are generated verbatim from a **pinned `gh`** binary (see [`PINNED_VERSION`](PINNED_VERSION) and [`references/VERSIONS.md`](references/VERSIONS.md)); the topic guides in `references/` are fetched from the `github/docs` repo. Every fetched/generated file carries `source`/`fetched_at`/`sha256` frontmatter.
## What this skill is not
| If you need… | Go to |
|---|---|
| How we get work done: commit, open and drive a PR, review loop, AI-reviewer feedback, worktrees, releases | `git-github-workflows` (all runbooks live there) |
| Raw git (commits, rebase, bisect, conflicts, history) | `working-with-git` |
| CI/CD workflow YAML, Actions, OIDC deploys, the Dependabot/CodeQL **Actions cookbooks** | `working-with-github-actions` |
| Build a GitHub App / OAuth app / webhook consumer / Octokit bot | `developing-for-github` |
| **Everything else GitHub** (this skill) | continue below |
## Quick reference
| Task | Read |
|---|---|
| Exact `gh` command/flag | `references/cli/gh__<command>.md` (e.g. `gh__pr__create.md`); start at `references/cli/gh.md` |
| REST vs GraphQL — which to use | `references/howto/rest-vs-graphql.md`, `references/rest-graphql-comparison.md` |
| Don't burn your rate limit | `references/howto/api-efficiency.md`, `references/rest-rate-limits.md`, `references/graphql-rate-limits.md` |
| REST basics / auth / pagination | `references/rest-getting-started.md`, `references/rest-authentication.md`, `references/rest-pagination.md` |
| GraphQL basics / forming calls | `references/graphql-intro.md`, `references/graphql-forming-calls.md` |
| Tokens (classic vs fine-grained PAT) | `references/tokens-personal-access.md`, `references/rest-credentials-secure.md` |
| PR and review features (UI) | `references/pr-*.md`, `references/review-*.md` |
| Review-related API calls (reviews, inline comments, check annotations, statuses) | `references/api-pr-reviews.md`, `api-pr-review-comments.md`, `api-checks-runs.md`, `api-commit-statuses.md`. The runbook that uses them is in `git-github-workflows`. |
| Release and asset endpoints | `references/releases-*.md`. The release runbooks are in `git-github-workflows`. |
| Branch protection / rulesets / merge methods | `references/protected-branches.md`, `references/rulesets-*.md`, `references/merge-methods.md` |
| Issues (create, link, sub-issues, assign) | `references/issues-*.md` |
| Dependabot config (`.github/dependabot.yml`) | `references/dependabot-*.md` |
| CodeQL / code scanning setup | `references/code-scanning-*.md`, `references/codeql-*.md` |
## How to use this skill
1. **Exact CLI usage** — read `references/cli/gh.md` for the command tree, then the specific `gh__<command>__<subcommand>.md` page. These are the literal `gh <cmd> --help` output at the pinned version; trust the live binary if it disagrees and surface the drift.
2. **An API-usage question** (REST vs GraphQL, request efficiency) — start with `references/howto/` (two hand-written guides). For process questions (driving a PR, review loops, releases) use `git-github-workflows` instead, then drill into the fetched `references/*.md` for the official detail.
3. **Uncertain topic** — `grep -ri <term> references/` to locate the right page.
## Behavioral guidance
- **Be rate-limit aware.** Authenticated REST is 5,000 req/hr (15,000 for GitHub Apps on an org); GraphQL is a separate point-budget. Prefer one GraphQL query over N REST calls when fetching nested data; use conditional requests (ETags) for polling. See `references/howto/api-efficiency.md`.
- **Prefer `gh` for one-offs**, the API for automation. `gh api` is the escape hatch for any REST/GraphQL endpoint with auth handled for you.
- **Dependabot/CodeQL split:** this skill owns the repo-settings/security-config side (`.github/dependabot.yml`, version updates, alerts, code-scanning setup). The advanced *workflow YAML* lives in `working-with-github-actions`.
## Keeping this current
Regenerated by [`scripts/update_docs.js`](scripts/update_docs.js): generates the `gh` CLI reference from the local pinned binary and fetches the curated docs.github.com guides. Refresh locally with `make update-working-with-github`. Bump the CLI pin via `brew upgrade gh`, update [`PINNED_VERSION`](PINNED_VERSION), then rerun. The weekly CI workflow auto-discovers the script, refreshes the fetched guides, and skips CLI generation when `gh` is absent or mismatched (no churn).