๐ŸŽ Get the FREE AI Skills Starter Guide โ€” Subscribe โ†’
BytesAgainBytesAgain
๐Ÿฆ€ ClawHub

github-fetcher

by @shiscofield12-beep

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

Versionv1.0.0
Downloads564
TERMINAL
clawhub install github-fetcher

๐Ÿ“– About This Skill


name: github-fetcher description: 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 on phrases like "ๅˆ†ๆž่ฟ™ไธช้กน็›ฎ", "็œ‹็œ‹่ฟ™ไธชไป“ๅบ“", "analyze this repo", "what does this project do", or any github.com URL in the message. metadata: {"clawdbot":{"emoji":"๐Ÿ™","requires":{"bins":["curl"]}}}

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

  • https://github.com/ultraworkers/claw-code โ†’ OWNER=ultraworkers REPO=claw-code
  • github.com/foo/bar โ†’ OWNER=foo REPO=bar
  • 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
  • ๐Ÿ“‹ Tips & Best Practices

  • 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