search-operations

Search GitHub code, issues, PRs, repositories, and users via gh CLI.

Updated Oct 20, 2025
One-click install
npx skills add https://github.com/Nice-Wolf-Studio/agent-github-skills --skill search-operations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: search-operations
Source: https://github.com/Nice-Wolf-Studio/agent-github-skills/tree/main/skills/search-operations
Command: npx skills add https://github.com/Nice-Wolf-Studio/agent-github-skills --skill search-operations

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill simplifies the process of locating code, issues, users, PRs, and repositories on GitHub by leveraging the gh search capabilities, reducing manual browsing time.

Core Features & Use Cases

  • Comprehensive search across code, issues/PRs, repositories, and users.
  • Supports advanced qualifiers (language, owner/org, state, labels, date) and JSON output for automation.
  • Use cases include finding security-related code, triaging issues across a project, discovering repositories by topic, and identifying collaborators within an organization.

Quick Start

Use the search-operations skill to locate code, issues, or repositories. Example: gh search code "authentication" --limit 20

Frequently Asked Questions about search-operations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search for code and issues across GitHub repositories using the gh CLI?

You can search code, issues, and pull requests across GitHub by running gh search queries with specific qualifiers like language, owner, or state to filter results within a repository, organization, or the entire GitHub scope.

Can I filter GitHub pull requests by label and state in a single search query?

Yes, you can filter GitHub pull requests by applying state and label qualifiers directly in your gh search query to triage issues across a project and identify specific pull requests within an organization.

Does the gh CLI search require authentication to find repositories and users?

Yes, performing a GitHub search with the gh CLI requires authentication. You must authenticate your gh CLI session before executing search queries across repositories, code, or users.

What is the best way to output GitHub search results for downstream automation tasks?

The best way to output GitHub search results for automation is using the JSON output format. The gh CLI supports JSON output for search queries across code, issues, and repositories for downstream processing.

Can I discover repositories by topic and find collaborators within a specific organization?

Yes, you can discover repositories by topic and identify collaborators within an organization by executing targeted gh search queries with owner and topic qualifiers to locate users and repositories.

How do I find security-related code across an entire GitHub organization?

To find security-related code across an organization, use the gh search code command with relevant keywords and scope the search to the organization level using the appropriate owner qualifier to filter results.