Skip to content
Agent Orchestration
Skill

/github-fetch

Use this skill when studying GitHub repositories for one-off analysis, reading source code, or fetching single files from GitHub. TRIGGER when "study this repo", "install this repo", "read the README of X", "inspect source of X", "fetch file from GitHub", or any request to

BOOST
From plugin
dotfiles-opencode
10845 skills
Install
$ npx -y skills add archibate/dotfiles-opencode --skill github-fetch --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/github-fetch

Context preview

The summary Claude sees to decide when to auto-load this skill.

Use this skill when studying GitHub repositories for one-off analysis, reading source code, or fetching single files from GitHub. TRIGGER when "study this repo", "install this repo", "read the README of X", "inspect source of X", "fetch file from GitHub", or any request to

SKILL.md

github-fetch.SKILL.md
name: github-fetch
description: Use this skill when studying GitHub repositories for one-off analysis, reading source code, or fetching single files from GitHub. TRIGGER when "study this repo", "install this repo", "read the README of X", "inspect source of X", "fetch file from GitHub", or any request to explore/analyze a GitHub project without making it a permanent workspace.
color: cyan

GitHub Fetch

When to Use

  • Studying source code of a GitHub repo for one-off analysis
  • Reading a single file or small number of files from a repo
  • Exploring project structure, implementation patterns, or API design
  • Not for permanent work — use a proper workspace for that

Mode 1: Full Repo Clone

Clone to the standard temp location with shallow depth:

git clone https://github.com/{user}/{repo} --depth=1 /tmp/github/{user}/{repo}

Then work in `/tmp/github/{user}/{repo}` using Read, Grep, Glob tools.

If the repo is already cloned, reuse it — do not re-clone.

# Check first
ls /tmp/github/{user}/{repo} 2>/dev/null || git clone https://github.com/{user}/{repo} --depth=1 /tmp/github/{user}/{repo}

Mode 2: Single File Fetch

For reading one file without cloning the whole repo, use WebFetch with the raw URL:

https://raw.githubusercontent.com/{user}/{repo}/main/{path/to/file}

Or with curl:

curl -fsSL https://raw.githubusercontent.com/{user}/{repo}/main/{path/to/file}

Try `main` first; fall back to `master` if the file is not found.

Rules

  • Always use `--depth=1` — no history needed for study
  • `/tmp/github/` is the standard clone location (auto-cleaned on reboot)
  • Do not commit or push changes from `/tmp` clones
  • Prefer Mode 2 (single file) when only one or two files are needed — faster and lighter
  • Prefer Mode 1 (full clone) when exploring structure, searching across files, or reading many files
Read more
Ships withdotfiles-opencode

小彭老师现在改用claude code的开源替代opencode,满足了开源人士旺盛的定制需求x(其实opencode中也可以继续用claude的闭源模型,只是换成了开源的opencode客户端) 安装方法:SETUP.md

Get the whole plugin

Other skills on dotfiles-opencode.