github-search
Search GitHub for repos, code, and usage examples using gh CLI. Capabilities: repo discovery, code search, finding library usage patterns, issue/PR search. Actions: search, find, discover repos/code/examples. Keywords: gh, github, search re
Install in one line
CLI$ mfkvault install samhvw8-github-searchRequires the MFKVault CLI. Prefer MCP?
Free to install — no account needed
Copy the command below and paste into your agent.
Instant access • No coding needed • No account needed
What you get in 5 minutes
- Full skill code ready to install
- Works with 3 AI agents
- Lifetime updates included
Description
# GitHub Search ## Quick Commands | Goal | Command | |------|---------| | Search repos | `gh search repos "<query>" --limit 30` | | Search code | `gh search code "<query>" --limit 30` | | Search issues | `gh search issues "<query>" --limit 30` | | Search PRs | `gh search prs "<query>" --limit 30` | ## Direct API Search (Web-Exact Results) For complex queries where `gh search repos` gives different results than web: ```bash # Template - URL-encodes query automatically gh 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 gh 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:** | Output | jq 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 # Basic search with stars gh search repos "stars:>500 language:rust" --sort=stars --limit=50 # Multiple languages (OR logic) gh search repos "language:rust language:go language:typescript" # Exclude topics gh search repos "stars:>1000 -topic:cryptocurrency -topic:blockchain" # By topic gh search repos "topic:cli topic:terminal stars:>100" # Recently updated gh search repos "language:python pushed:>2024-01-01" ``` **Output formats:** ```bash --json name,url,description,stargazersCount # JSON output --web # Open in browser ``` ### Finding Code Examples **When you see:** User wants to know how to use a library **Use:** `gh search code` ```bash # Find usage patterns gh search code "from zod import" --limit=20 gh search code "import { z } from 'zod'" --limit=20 # In specific file types gh search code "useQuery" extension:tsx --limit=30 # In specific paths gh search code "tanstack/query" path:src/ extension:ts # Exact phrase gh search code '"createTRPCRouter"' extension:ts ``` **Pro tip:** Combine with repo filter for focused results: ```bash gh 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 # Open issues with label gh search issues "is:open label:bug repo:facebook/react" # PRs by author gh search prs "author:username is:merged" # Issues mentioning error gh search issues '"connection refused" language:go' ``` ## Query Qualifiers Reference ### Repo Search | Qualifier | Example | Description | |-----------|---------|-------------| | `stars:` | `stars:>1000`, `stars:100..500` | Star count | | `forks:` | `forks:>100` | Fork count | | `language:` | `language:rust` | Primary language | | `topic:` | `topic:cli` | Repository topic | | `-topic:` | `-topic:blockchain` | Exclude topic | | `pushed:` | `pushed:>2024-01-01` | Last push date | | `created:` | `created:>2023-01-01` | Creation date | | `license:` | `license:mit` | License type | | `archived:` | `archived:false` | Archive status | | `is:` | `is:public`, `is:private` | Visibility | ### Code Search | Qualifier | Example | Description | |-----------|---------|-------------| | `extension:` | `extension:ts` | File extension | | `path:` | `path:src/` | File path | | `r
Security Status
Unvetted
Not yet security scanned
Related AI Tools
More Coding tools you might like
embodied-ai-tracker
Free具身智能领域前沿动态追踪与视频素材采集系统;覆盖顶会论文(ICRA/IROS/CoRL/CVPR/NeurIPS)、开源项目、实验室动态;优先采集有Demo视频的爆款工作;生成含发布时间/主页/代码/视频链接的结构化日报,支持视频号内容创作
github-search
FreeSearch GitHub for repos, code, and usage examples using gh CLI. Capabilities: repo discovery, code search, finding library usage patterns, issue/PR search. Actions: search, find, discover repos/code/examples. Keywords: gh, github, search re
idea
FreeMCPize Idea Finder — find a profitable MCP server idea, validate it, and get a ready-to-build brief. Part of the MCPize suite (mcpize.com). Guides users through discovery interview (up to 10 questions about skills, domain, goals), generates
Motion Asset Hunter
FreeFind and adapt premium animation assets from CodePen, GitHub, Dribbble, and animation libraries. Discover reference implementations and open-source animations to use or learn from.
github
FreeInteract with GitHub repositories using the GitHub API
Quick Commands
Free> Para workflows COMPLETOS, decision trees e exemplos: **DROID**