github-content

Fetch GitHub issues, PRs, repository contents, and code via gh CLI.

2|Updated Mar 23, 2026
One-click install
npx skills add https://github.com/dot-prompt/dotprompt --skill github-content-dot-prompt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-content
Source: https://github.com/dot-prompt/dotprompt/tree/main/.agent/skills/github-content
Command: npx skills add https://github.com/dot-prompt/dotprompt --skill github-content-dot-prompt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers and teams fetch complete GitHub content (issues, PRs, repository files, and code) by using the gh CLI, avoiding incomplete results from JavaScript-heavy web views.

Core Features & Use Cases

  • View issues, PRs, and their comments with gh issue view and gh pr view to capture full context.
  • Browse repository contents and file trees using gh api repos/OWNER/repo/contents and gh api repos/OWNER/repo/git/trees/BRANCH?recursive=1 to get a complete map of files.
  • Search code within a repository or across GitHub with gh search code to surface relevant results for audits or exploration.

Quick Start

Paste a GitHub URL and let gh fetch the complete issue, PR, or repository content for you.

Frequently Asked Questions about github-content

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch GitHub issues and PR comments completely without missing data?

Fetch GitHub issues and PR comments completely by using gh CLI commands like gh issue view and gh pr view. This method obtains full context and complete data that JavaScript-heavy web views often miss.

Why does web fetching miss data when viewing GitHub repository contents?

Web fetching misses data because GitHub uses JavaScript-heavy web views. Using the gh CLI applies API access to retrieve repository contents, avoiding incomplete results and decoding content directly from the API.

How do I browse and search code within a GitHub repository using the command line?

Browse and search code within a GitHub repository using gh search code to surface relevant results. You can also map complete file trees by querying gh api repos/OWNER/repo/git/trees/BRANCH?recursive=1.

Do I need the gh CLI to extract GitHub PR reviews and issue context?

Yes, you need the gh CLI to extract GitHub PR reviews and issue context. The Skill relies on gh CLI API access to view, search, and extract complete data that standard web fetchers cannot retrieve.

What is the best way to get a complete file tree map of a GitHub repository branch?

The best way to get a complete file tree map is using gh api repos/OWNER/repo/git/trees/BRANCH?recursive=1. This gh CLI command retrieves the full repository contents structure accurately.

Can I fetch GitHub content by just pasting a URL?

Yes, you can fetch GitHub content by pasting a GitHub URL. The Skill detects the URL and applies the appropriate gh CLI commands to fetch the complete issue, PR, or repository content automatically.