Skip to content
Back to skills

Working With Github

ASecurity

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).

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 13, 2026
toolsrustgogitapici/cdsecurity

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned November 13, 2026

npx -y skills add joeblackwaslike/agent-skills --skill working-with-github --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Working With Github?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Working With Github
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/joeblackwaslike-working-with-github/badge)](https://www.skillsdirectory.com/skills/joeblackwaslike-working-with-github)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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).

Files in this skill

  • PINNED_VERSION10 B
  • SKILL.md5 KB
  • references/VERSIONS.md577 B
  • references/api-checks-runs.md37.9 KB
  • references/api-checks-suites.md41.3 KB
  • references/api-commit-comments.md14.4 KB
  • references/api-commit-statuses.md16 KB
  • references/api-issue-comments.md21.2 KB
  • references/api-issues.md80.3 KB
  • references/api-pr-review-comments.md22.8 KB
  • references/api-pr-review-requests.md19.8 KB
  • references/api-pr-reviews.md25.9 KB
  • references/api-pulls.md58.4 KB
  • references/branch-protection-rule.md8.1 KB
  • references/cli/gh.md2.8 KB
  • references/cli/gh__agent-task.md1.7 KB
  • references/cli/gh__agent-task__create.md1.8 KB
  • references/cli/gh__agent-task__list.md1.1 KB
  • references/cli/gh__agent-task__view.md1.8 KB
  • references/cli/gh__api.md7.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.