trailofbits avatar

Using Gh Cli

This teaches Claude to use the GitHub CLI instead of falling back to curl or wget when interacting with GitHub. The key win is automatic authentication, so you're not hitting rate limits or dealing with token management when viewing PRs, issues, releases, or API data. Trail of Bits put this together to stop agents from making unnecessary unauthenticated requests to public repos. One caveat: it explicitly tells you not to use this for GitHub Pages sites, since those are just regular web content. If you're doing any repo browsing or GitHub API work, this will save you from a lot of 403s and make your workflows cleaner.

skills.sh installs
212
GitHub stars
8.1K
last updated
Aug 21, 2026

Install

$ npx -y skills add trailofbits/skills --skill using-gh-cli --agent claude-code

Installs into .claude/skills of the current project.

Files

This teaches Claude to use the GitHub CLI instead of falling back to curl or wget when interacting with GitHub. The key win is automatic authentication, so you're not hitting rate limits or dealing with token management when viewing PRs, issues, releases, or API data. Trail of Bits put this together to stop agents from making unnecessary unauthenticated requests to public repos. One caveat: it explicitly tells you not to use this for GitHub Pages sites, since those are just regular web content. If you're doing any repo browsing or GitHub API work, this will save you from a lot of 403s and make your workflows cleaner.

Browse the repository on GitHub

Sponsors

Details

Repository
github.com/trailofbits/skills
Categories
Backend & APIs, Git & Pull Requests, CLI & Terminal
First seen
Jun 3, 2026

More from trailofbits/skills

All 82
1davila7 avataropenapi-to-typescriptdavila7/claude-code-templatesConverts OpenAPI 3.0 JSON/YAML to TypeScript interfaces and type guards. This skill should be used when the user asks to generate types from OpenAPI, convert sc211skills.sh installs
2manojbajaj95 avatarcrm-integrationmanojbajaj95/claude-gtm-pluginCRM integration patterns for Close CRM, HubSpot, and Salesforce. Use when: Close CRM, HubSpot, Salesforce, CRM API, lead sync, deal sync, activity logging, CRM 210skills.sh installs
3personamanagmentlayer avatarspring-boot-expertpersonamanagmentlayer/pclExpert-level Spring Boot, Spring Framework, REST APIs, and microservices development209skills.sh installs
4davila7 avatarlabarchive-integrationdavila7/claude-code-templatesElectronic lab notebook API integration. Access notebooks, manage entries/attachments, backup notebooks, integrate with Protocols.io/Jupyter/REDCap, for program208skills.sh installs
5tuziapi avatartuzi-image-gentuziapi/tuzi-skills通过兔子API(nano-banana 模型)、Google、OpenAI、DashScope 和 Replicate 进行 AI 图片生成。支持文生图、参考图片、宽高比、模型选择,以及 OpenAI 兼容网关方言切换。当用户要求生成、创建或绘制图片时使用。208skills.sh installs
6databricks avatardatabricksdatabricks/databricks-agent-skillsDatabricks CLI operations: auth, profiles, data exploration, and bundles. Contains up-to-date guidelines for Databricks-related CLI tasks.205skills.sh installs