Loading...
Loading...
Fetch GitHub issues, PRs, repo contents, and code using the gh CLI. Use when the user shares GitHub URLs (issues, PRs, repos, source files) or asks about GitHub content. The gh CLI provides complete content that web fetching often misses due to JavaScript rendering.
npx skill4agent add krmcbride/claude-plugins github-contentghgh issue view <number> --repo owner/repo --commentsgh pr view <number> --repo owner/repo --commentsgh pr diff <number> --repo owner/repogh api repos/owner/repo/pulls/<number>/commentsgh pr view <number> --repo owner/repo --json files --jq '.files[].path'gh api repos/owner/repo/contents/path/to/dirgh api repos/owner/repo/contents/path/to/file --jq '.content' | base64 -dgh api repos/owner/repo/git/trees/main?recursive=1 --jq '.tree[] | select(.type=="blob") | .path'maingh search code "search query" --repo owner/repogh search code "search query" --repo owner/repo --language pythongh search code "search query" --repo owner/repo --path "src/"gh search code "search query" --repo owner/repo --json path,repository,textMatches| URL Pattern | Example |
|---|---|
| |
| Issue #123 in that repo |
| PR #456 in that repo |
| Source file at path |
| Directory at path |
head -n 100--jq--jsongh pr viewgh issue viewgh auth status