github-search — GitHub search github-search, dotfiles, samhvw8, community, GitHub search, ai agent skill, mcp server, agent automation, GitHub API, command line search, repository search, code search

v1.0.0
GitHub

About this Skill

Perfect for Development Agents needing efficient GitHub repository and code discovery capabilities. GitHub search is a feature that allows users to find specific content on the GitHub platform

Features

Search repositories, code, issues, and PRs using the command line
Perform direct searches using the API
Supports URL-encoded queries
Limit search result numbers

# Core Topics

samhvw8 samhvw8
[0]
[0]
Updated: 3/12/2026

Quality Score

Top 5%
42
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
> npx killer-skills add samhvw8/dotfiles/github-search
Supports 18+ Platforms
Cursor
Windsurf
VS Code
Trae
Claude
OpenClaw
+12 more

Agent Capability Analysis

The github-search MCP Server by samhvw8 is an open-source community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for GitHub search, GitHub API, command line search.

Ideal Agent Persona

Perfect for Development Agents needing efficient GitHub repository and code discovery capabilities.

Core Value

Empowers agents to efficiently search GitHub repositories, code, issues, and PRs using the command line or API, leveraging `gh search` commands and direct API search for complex queries, enabling precise results with URL-encoded queries.

Capabilities Granted for github-search MCP Server

Searching repositories with specific keywords or topics
Debugging issues by finding related code snippets or PRs
Automating GitHub data retrieval for analysis or reporting purposes

! Prerequisites & Limits

  • Requires GitHub API access or command line installation
  • Limited to 30 results per query by default
  • May require additional processing for complex or nuanced search queries
Project
SKILL.md
5.3 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

GitHub Search

Quick Commands

GoalCommand
Search reposgh search repos "<query>" --limit 30
Search codegh search code "<query>" --limit 30
Search issuesgh search issues "<query>" --limit 30
Search PRsgh search prs "<query>" --limit 30

Direct API Search (Web-Exact Results)

For complex queries where gh search repos gives different results than web:

bash
1# Template - URL-encodes query automatically 2gh api "search/repositories?q=$(printf '%s' 'YOUR_QUERY_HERE' | jq -sRr @uri)&sort=updated&per_page=30" --jq '.items[].full_name'

Example - Multi-language with exclusions:

bash
1gh api "search/repositories?q=$(printf '%s' 'stars:>500 language:rust language:go language:TypeScript language:javascript -topic:ethereum -topic:cryptocurrency -topic:blockchain -topic:bitcoin -topic:web3' | jq -sRr @uri)&sort=updated&per_page=10" --jq '.items[].full_name'

Why use this?

  • gh search repos is a convenience wrapper with its own query parsing
  • gh api search/repositories hits the raw API, matching web behavior exactly
  • Required when combining: multiple languages + topic exclusions + star filters

Common jq extractions:

Outputjq filter
Names only--jq '.items[].name'
Full names--jq '.items[].full_name'
With stars--jq '.items[] | "\(.full_name) ⭐\(.stargazers_count)"'
URLs--jq '.items[].html_url'
Full JSON(omit --jq)

Patterns

Finding Repositories

When you see: User wants to find projects/repos by criteria Use: gh search repos

bash
1# Basic search with stars 2gh search repos "stars:>500 language:rust" --sort=stars --limit=50 3 4# Multiple languages (OR logic) 5gh search repos "language:rust language:go language:typescript" 6 7# Exclude topics 8gh search repos "stars:>1000 -topic:cryptocurrency -topic:blockchain" 9 10# By topic 11gh search repos "topic:cli topic:terminal stars:>100" 12 13# Recently updated 14gh search repos "language:python pushed:>2024-01-01"

Output formats:

bash
1--json name,url,description,stargazersCount # JSON output 2--web # Open in browser

Finding Code Examples

When you see: User wants to know how to use a library Use: gh search code

bash
1# Find usage patterns 2gh search code "from zod import" --limit=20 3gh search code "import { z } from 'zod'" --limit=20 4 5# In specific file types 6gh search code "useQuery" extension:tsx --limit=30 7 8# In specific paths 9gh search code "tanstack/query" path:src/ extension:ts 10 11# Exact phrase 12gh search code '"createTRPCRouter"' extension:ts

Pro tip: Combine with repo filter for focused results:

bash
1gh search code "pattern" repo:owner/repo

Finding Issues/Discussions

When you see: User looking for bug reports, feature requests, or discussions Use: gh search issues or gh search prs

bash
1# Open issues with label 2gh search issues "is:open label:bug repo:facebook/react" 3 4# PRs by author 5gh search prs "author:username is:merged" 6 7# Issues mentioning error 8gh search issues '"connection refused" language:go'

Query Qualifiers Reference

Repo Search

QualifierExampleDescription
stars:stars:>1000, stars:100..500Star count
forks:forks:>100Fork count
language:language:rustPrimary language
topic:topic:cliRepository topic
-topic:-topic:blockchainExclude topic
pushed:pushed:>2024-01-01Last push date
created:created:>2023-01-01Creation date
license:license:mitLicense type
archived:archived:falseArchive status
is:is:public, is:privateVisibility

Code Search

QualifierExampleDescription
extension:extension:tsFile extension
path:path:src/File path
repo:repo:owner/nameSpecific repo
language:language:javascriptCode language
filename:filename:package.jsonFile name

Common Flags

FlagDescription
--limit NNumber of results (max 1000)
--sort XSort by: stars, forks, updated, best-match
--order Xasc or desc
--json FIELDSJSON output with specific fields
--webOpen results in browser

Common Use Cases

"Find popular X repos"

bash
1gh search repos "language:X stars:>500" --sort=stars --limit=50

"How do people use library Y"

bash
1gh search code "import Y" extension:ts --limit=30 2gh search code "from Y import" extension:py --limit=30

"Find repos like Z but exclude crypto"

bash
1gh search repos "topic:Z -topic:cryptocurrency -topic:blockchain -topic:web3"

"Find recent active projects"

bash
1gh search repos "language:go pushed:>2024-06-01 stars:>100" --sort=updated

Tips

  1. Quote the query when it contains special chars: gh search repos "stars:>500"
  2. Multiple languages = OR: language:rust language:go matches either
  3. Use --json for scripting: --json name,url,stargazersCount
  4. Date ranges: pushed:2024-01-01..2024-06-01
  5. Numeric ranges: stars:100..500
  6. Use gh api for complex queries: When gh search repos gives unexpected results, use gh api search/repositories?q=... for exact web parity

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is github-search?

Perfect for Development Agents needing efficient GitHub repository and code discovery capabilities. GitHub search is a feature that allows users to find specific content on the GitHub platform

How do I install github-search?

Run the command: npx killer-skills add samhvw8/dotfiles/github-search. It works with Cursor, Windsurf, VS Code, Claude Code, and 15+ other IDEs.

What are the use cases for github-search?

Key use cases include: Searching repositories with specific keywords or topics, Debugging issues by finding related code snippets or PRs, Automating GitHub data retrieval for analysis or reporting purposes.

Which IDEs are compatible with github-search?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for github-search?

Requires GitHub API access or command line installation. Limited to 30 results per query by default. May require additional processing for complex or nuanced search queries.

How To Install

  1. 1. Open your terminal