github-fetcher

v1.0.0

Use this skill when the user mentions a GitHub URL or asks to analyze, review, explore, or understand any GitHub project, repository, or codebase. Triggers o...

0· 97· 1 versions· 0 current· 0 all-time· Updated 11h ago· MIT-0

Install

openclaw skills install github-fetcher

GitHub Repository Fetcher

When given a GitHub URL or repo name, ALWAYS use curl to fetch real content first. Never guess or infer — fetch then analyze.

Standard analysis workflow

# 1. List root directory
curl -s "https://api.github.com/repos/OWNER/REPO/contents/"

# 2. Get README
curl -s "https://raw.githubusercontent.com/OWNER/REPO/main/README.md"

# 3. Explore key subdirectories based on findings
curl -s "https://api.github.com/repos/OWNER/REPO/contents/src"

Get specific file

curl -s "https://raw.githubusercontent.com/OWNER/REPO/main/PATH/TO/FILE"

Extract OWNER/REPO from URLs

Tips

  • Try master if main returns 404
  • Use ?ref=BRANCH for other branches
  • GitHub API rate limit: 60 req/hour unauthenticated
  • After fetching, always provide analysis based on actual content

Version tags

latestvk97ftp4cv4c8tswh7m8yr5cybs84p9e2

Runtime requirements

🐙 Clawdis
Binscurl