---
title: "Authenticated GitHub CLI Workflow: review, setup & limitations · Undominated.ai"
canonical: https://undominated.ai/skills/trailofbits-gh-cli/
description: "Prefer authenticated GitHub CLI reads and scoped clones when inspecting GitHub resources."
---

# Authenticated GitHub CLI Workflow: review, setup & limitations · Undominated.ai

> Prefer authenticated GitHub CLI reads and scoped clones when inspecting GitHub resources.

[← Explore all skills](/skills/)

DEVELOPMENT TOOLING / trailofbits

# Authenticated GitHub CLI Workflow

Prefer authenticated GitHub CLI reads and scoped clones when inspecting GitHub resources.

 [See setup guidance ↓](#setup)[Original source ↗](https://github.com/trailofbits/skills/tree/0f44fe01dcb00bd6929b4ba82a257d305de04554/plugins/gh-cli/skills/gh-cli)

SOURCE REVIEW

 Reviewed 2026-10-14
 Evidence 9 linked sources
 Publisher trailofbits
 Licence [CC-BY-SA-4.0 ↗](https://github.com/trailofbits/skills/blob/0f44fe01dcb00bd6929b4ba82a257d305de04554/LICENSE)
 Revision 0f44fe01dcb0
 [Read what was—and wasn’t—checked ↓](#review)

“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.”

 [trailofbits · upstream description ↗](https://github.com/trailofbits/skills/blob/0f44fe01dcb00bd6929b4ba82a257d305de04554/plugins/gh-cli/skills/gh-cli/SKILL.md) Our analysis follows below.

01 / THE REASONING

## Why this made the selection.

 - The hook denies an entire batched fetch when one GitHub URL matches; the shim blocks contents API patterns and some unscoped temporary clones, while cleanup validates the session identifier.
- Read a private repository or PR with the intended GitHub identity instead of interpreting an unauthenticated 404 as absence.

### A good fit for

 - Read a private repository or PR with the intended GitHub identity instead of interpreting an unauthenticated 404 as absence.

### Weigh up before choosing

 - Installing the skill directory alone does not activate the separate Claude plugin hooks or PATH shim. Hook matching covers selected tools and URL forms; it is not a complete network policy. Session cleanup recursively removes its clone directory.
- Source inspection only; no installation, authenticated operation, runtime benchmark or security certification was performed.

02 / THE REVIEW RECORD

## What we actually inspected.

Source review has boundaries. A clear record is more useful than a “safe” badge.

### Material inspected

 - plugins/gh-cli/skills/gh-cli/SKILL.md
- plugins/gh-cli/README.md
- plugins/gh-cli/hooks/hooks.json
- plugins/gh-cli/hooks/intercept-github-curl.sh
- plugins/gh-cli/hooks/intercept-github-fetch.sh
- plugins/gh-cli/hooks/cleanup-clones.sh
- plugins/gh-cli/hooks/shims/gh
- LICENSE
- README.md

### Our findings

 - The hook denies an entire batched fetch when one GitHub URL matches; the shim blocks contents API patterns and some unscoped temporary clones, while cleanup validates the session identifier.

### Not established by this review

 - Third-party instructions and helpers were not executed; service access, host compatibility and outcomes remain untested.

The review applies to the material and revision named here. A newer upstream release can change its behavior.

03 / PUT IT TO WORK

## Add a skill to your workflow.

[Upstream setup instructions ↗](https://github.com/trailofbits/skills/blob/0f44fe01dcb00bd6929b4ba82a257d305de04554/README.md)

DOCUMENTED COMMAND

 npx skills add trailofbits/skills/plugins/gh-cli/skills/gh-cli Copy command ↗

Run in your terminal to choose your AI tools, project or global scope, and installation method. This short command follows the current upstream version; the review covers the revision shown above.

 Optional: install the reviewed revision

Keeps the original source and installer version where recorded, while leaving your AI tools and installation scope for you to choose.

 npx skills add https://github.com/trailofbits/skills/tree/0f44fe01dcb00bd6929b4ba82a257d305de04554/plugins/gh-cli/skills/gh-cli Copy reviewed-revision command ↗ - Install the pinned directory interactively and retain its referenced files; inspect the source before granting tool access.
- Verify gh authentication and repository scope; retain the definition for guidance and review the separate plugin hook configuration before enabling interception or automatic cleanup.

### Before you start

 - GitHub CLI, Git and authorized repository access; plugin hooks additionally require Bash, jq and a compatible host

### Compatibility

Agents supporting directory-based SKILL.md instructions

### Local instructions with workflow-dependent access

 - Uses the authenticated GitHub token; optional plugin hooks prepend a shim and delete session-scoped temporary clones, so do not keep work only in those clones.

### Cost model

Skill source is freely available under its stated licence; host, infrastructure and service usage may incur charges.

04 / FOLLOW THE EVIDENCE

## The source trail.

Our notes are separate from the original resource. Check upstream before adopting a new version.

 - [Pinned plugins/gh-cli/skills/gh-cli/SKILL.md ↗](https://github.com/trailofbits/skills/blob/0f44fe01dcb00bd6929b4ba82a257d305de04554/plugins/gh-cli/skills/gh-cli/SKILL.md) Checked 2026-10-14 https://github.com/trailofbits/skills/blob/0f44fe01dcb00bd6929b4ba82a257d305de04554/plugins/gh-cli/skills/gh-cli/SKILL.md Supports: summary, review, install, access, limitations
- [Pinned plugins/gh-cli/README.md ↗](https://github.com/trailofbits/skills/blob/0f44fe01dcb00bd6929b4ba82a257d305de04554/plugins/gh-cli/README.md) Checked 2026-10-14 https://github.com/trailofbits/skills/blob/0f44fe01dcb00bd6929b4ba82a257d305de04554/plugins/gh-cli/README.md Supports: summary, review, install, access, limitations
- [Pinned plugins/gh-cli/hooks/hooks.json ↗](https://github.com/trailofbits/skills/blob/0f44fe01dcb00bd6929b4ba82a257d305de04554/plugins/gh-cli/hooks/hooks.json) Checked 2026-10-14 https://github.com/trailofbits/skills/blob/0f44fe01dcb00bd6929b4ba82a257d305de04554/plugins/gh-cli/hooks/hooks.json Supports: summary, review, install, access, limitations
- [Pinned plugins/gh-cli/hooks/intercept-github-curl.sh ↗](https://github.com/trailofbits/skills/blob/0f44fe01dcb00bd6929b4ba82a257d305de04554/plugins/gh-cli/hooks/intercept-github-curl.sh) Checked 2026-10-14 https://github.com/trailofbits/skills/blob/0f44fe01dcb00bd6929b4ba82a257d305de04554/plugins/gh-cli/hooks/intercept-github-curl.sh Supports: summary, review, install, access, limitations
- [Pinned plugins/gh-cli/hooks/intercept-github-fetch.sh ↗](https://github.com/trailofbits/skills/blob/0f44fe01dcb00bd6929b4ba82a257d305de04554/plugins/gh-cli/hooks/intercept-github-fetch.sh) Checked 2026-10-14 https://github.com/trailofbits/skills/blob/0f44fe01dcb00bd6929b4ba82a257d305de04554/plugins/gh-cli/hooks/intercept-github-fetch.sh Supports: summary, review, install, access, limitations
- [Pinned plugins/gh-cli/hooks/cleanup-clones.sh ↗](https://github.com/trailofbits/skills/blob/0f44fe01dcb00bd6929b4ba82a257d305de04554/plugins/gh-cli/hooks/cleanup-clones.sh) Checked 2026-10-14 https://github.com/trailofbits/skills/blob/0f44fe01dcb00bd6929b4ba82a257d305de04554/plugins/gh-cli/hooks/cleanup-clones.sh Supports: summary, review, install, access, limitations
- [Pinned plugins/gh-cli/hooks/shims/gh ↗](https://github.com/trailofbits/skills/blob/0f44fe01dcb00bd6929b4ba82a257d305de04554/plugins/gh-cli/hooks/shims/gh) Checked 2026-10-14 https://github.com/trailofbits/skills/blob/0f44fe01dcb00bd6929b4ba82a257d305de04554/plugins/gh-cli/hooks/shims/gh Supports: summary, review, install, access, limitations
- [Pinned LICENSE ↗](https://github.com/trailofbits/skills/blob/0f44fe01dcb00bd6929b4ba82a257d305de04554/LICENSE) Checked 2026-10-14 https://github.com/trailofbits/skills/blob/0f44fe01dcb00bd6929b4ba82a257d305de04554/LICENSE Supports: license
- [Pinned README.md ↗](https://github.com/trailofbits/skills/blob/0f44fe01dcb00bd6929b4ba82a257d305de04554/README.md) Checked 2026-10-14 https://github.com/trailofbits/skills/blob/0f44fe01dcb00bd6929b4ba82a257d305de04554/README.md Supports: summary, review, install, access, limitations

KEEP COMPARING

## Other approaches to consider.

Related by category or shared topics. These are alternatives to inspect, not a measured quality order.

 [### Hugging Face Python Environment Setup ↗ Prepare an isolated Python environment for Hugging Face cloud tooling.](/skills/huggingface-hf-cloud-python-env-setup/)[### Burp Project Parser ↗ Extract and search captured Burp traffic while distinguishing empty results from parser startup failures.](/skills/trailofbits-burpsuite-project-parser/)[### C and C++ Security Review ↗ Coordinate scoped native C/C++ security review and assemble findings with an explicit coverage ledger.](/skills/trailofbits-c-review/)

 [AI Tools ↗](/tools/)[Skills ↗](/skills/)[Agents ↗](/agents/)[MCP Servers ↗](/mcp-servers/)[Workflows ↗](/workflows/)

## Continue your investigation

 - [Choose a toolkit](/tools/)
- [Inspect execution hosts](/agents/)
- [Check tool access](/mcp-servers/)
- [Check project dependencies](/check-repo/)
