aaddrick/gh-cli-search/gh-search-repos
- community
Checking that the SKILL.md file is still in the repository.
Use when searching for repositories across GitHub - provides syntax for filtering by stars, forks, language, topics, license, archived status, and all repository attributes
Install
npx vskill@latest install aaddrick/gh-cli-search/gh-search-reposSKILL.md
GitHub CLI: Search Repositories
Overview
Search for repositories across GitHub using gh search repos. Filter by stars, forks, language, topics, license, and more.
When to Use This Skill
Use this skill when searching for repositories across GitHub:
- Finding repositories by popularity (stars/forks)
- Searching by programming language or topics
- Finding repos with good first issues
- Filtering by license or archived status
- Searching in specific organizations or by owner
- Need to exclude certain results (requires
--flag)
Syntax
Key Flags Reference
Repository Attributes
| Flag | Purpose | Example | ||
|---|---|---|---|---|
--language <string> | Programming language | --language python | ||
--topic <strings> | Repository topics | --topic machine-learning | ||
--license <strings> | License type | --license mit | ||
| `--archived {true\ | false}` | Archived state | --archived false | |
--owner <strings> | Repository owner | --owner github | ||
--visibility <string> | Visibility: public, private, internal | --visibility public |
Popularity Metrics
| Flag | Purpose | Example | |
|---|---|---|---|
--stars <number> | Star count | --stars ">1000" | |
--forks <number> | Fork count | --forks ">100" | |
--followers <number> | Follower count | --followers ">50" | |
--size <string> | Size in KB | --size "100..1000" |
Issue Counts
| Flag | Purpose | Example | |
|---|---|---|---|
--good-first-issues <number> | "Good first issue" label count | --good-first-issues ">=5" | |
--help-wanted-issues <number> | "Help wanted" label count | --help-wanted-issues ">=3" |
Date Filters
| Flag | Purpose | Example | |
|---|---|---|---|
--created <date> | Creation date | --created ">2024-01-01" | |
--updated <date> | Last update date | --updated ">2024-06-01" |
Search Scope
| Flag | Purpose | Example | |||
|---|---|---|---|---|---|
--match <strings> | Search in: name, description, readme | --match name | |||
| `--include-forks {false\ | true\ | only}` | Include/exclude forks | --include-forks false |
Output & Sorting
| Flag | Purpose | Example | |
|---|---|---|---|
-L, --limit <int> | Max results (default: 30) | --limit 100 | |
--sort <string> | Sort by: stars, forks, updated, etc. | --sort stars | |
--order <string> | Sort direction: asc or desc | --order desc | |
--json <fields> | JSON output | --json name,stargazersCount,language | |
-w, --web | Open in browser | -w |
JSON Output Fields
createdAt, defaultBranch, description, forksCount, fullName, hasDownloads, hasIssues, hasPages, hasProjects, hasWiki, homepage, id, isArchived, isDisabled, isFork, isPrivate, language, license, name, openIssuesCount, owner, pushedAt, size, stargazersCount, updatedAt, url, visibility, watchersCount
Exclusion Syntax (Critical!)
When using inline query exclusions (negations with -), you MUST use the -- separator:
✅ Correct: gh search repos -- "search-terms -qualifier:value" ❌ Wrong: gh search repos "search-terms" --flag=-value ❌ Wrong: gh search repos "search-terms" --flag=!value ❌ Wrong: gh search repos --language=-Go
Examples:
gh search repos -- "cli -language:go"(exclude language)gh search repos -- "starter -archived:true"(exclude archived)gh search repos -- "web -topic:deprecated"(exclude topic)gh search repos -- "library -license:gpl-3.0"(exclude license)
Why the `--` separator is required: The -- tells the shell to stop parsing flags and treat everything after it as arguments. Without it, -qualifier:value inside quotes may be misinterpreted.
Critical Syntax Rules
When to Use Flag Syntax vs Query Syntax
Decision Tree:
Flag Syntax (for positive filters):
Query Syntax with `--` (required for exclusions):
⚠️ NEVER mix both syntaxes in a single command!
1. Exclusions and Negations
CRITICAL: When excluding results, you MUST use query syntax with the -- separator.
Exclusion Syntax Rules:
- Use the
--separator before your query - Use
-qualifier:valueformat (dash prefix for negation) - Quote the entire query string
Examples:
Single exclusion:
Multiple exclusions:
Combine with positive filters using flags:
PowerShell exclusions:
Common Exclusion Patterns:
| User Request | Command | |
|---|---|---|
| "Find repos but not archived" | gh search repos -- "starter -archived:true" | |
| "Repos excluding specific language" | gh search repos -- "web framework -language:php" | |
| "Repos not in specific topic" | gh search repos -- "cli -topic:deprecated" | |
| "Repos excluding multiple languages" | gh search repos -- "game -language:javascript -language:css" | |
| "Repos not forks" | gh search repos -- "template -is:fork" (or use --include-forks false) | |
| "Repos excluding low stars" | gh search repos -- "framework -stars:<100" | |
| "Repos not with specific license" | gh search repos -- "library -license:gpl-3.0" |
2. Special Values
- Multiple topics:
--topic unix,terminal - Boolean flags:
--archived falseor--archived true - Fork inclusion:
--include-forks false|true|only
3. Quoting Rules
Multi-word search:
Comparison operators need quotes:
Ranges use quotes:
Common Use Cases
Find popular Python repos:
Find repos with good first issues:
Find recently updated repos:
Find repos by topic:
Find repos by license:
Exclude archived repos:
Find repos by organization:
Exclude forks:
Find only forks:
Find repos in star range:
Exclude specific language:
Search in name only:
Common Mistakes
| Mistake | Problem | Fix | |
|---|---|---|---|
--language="NOT javascript" or --archived=-true | Flag syntax doesn't support negation | Use query: -- "-language:javascript" or -- "-archived:true" | |
gh search repos cli -language:js | -language interpreted as flag | Use --: -- "cli -language:js" | |
"cli NOT language:js" | NOT keyword doesn't work | Use -: -- "cli -language:js" | |
Mixing syntaxes: --stars ">100" "cli -language:js" | Can't mix flags with query qualifiers | Use query for all: -- "cli stars:>100 -language:js" | |
| Not quoting comparisons | Shell interprets > | Quote: --stars ">1000" | |
--archived archived | Invalid value | Use boolean: --archived true or false | |
| Not quoting multi-word search | Searches separately | Quote: "machine learning" | |
Using @ with owner | Invalid syntax | Drop @: --owner github | |
PowerShell without --% | Breaks with exclusions | Add: gh --% |
Installation Check
If gh command not found:
If not authenticated:
Comparison Operators
>- Greater than>=- Greater than or equal<- Less than<=- Less than or equal..- Range:100..1000or2024-01-01..2024-12-31
Common Licenses
mit- MIT Licenseapache-2.0- Apache License 2.0gpl-3.0- GNU GPL v3bsd-2-clause- BSD 2-Clausebsd-3-clause- BSD 3-Clausempl-2.0- Mozilla Public License 2.0isc- ISC License
Match Field Options
name- Search repository names onlydescription- Search descriptions onlyreadme- Search README files only
Example: gh search repos "documentation" --match readme
Related
- GitHub search syntax: https://docs.github.com/search-github/searching-on-github/searching-for-repositories
- For searching other resources:
gh-search-code,gh-search-commits,gh-search-issues,gh-search-prs
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/gh-search-repos/SKILL.md
Popularity
- Repository stars
- 3
- 7-day trend score
- 7
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 29 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aaddrick/gh-cli-search/gh-search-repos)