gh-search

Search GitHub code, issues, PRs, repos, users, and commits via gh CLI.

1|Updated Mar 18, 2024
One-click install
npx skills add https://github.com/erfianugrah/dotfiles --skill gh-search-erfianugrah
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gh-search
Source: https://github.com/erfianugrah/dotfiles/tree/main/.pi/agent/skills/gh-search
Command: npx skills add https://github.com/erfianugrah/dotfiles --skill gh-search-erfianugrah

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the friction of hunting for real-world code, issues, and PR examples across many public GitHub repositories when you need authoritative results rather than guesswork.

Core Features & Use Cases

  • Cross-repo GitHub search for code, issues, PRs, repos, users, and commits using the authenticated gh CLI.
  • Targeted filtering by language, repo/owner, filename patterns, and other attributes to quickly narrow results.
  • Actionable outputs with optional JSON for machine-readable workflows, enabling you to turn search hits into follow-up analysis.

Quick Start

Use the gh-search skill to search TypeScript code on GitHub for a pattern and return the matching file paths and line snippets.

Frequently Asked Questions about gh-search

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

FAQPage Schema
How do I search for code examples across multiple GitHub repositories?▼

The skill performs authenticated GitHub searches across public repositories using the `gh` CLI, applying filters like language, filename, and owner to return matching file paths and code snippets.

Can I find GitHub issues and pull requests related to a specific bug or API?▼

Yes, the skill performs authenticated cross-repository GitHub searches for issues and pull requests, enabling discovery of bug discussions and patch verification with optional scope filters.

Does GitHub search via the gh CLI support machine-readable JSON output?▼

Yes, the skill supports structured machine-readable output through `--json` fields, allowing search hits for code, issues, and commits to be parsed for follow-up analysis workflows.

What are the rate limits and constraints when searching GitHub with the gh CLI?▼

The skill enforces practical limits based on GitHub rate constraints during query execution, ensuring deterministic authenticated searches for code, issues, and commits remain within API boundaries.

Do I need the gh CLI installed to search for GitHub commits and repositories?▼

Yes, the skill requires the authenticated `gh` CLI to execute deterministic `gh search` commands for discovering commits, repositories, and users across public GitHub.