Gh cli

From trailofbits/skills · View interactive version

Gh cli is an AI agent skill from the GitHub repository trailofbits/skills. Enforces authenticated gh CLI workflows over unauthenticated curl, WebFetch, and MCP fetch patterns. Use when working with GitHub URLs, API access, pull requests, or issues.

How to use this skill

Skill file

gh-cli

When to Use

When NOT to Use

Guidance

Prefer the authenticated gh CLI over raw HTTP fetches for GitHub content. In particular:

Examples:

gh repo view owner/repo
gh pr view 123 --repo owner/repo
gh api repos/owner/repo/pulls

For the hook implementation, see:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.