gh-search — community gh-search, claude-skill-registry, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Ideal for CLI Agents requiring advanced GitHub search functionality with exclusion support The most comprehensive Claude Code skills registry | Web Search: https://skills-registry-web.vercel.app

majiayu000 majiayu000
[0]
[0]
Updated: 2/20/2026

Agent Capability Analysis

The gh-search skill by majiayu000 is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Ideal for CLI Agents requiring advanced GitHub search functionality with exclusion support

Core Value

Empowers agents to perform complex GitHub searches using `gh search` subcommands with qualifiers, handling exclusions with `--` prefixes and queries containing spaces or special characters via the GitHub CLI

Capabilities Granted for gh-search

Searching GitHub repositories for specific code snippets
Constructing complex queries with multiple qualifiers for issues or PRs
Utilizing `--` prefixes for exclusion searches

! Prerequisites & Limits

  • Requires GitHub CLI installation
  • Shell interpretation limitations for queries with `-` prefixes without `--`
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

gh-search

Install gh-search, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

GitHub CLI Search

Overview

Search GitHub from the command line using gh search subcommands. The key principle: Always use -- before queries with exclusions to prevent shell interpretation of - prefixes.

When to Use

Use this skill when:

  • Searching GitHub via gh CLI for issues, PRs, repos, code, or commits
  • User requests searches with exclusions (NOT, minus prefix)
  • Constructing complex queries with multiple qualifiers
  • Queries contain spaces or special characters

Subcommands Quick Reference

SubcommandUse ForCommon Flags
gh search issuesIssues (add --include-prs for PRs too)--label, --state, --author, --assignee
gh search prsPull requests only--label, --state, --author, --draft, --merged
gh search reposRepositories--language, --stars, --topic, --owner
gh search codeCode within files--repo, --language, --filename
gh search commitsCommit messages--repo, --author, --committer

Critical Syntax Rules

1. Exclusions Require -- Flag

Unix/Linux/Mac:

bash
1gh search issues -- "bug -label:duplicate"

PowerShell:

powershell
1gh --% search issues -- "bug -label:duplicate"

Why: The - prefix gets interpreted as a command flag without --. PowerShell needs --% to stop parsing.

2. Quoting Rules

Multi-word queries need quotes:

bash
1gh search issues "memory leak"

Entire query with spaces should be quoted:

bash
1gh search issues "bug label:urgent created:>2024-01-01"

Qualifier values with spaces need inner quotes:

bash
1gh search prs -- 'security label:"bug fix"'

3. Qualifier Syntax

Inline qualifiers (use within search query):

bash
1gh search repos "react stars:>1000 language:typescript"

Flag-based (use as separate flags):

bash
1gh search repos "react" --language typescript --stars ">1000"

Can mix both:

bash
1gh search issues "crash" --label bug created:>2024-01-01

Common Qualifiers

Comparison Operators

  • >, >=, <, <= - Numeric: stars:>100, comments:>=5
  • .. - Ranges: stars:10..50, created:2024-01-01..2024-12-31

Special Values

  • @me - Current user: author:@me, assignee:@me, owner:@me
  • Dates use ISO8601: created:>2024-01-01 or created:2024-01-01..2024-12-31
  • in:title - Search in title only
  • in:body - Search in body only
  • in:comments - Search in comments only

Exclusions

  • -qualifier:value - Exclude: -label:bug, -language:javascript
  • NOT keyword - For words only: "hello NOT world"

Examples

Find your open issues without bug label:

bash
1gh search issues -- "is:open author:@me -label:bug"

Find popular Python ML repos updated recently:

bash
1gh search repos "machine learning" --language python --stars ">1000" --updated ">2024-01-01"

Find PRs with specific label and text:

bash
1gh search prs -- 'security label:"bug fix" created:>2024-01-01'

Search code in organization repos:

bash
1gh search code "TODO" --owner myorg --language javascript

Common Mistakes

MistakeProblemFix
gh search issues -label:bug-label interpreted as flagAdd --: gh search issues -- "-label:bug"
gh search repos machine learningSearches "machine" OR "learning"Quote it: "machine learning"
in:title outside quotesShell interprets : oddlyInclude in query: "crash in:title"
Mixing @ with valueInvalid syntaxUse @me or username, not both: author:@me ✓, author:@username ✗ (drop @)
PowerShell without --%Parsing breaks with exclusionsAdd gh --% before command

Output Options

All subcommands support:

  • --limit <n> - Max results (default: 30, max: 1000)
  • --json <fields> - JSON output for scripting
  • --web - Open results in browser
  • --sort <field> - Sort by: comments, created, reactions, updated, stars, etc.
  • --order asc|desc - Sort direction (default: desc)

Real-World Impact

Correct syntax prevents:

  • Command failures from misinterpreted flags
  • Missing results from incorrect exclusions
  • Errors from unquoted spaces
  • Platform-specific parsing issues

FAQ & Installation Steps

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

? Frequently Asked Questions

What is gh-search?

Ideal for CLI Agents requiring advanced GitHub search functionality with exclusion support The most comprehensive Claude Code skills registry | Web Search: https://skills-registry-web.vercel.app

How do I install gh-search?

Run the command: npx killer-skills add majiayu000/claude-skill-registry/gh-search. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for gh-search?

Key use cases include: Searching GitHub repositories for specific code snippets, Constructing complex queries with multiple qualifiers for issues or PRs, Utilizing `--` prefixes for exclusion searches.

Which IDEs are compatible with gh-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 gh-search?

Requires GitHub CLI installation. Shell interpretation limitations for queries with `-` prefixes without `--`.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add majiayu000/claude-skill-registry/gh-search. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use gh-search immediately in the current project.

Related Skills

Looking for an alternative to gh-search or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI