From claude-resources
Clones a public GitHub repo over HTTPS to bypass MCP scope restrictions in the Claude Code web/remote environment. Use when GitHub MCP tools deny access to a public repo.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-resources:dev-read-gh-public-repoThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
In the Claude Code **web/remote** environment, the GitHub MCP tools (`mcp__github__*`)
In the Claude Code web/remote environment, the GitHub MCP tools (mcp__github__*)
are locked to an allow-list of repos chosen when the session was created. Reading any
other repo — even a public one — fails like this:
Access denied: repository "owner/name" is not configured for this session.
Allowed repositories: <only-the-scoped-ones>
Choosing "add repo to scope" in the UI does not take effect mid-session, and the
mcp__claude-code-remote__list_repos / add_repo tools are often unavailable. So the
MCP path is a dead end here.
Bypass MCP entirely — clone over HTTPS into an ephemeral dir, then use the normal Read / Grep tools:
cd /tmp && git clone --depth 1 https://github.com/<owner>/<repo>.git
# now Read / Grep files under /tmp/<repo>
HTTPS only — SSH fails. There is no ssh binary in the container, so
git clone [email protected]:owner/repo.git dies with ssh: not found. Always use
the https://github.com/... URL.
No auth needed for public repos over HTTPS — the clone just works, assuming the
environment's outbound network policy allows github.com.
Clone outside the working repo (/tmp, or any path that isn't the user's
project) so the checkout stays ephemeral and never gets committed by accident.
--depth 1 keeps it fast; drop it only if you need history.
Reading only. This is for research: reading a doc/spec, copying a pattern. It
grants no write access and is not a substitute for proper repo scope.
Public repos only. Private repos still require adding the repo to the session
scope (or real auth) — a plain HTTPS clone will prompt for credentials and fail.
Web/remote env only. On a normal local session, just use gh or an existing
checkout instead — don't reach for this.
npx claudepluginhub takazudo/claude-resources --plugin claude-resourcesFetches and displays GitHub file contents, directory listings, line ranges, and shallow clones using gh CLI. Activates on blob/tree/raw URLs or read/fetch requests.
Executes GitHub operations via the gh CLI for inspecting repos, files, issues, PRs, releases, Actions, and cloning for deep analysis. Activates on github.com URLs or repo paths.
Clones a GitHub repo and sets up an interactive study session for reading and analyzing the codebase. Answers questions with source-of-truth evidence from the actual code.