From github
This skill provides GitHub CLI (gh) operations for repository management, issues, pull requests, releases, actions, and more. Use this skill when the user needs to interact with GitHub repositories, create or manage issues/PRs, work with GitHub Actions, manage releases, or perform any GitHub platform operations.
How this skill is triggered — by the user, by Claude, or both
Slash command
/github:githubThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Interact with GitHub using the `gh` CLI. Already authenticated and more efficient than API calls.
Interact with GitHub using the gh CLI. Already authenticated and more efficient than API calls.
# Check authentication
gh auth status
# Get help on any command
gh <command> --help
| Category | Description | Reference |
|---|---|---|
| Repos | Create, clone, fork, view, edit repositories | references/repos.md |
| Files & Branches | File contents, create/update files, branches, commits | references/files-branches.md |
| Issues & PRs | Create, list, edit, review, merge | references/issues-prs.md |
| Actions | Workflows, runs, caching | references/actions.md |
| Releases & Gists | Create releases, manage gists | references/releases-gists.md |
| Projects | GitHub Projects management | references/projects.md |
| Advanced | Codespaces, secrets, labels, orgs | references/advanced.md |
git checkout -b feature/my-feature
# make changes
git add . && git commit -m "feat: add feature"
git push -u origin feature/my-feature
gh pr create --title "feat: add feature" --body "Description"
gh pr checkout 123
gh pr review 123 --approve
gh pr merge 123 --squash --delete-branch
gh issue view 456
gh issue edit 456 --add-assignee "@me"
git checkout -b fix/issue-456
# fix the issue
gh pr create --title "fix: resolve #456" --body "Closes #456"
gh repo list [OWNER]
gh repo view [OWNER/REPO]
gh repo clone OWNER/REPO
gh repo create NAME --public|--private
gh repo fork OWNER/REPO
gh issue list [--state open|closed] [--label LABEL]
gh issue view NUMBER
gh issue create --title "Title" --body "Body"
gh issue close NUMBER
gh pr list [--state open|merged|closed]
gh pr view NUMBER
gh pr create --title "Title" --body "Body"
gh pr checkout NUMBER
gh pr review NUMBER --approve|--request-changes
gh pr merge NUMBER --squash|--rebase|--merge
gh release list
gh release view TAG
gh release create TAG --title "Title" --notes "Notes"
gh release download TAG
gh run list [--workflow NAME]
gh run view RUN_ID [--log]
gh run watch RUN_ID
gh workflow list
gh workflow run WORKFLOW
For operations not covered by gh commands:
# GET request
gh api repos/OWNER/REPO
# POST request
gh api repos/OWNER/REPO/issues --method POST \
--field title="Issue" --field body="Body"
# GraphQL
gh api graphql -f query='{ viewer { login } }'
# Parse JSON
gh api repos/OWNER/REPO --jq '.full_name'
# JSON output
gh issue list --json number,title,state
# Custom format with jq
gh pr list --json number,title | jq '.[].title'
# Quiet (IDs only)
gh issue list --json number --jq '.[].number'
--help on any command for options--json for scriptable outputgh api for any GitHub API endpoint@me refers to authenticated userProvides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
npx claudepluginhub cescox/xskills --plugin github