github-search

Search GitHub repositories, code, and issues using gh CLI commands.

Updated Feb 8, 2026
One-click install
npx skills add https://github.com/brixtonpham/claude-setup --skill github-search-brixtonpham
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-search
Source: https://github.com/brixtonpham/claude-setup/tree/main/hub/skills/github-search
Command: npx skills add https://github.com/brixtonpham/claude-setup --skill github-search-brixtonpham

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers quickly locate relevant GitHub repositories, code snippets, and usage examples by leveraging the gh CLI, reducing time spent on manual searches.

Core Features & Use Cases

  • Repo and code discovery: Use gh search repos and gh search code to surface projects and example usage.
  • Issue/PR search and trends: Find discussions, bugs, and patterns across projects to inform decisions.
  • Real-world use case: For example, you want to implement a logging library pattern in Python; this Skill retrieves matching repos and code samples to study integration points.

Quick Start

Install gh CLI if not present and authenticate: gh auth login Basic searches: gh search repos "stars:>1000 language:go" --limit 5 gh search code "import logging" language:python --limit 5 gh search issues "is:open label:enhancement" --limit 5

Frequently Asked Questions about github-search

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

FAQPage Schema
How do I search GitHub repositories and code snippets using the gh CLI?

To find GitHub code patterns, use the `gh search code` command with parameters like language and query terms. This retrieves matching code snippets and usage examples to study integration points for libraries.

Can I filter GitHub repository searches by stars, topics, and programming language?

Yes, you can search GitHub issues and PRs to track trends using the `gh search issues` command. This helps locate open bugs, find enhancement discussions, and inform project decisions across repositories.

Do I need to authenticate the gh CLI before searching for open-source projects?

Yes, you need to authenticate the gh CLI before searching. Running `gh auth login` sets up your environment, enabling structured outputs and access to search, find, and discovery actions across GitHub.

What is the best way to discover usage examples for a specific library pattern in Python?

The best way to discover library usage examples is using `gh search code` with your target pattern and language. This surfaces real-world code snippets and integration points from open-source repositories to inform your implementation.