github-fetch

Fetch GitHub repositories, pull requests, issues, and workflow runs via gh CLI.

4|Updated Dec 8, 2019
One-click install
npx skills add https://github.com/Detrous/dotfiles --skill github-fetch
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: github-fetch
Source: https://github.com/Detrous/dotfiles/tree/main/pi/skills/github-fetch
Command: npx skills add https://github.com/Detrous/dotfiles --skill github-fetch

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Read-only access to GitHub data such as repositories, pull requests, issues, workflow runs, releases, and commits using the gh CLI. It emphasizes safety by encouraging read-only operations unless explicitly requested to perform changes, and promotes using gh over curl or raw HTTP requests.

Core Features & Use Cases

  • Command-focused data access: fetch repository metadata, PRs, issues, and workflow runs using gh subcommands.
  • Fallback API access: leverage gh api when subcommands do not cover the required data.
  • Safe defaults: always specify the target repository with --repo to ensure correct scoping and avoid accidental edits.
  • Use Case: quickly audit a repo's open PRs or review recent issues for a project brief.

Quick Start

Fetch repository data, PRs, issues, and workflow information for owner/repo using gh.

Frequently Asked Questions about github-fetch

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

FAQPage Schema
How do I fetch GitHub repository data without using curl?▼

Fetch GitHub repository data without curl by using the gh CLI to access metadata, pull requests, and issues safely. It enforces repo scoping with --repo owner/name and defaults to read-only operations.

What is the safest way to query GitHub pull requests and issues?▼

Querying GitHub pull requests and issues safely involves using gh CLI subcommands with read-only defaults. Always specify the target repository using --repo owner/name to prevent accidental edits.

Can I retrieve GitHub workflow runs and releases using gh api?▼

Yes, you can retrieve GitHub workflow runs and releases using gh api as a fallback. This provides access to GitHub data when standard gh subcommands do not cover the required endpoints.

Does this GitHub data fetching approach support write operations?▼

Yes, the GitHub data fetching approach supports optional write operations. It promotes safe defaults by encouraging read-only access unless explicitly requested to perform changes.

Why specify the repository name when fetching GitHub commits?▼

Specifying the repository name when fetching GitHub commits ensures correct scoping via --repo owner/name. This prevents accidental edits and guarantees actions target the intended repository.