gh-cli

Enforces authenticated gh CLI usage for GitHub API and repository access.

Updated Apr 5, 2026
One-click install
npx skills add https://github.com/marumo333/atrox --skill gh-cli-marumo333
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gh-cli
Source: https://github.com/marumo333/atrox/tree/main/.claude/skills/trailofbits/.codex/skills/gh-cli
Command: npx skills add https://github.com/marumo333/atrox --skill gh-cli-marumo333

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Unauthenticated curl or WebFetch calls against GitHub hit low API rate limits, fail on private repositories, and bypass your configured credentials. This Skill redirects GitHub-related work to the authenticated gh CLI so requests succeed reliably. ## Core Features & Use Cases - Authenticated GitHub Access: Prefers gh repo view, gh pr view, gh issue view, and gh api over raw curl or wget requests. - Local Repository Reading: Encourages cloning repositories and reading files locally instead of fetching raw.githubusercontent.com blobs or using the /contents/ API endpoint. - Use Case: When asked to review pull request 123 in a private repository, the Skill guides the AI to run gh pr view 123 --repo owner/repo rather than attempting an unauthenticated HTTP fetch that would fail. ## Quick Start Use the gh CLI to view the details of pull request 123 in the owner/repo repository.

Frequently Asked Questions about gh-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I access GitHub API with authentication from the command line?▼

Use the gh CLI, which authenticates with your GitHub account and handles credentials automatically. Commands like gh api repos/owner/repo/pulls or gh repo view owner/repo make authenticated requests without manual token management.

Should I use gh CLI or curl for GitHub API requests?▼

Use gh CLI for GitHub requests because it provides authentication, higher rate limits, and access to private repositories. Unauthenticated curl requests are rate-limited and fail against private resources.

How do I read files from a GitHub repository without the API?▼

Clone the repository and read files locally instead of fetching raw.githubusercontent.com URLs or using the /contents/ API endpoint. Local cloning gives full repository context and avoids API rate limits.

When should I not use the gh CLI?▼

Avoid gh CLI when the target is not GitHub or when plain local git operations already solve the task. It is specifically designed for GitHub-hosted repositories, pull requests, issues, and releases.

Why do unauthenticated GitHub API requests fail?▼

Unauthenticated requests face strict rate limits and cannot access private repositories. Authenticating through the gh CLI resolves both issues by attaching your GitHub credentials to every request.