github-code-search

Search GitHub repositories for code matching terms with filters and JSON output.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/raphi011/skills --skill github-code-search-raphi011
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-code-search
Source: https://github.com/raphi011/skills/tree/main/skills/github-code-search
Command: npx skills add https://github.com/raphi011/skills --skill github-code-search-raphi011

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you find specific code snippets, implementations, or examples across multiple GitHub repositories when local search tools are insufficient.

Core Features & Use Cases

  • Cross-repository Search: Search code across various GitHub repositories owned by a specific user or organization.
  • Targeted Filtering: Narrow down searches by language, filename, or file extension.
  • Structured Output: Retrieve results in JSON format for programmatic processing and display.
  • Use Case: You need to find how a specific API is used in different microservices within your organization. This Skill can search all repositories under your organization for that API usage.

Quick Start

Search GitHub for code related to 'authentication' within the 'my-org' organization.

Frequently Asked Questions about github-code-search

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

FAQPage Schema
How do I search for code across multiple GitHub repositories at once?

To search code across multiple GitHub repositories, you need a cross-repository search tool that filters by specific terms, owner, organization, language, and file extension. This approach enables cross-repository code discovery and finds usage examples globally.

Can I filter GitHub code search results by programming language and filename?

Yes, you can filter GitHub code search results by language, filename, and file extension. This targeted filtering narrows down code searches to specific file types and implementations within repositories owned by a user or organization.

How do I find how a specific API is implemented in different microservices?

Finding how a specific API is implemented across different microservices requires searching code within your organization's repositories. You search for the API usage term across all repositories under your organization to find implementation examples.

Does GitHub code search support structured JSON output for programmatic processing?

Yes, GitHub code search supports structured JSON output. Retrieving results in JSON format enables programmatic processing and display of the matched code snippets, implementations, and examples found across the searched repositories.

What is the best way to find usage examples of a pattern in GitHub repositories?

The best way to find usage examples of a pattern in GitHub repositories is using a cross-repository code search. Searching for specific terms and patterns across an owner's repositories enables implementation searching and code discovery.