Using the GitHub CLI (`gh`)
- [Pull Requests](references/pull-requests.md) — list, view, create, merge, review PRs
LLM Evaluation
Evaluated by: xiaomi/mimo-v2-flash:free
Last evaluated: March 01, 2026
Prompt Preview
---
name: using-gh-cli
description: "Guides usage of the GitHub CLI (gh) for interacting with GitHub repositories, PRs, issues, and API. Use when working with GitHub resources instead of WebFetch or curl."
allowed-tools:
- Bash
- Read
- Glob
- Grep
---
# Using the GitHub CLI (`gh`)
## When to Use
- **Browsing or reading code** from a GitHub repository — clone it and use Read/Glob/Grep
- Viewing or creating pull requests, issues, releases, or gists
- Fetching repo metadata or any GitHu...
Full prompt length: 3972 characters
Tools & Technologies
- GraphQL
- REST