Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By bongkagev1.6.0CC-BY-SA-4.0In 1 marketplace
Intercepts GitHub URL fetches (WebFetch and MCP fetch tools) and curl/wget commands, redirecting to the authenticated gh CLI.
Claude loads one when your task matches it, or you run it by name.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code plugin that intercepts GitHub URL fetches and redirects Claude to use the authenticated gh CLI instead.
Claude Code's WebFetch tool, MCP fetch tools (Exa's web_fetch_exa and similar), and Bash curl/wget commands don't use the user's GitHub authentication. This means:
This plugin provides:
WebFetch, MCP fetch/scrape/crawl/extract tools, or curl/wget, and suggest the correct gh CLI commandgh PATH shim that blocks anti-patterns: API /contents/ fetching and non-session-scoped temp directory clonesThe fetch hook matches WebFetch plus any MCP tool whose name contains fetch,
scrape, crawl, or extract — mcp__exa__web_fetch_exa,
mcp__firecrawl__firecrawl_scrape, mcp__tavily__tavily_extract, and
equivalents from other MCP servers. Web tools named something else entirely
(browser navigation, for instance) are not covered; hooks/matcher.bats records
exactly which names match.
It reads both fetch payload shapes — WebFetch's single url, and the urls
field MCP fetch tools use to batch several pages into one call, whether that
field arrives as an array or a bare string. Because a tool call is atomic, one
GitHub URL anywhere in a batch denies the whole call; the denial names each
offending URL alongside its suggestion. WebFetch's prompt field is
deliberately not scanned, so a prompt that merely mentions a GitHub URL is not
denied.
| Tool | Pattern | Suggestion |
|---|---|---|
WebFetch, MCP fetch | github.com/{owner}/{repo} | gh repo view owner/repo |
WebFetch, MCP fetch | github.com/.../blob/... | gh repo clone + Read |
WebFetch, MCP fetch | github.com/.../tree/... | gh repo clone + Read/Glob/Grep |
WebFetch, MCP fetch | github.com/.../pull/{n} | gh pr view |
WebFetch, MCP fetch | github.com/.../issues/{n} | gh issue view |
WebFetch, MCP fetch | github.com/.../releases/download/... | gh release download |
WebFetch, MCP fetch | api.github.com/repos/.../pulls | gh pr list / gh pr view |
WebFetch, MCP fetch | api.github.com/repos/.../issues | gh issue list / gh issue view |
WebFetch, MCP fetch | api.github.com/repos/.../contents/... | gh repo clone + Read |
WebFetch, MCP fetch | api.github.com/repos/.../releases | gh release list |
WebFetch, MCP fetch | api.github.com/repos/.../actions | gh run list |
WebFetch, MCP fetch | api.github.com/... (anything else) | gh api <endpoint> |
WebFetch, MCP fetch | raw.githubusercontent.com/... | gh repo clone + Read |
WebFetch, MCP fetch | gist.github.com/... | gh gist view |
Bash | curl https://api.github.com/... | gh api <endpoint> |
Bash | curl https://raw.githubusercontent.com/... | gh repo clone + Read |
Bash | wget https://github.com/... | gh release download |
Bash (shim) | gh api repos/.../contents/... | gh repo clone + Read |
Bash (shim) | gh repo clone ... /tmp/... (non-session-scoped) | Session-scoped clone path |
github.com, api.github.com, raw.githubusercontent.com, or gist.github.com)*.github.io)gh (except anti-patterns blocked by the shim; see table above)git clone, git push, etc.)grep, rg, etc.)Note: When hooks deny blob/tree/raw URLs, the denial message explicitly warns against using gh api to fetch and base64-decode file contents as a fallback — clone the repo instead.
Cloned repositories are stored in session-scoped temp directories ($TMPDIR/gh-clones-<session-id>/). A SessionEnd hook automatically removes them when the session ends, so there's no manual cleanup needed and concurrent sessions don't interfere with each other.
gh) must be installed and authenticated (gh auth login)gh is not installed, the hooks pass through without disruption/plugin marketplace add trailofbits/skills
/plugin install gh-cli
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub bongkage/trailofbits-skills --plugin gh-cliPlugins from other owners that cover similar ground