gh-reference
Comprehensive reference for the GitHub CLI (gh) command. Use when working with GitHub operations like pull requests, issues, repos, releases, workflows, Actions runs, secrets, labels, gists, or the GitHub API. Covers all gh commands, subcommands, flags, and common patterns.
What this skill does
# GitHub CLI (gh) Complete Reference
You have access to the `gh` CLI for all GitHub operations. This skill provides a comprehensive reference for every command, flag, and common usage pattern.
## Quick Command Map
| Task | Command |
|------|---------|
| Create PR | `gh pr create --title "..." --body "..."` |
| List PRs | `gh pr list` |
| View PR | `gh pr view <number>` |
| Merge PR | `gh pr merge <number> --squash --delete-branch` |
| Checkout PR | `gh pr checkout <number>` |
| PR diff | `gh pr diff <number>` |
| PR checks | `gh pr checks <number>` |
| Create issue | `gh issue create --title "..." --body "..."` |
| List issues | `gh issue list` |
| View issue | `gh issue view <number>` |
| Close issue | `gh issue close <number>` |
| Create release | `gh release create <tag> --generate-notes` |
| View repo | `gh repo view` |
| Clone repo | `gh repo clone <owner/repo>` |
| Raw API call | `gh api <endpoint>` |
| Search code | `gh search code <query>` |
| Search issues | `gh search issues <query>` |
| List runs | `gh run list` |
| View run | `gh run view <run-id>` |
| Trigger workflow | `gh workflow run <workflow>` |
| List labels | `gh label list` |
| Create gist | `gh gist create <file>` |
| Set secret | `gh secret set <name>` |
| Set variable | `gh variable set <name>` |
| Auth status | `gh auth status` |
| **API-Only Operations** | |
| Create/edit/delete files | `gh api repos/{owner}/{repo}/contents/path -X PUT ...` |
| Create branch | `gh api repos/{owner}/{repo}/git/refs -f ref="refs/heads/name" ...` |
| Delete branch | `gh api repos/{owner}/{repo}/git/refs/heads/name -X DELETE` |
| Create tag | `gh api repos/{owner}/{repo}/git/refs -f ref="refs/tags/v1.0" ...` |
| Add reaction | `gh api repos/{owner}/{repo}/issues/123/reactions -f content="+1"` |
| Manage milestones | `gh api repos/{owner}/{repo}/milestones ...` |
| Manage webhooks | `gh api repos/{owner}/{repo}/hooks ...` |
| Branch protection | `gh api repos/{owner}/{repo}/branches/main/protection ...` |
| Manage collaborators | `gh api repos/{owner}/{repo}/collaborators/user ...` |
| Notifications | `gh api notifications ...` |
| Compare branches | `gh api repos/{owner}/{repo}/compare/main...feature` |
| Repo statistics | `gh api repos/{owner}/{repo}/stats/contributors` |
| Deployments | `gh api repos/{owner}/{repo}/deployments ...` |
| Star/unstar repo | `gh api user/starred/owner/repo -X PUT` |
| Repository dispatch | `gh api repos/{owner}/{repo}/dispatches -f event_type="..." ...` |
| Org management | `gh api orgs/{org}/members ...` |
## Inherited Flags (Available on Most Commands)
```
--help Show help for command
-R, --repo [HOST/]OWNER/REPO Select another repository
```
## JSON Output (Available on list/view/status Commands)
```
--json <fields> Output JSON with specified fields
-q, --jq <expr> Filter JSON output using jq expression
-t, --template <str> Format JSON output using Go template
```
## Detailed References
For complete flags and parameters for each command group, see:
- [pr-reference.md](pr-reference.md) - Pull request commands (create, list, view, merge, checkout, diff, review, edit, close, reopen, comment, checks, status, ready, revert, lock, unlock, update-branch)
- [issue-reference.md](issue-reference.md) - Issue commands (create, list, view, edit, close, reopen, comment, delete, develop, lock, unlock, pin, unpin, transfer, status)
- [repo-reference.md](repo-reference.md) - Repository commands (create, clone, fork, view, list, edit, delete, sync, rename, archive, unarchive, deploy-key, set-default)
- [advanced-reference.md](advanced-reference.md) - API calls, search, releases, workflow runs, Actions, secrets, variables, labels, gists, auth, and more. Also includes **API-only recipes** for: file operations, branch/tag management, reactions, milestones, webhooks, branch protection, collaborators, notifications, commit comments/comparisons, repo statistics, deployments, starring/watching, repository dispatch events, and organization management
## Important Patterns
### HEREDOC for Multi-line Bodies
Always use HEREDOC for multi-line body text to preserve formatting:
```bash
gh pr create --title "Title" --body "$(cat <<'EOF'
## Summary
- Change 1
- Change 2
## Test plan
- [ ] Test A
EOF
)"
```
### JSON Filtering with jq
```bash
# Get PR titles
gh pr list --json title -q '.[].title'
# Get issue URLs
gh issue list --json url,number -q '.[] | "\(.number): \(.url)"'
# Get failed workflow runs
gh run list --json conclusion,name -q '.[] | select(.conclusion=="failure")'
```
### Working with the API Directly
```bash
# GET endpoint with placeholders
gh api repos/{owner}/{repo}/pulls
# POST with fields
gh api repos/{owner}/{repo}/issues/123/comments -f body='comment text'
# GraphQL queries
gh api graphql -f query='{ viewer { login } }'
# Paginate results
gh api repos/{owner}/{repo}/issues --paginate
```
### Cross-Repository Operations
```bash
# Any command can target a different repo with -R
gh pr list -R owner/other-repo
gh issue view 42 -R owner/other-repo
```
### PR Review Comments via API
```bash
# View comments on a PR
gh api repos/{owner}/{repo}/pulls/123/comments
# View review comments
gh api repos/{owner}/{repo}/pulls/123/reviews
```
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.