Token导航 LogoToken导航

Agent Skill · 研究检索

gh-search-repos(gh 搜索仓库)

gh-search-repos 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

gh-search-repos 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 56,324。

总安装 456周安装 19GitHub Stars 4下载 152核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:gh-search-repos(gh 搜索仓库)
来源仓库:https://github.com/aaddrick/gh-cli-search
仓库路径:skills/gh-search-repos
安装命令:
npx skills add https://github.com/aaddrick/gh-cli-search --skill gh-search-repos
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/aaddrick/gh-cli-search --skill gh-search-repos

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

gh-search-repos 用于查找、检索和筛选相关信息。适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果。通过 npx skills add 命令从指定 GitHub 仓库安装并使用。

安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。可结合来源仓库和原始 README 继续核验具体用法。

来源仓库内路径:skills/gh-search-repos

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/aaddrick/gh-cli-search --skill gh-search-repos;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

gh-search-repos 怎么安装?

在终端执行 npx skills add https://github.com/aaddrick/gh-cli-search --skill gh-search-repos。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

gh-search-repos 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

gh-search-repos 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

gh-search-repos 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

gh-search-repos 用的人多吗?

公开数据是累计安装 456 次,近一周安装 19 次,下载 152 次,GitHub 4 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

gh-search-repos 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
gh-search-repos

gh 搜索仓库 · 本页

4564操作浏览器未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.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

gh search repos [<query>] [flags]

Key Flags Reference

Repository Attributes

FlagPurposeExample
--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

FlagPurposeExample
--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

FlagPurposeExample
--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

FlagPurposeExample
--created <date>Creation date--created ">2024-01-01"
--updated <date>Last update date--updated ">2024-06-01"

Search Scope

FlagPurposeExample
--match <strings>Search in: name, description, readme--match name
`--include-forks {false\true\only}`Include/exclude forks--include-forks false

Output & Sorting

FlagPurposeExample
-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, --webOpen 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:

Does your search include:
  - Any exclusions (NOT, minus, without, except)?  → Use Query Syntax with `--`
  - Complex boolean logic (OR, AND)?              → Use Query Syntax with `--`

Otherwise:
  - Simple positive filters only?                  → Use Flag Syntax

Flag Syntax (for positive filters):

gh search repos "cli" --language go --stars ">100"

Query Syntax with -- (required for exclusions):

gh search repos -- "cli -language:javascript -archived:true"

⚠️ 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:
  1. Use the -- separator before your query
  2. Use -qualifier:value format (dash prefix for negation)
  3. Quote the entire query string
Examples:

Single exclusion:

# Exclude specific language
gh search repos -- "web framework -language:javascript"

# Exclude archived repos
gh search repos -- "cli tool -archived:true"

Multiple exclusions:

# Exclude multiple languages
gh search repos -- "game engine -language:javascript -language:python"

# Exclude archived and small repos
gh search repos -- "starter -archived:true -stars:<10"

Combine with positive filters using flags:

# Wrong - mixing syntaxes:
gh search repos "cli" --language go -archived:true  # ❌

# Correct - use query syntax for everything when excluding:
gh search repos -- "cli language:go -archived:true"  # ✅

PowerShell exclusions:

# Use --% to prevent PowerShell parsing
gh --% search repos -- "cli -language:javascript"
Common Exclusion Patterns:
User RequestCommand
"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 false or --archived true
  • Fork inclusion: --include-forks false|true|only

3. Quoting Rules

Multi-word search:

gh search repos "machine learning"

Comparison operators need quotes:

gh search repos "python" --stars ">1000"

Ranges use quotes:

gh search repos "cli" --stars "100..500"

Common Use Cases

Find popular Python repos:

gh search repos "data science" --language python --stars ">5000"

Find repos with good first issues:

gh search repos --language javascript --good-first-issues ">=10"

Find recently updated repos:

gh search repos "react" --updated ">2024-01-01" --stars ">100"

Find repos by topic:

gh search repos --topic machine-learning --language python

Find repos by license:

gh search repos "web framework" --license mit,apache-2.0

Exclude archived repos:

gh search repos "cli tool" --archived false

Find repos by organization:

gh search repos --owner microsoft --visibility public

Exclude forks:

gh search repos "starter" --include-forks false

Find only forks:

gh search repos "template" --include-forks only

Find repos in star range:

gh search repos "game engine" --stars "100..1000"

Exclude specific language:

gh search repos -- "cli -language:go"

Search in name only:

gh search repos "awesome" --match name

Common Mistakes

MistakeProblemFix
--language="NOT javascript" or --archived=-trueFlag syntax doesn't support negationUse query: -- "-language:javascript" or -- "-archived:true"
gh search repos cli -language:js-language interpreted as flagUse --: -- "cli -language:js"
"cli NOT language:js"NOT keyword doesn't workUse -: -- "cli -language:js"
Mixing syntaxes: --stars ">100" "cli -language:js"Can't mix flags with query qualifiersUse query for all: -- "cli stars:>100 -language:js"
Not quoting comparisonsShell interprets >Quote: --stars ">1000"
--archived archivedInvalid valueUse boolean: --archived true or false
Not quoting multi-word searchSearches separatelyQuote: "machine learning"
Using @ with ownerInvalid syntaxDrop @: --owner github
PowerShell without --%Breaks with exclusionsAdd: gh --%

Installation Check

If gh command not found:

# Check if gh is installed
which gh

# Install: https://cli.github.com/manual/installation

If not authenticated:

# Authenticate with GitHub
gh auth login

Comparison Operators

  • > - Greater than
  • >= - Greater than or equal
  • < - Less than
  • <= - Less than or equal
  • .. - Range: 100..1000 or 2024-01-01..2024-12-31

Common Licenses

  • mit - MIT License
  • apache-2.0 - Apache License 2.0
  • gpl-3.0 - GNU GPL v3
  • bsd-2-clause - BSD 2-Clause
  • bsd-3-clause - BSD 3-Clause
  • mpl-2.0 - Mozilla Public License 2.0
  • isc - ISC License

Match Field Options

  • name - Search repository names only
  • description - Search descriptions only
  • readme - Search README files only

Example: gh search repos "documentation" --match readme

Related

平台分布

Codex

36.33%
按下载量换算55

Claude

27.88%
按下载量换算42

Cursor

17.73%
按下载量换算27

Gemini CLI

9.67%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills