github-search

Search public GitHub code with ghgrep using filters and regex modes.

4|1|Updated Nov 1, 2025
One-click install
npx skills add https://github.com/xtrm-dev/specialists --skill github-search-xtrm-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-search
Source: https://github.com/xtrm-dev/specialists/tree/main/.xtrm/skills/default/github-search
Command: npx skills add https://github.com/xtrm-dev/specialists --skill github-search-xtrm-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you quickly find real implementation examples in public GitHub repositories when you need proven patterns, API usage, or production snippets instead of guessing from memory.

Core Features & Use Cases

  • Search GitHub code from the command line through the ghgrep wrapper.
  • Narrow results by language, repository, file path, case sensitivity, whole words, or regular expressions.
  • Use it to compare implementation styles, find canonical examples, and gather reusable snippets for debugging or building features.

Quick Start

Ask the assistant to find a few relevant GitHub code examples for the pattern you are investigating.

Frequently Asked Questions about github-search

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

FAQPage Schema
How do I search public GitHub repositories for code examples from the command line?

Yes, GitHub code search through ghgrep supports filtering results by specific programming language, repository name, and file path to help you narrow down implementation patterns and API usage examples.

Can I use regular expressions when searching for code snippets on GitHub?

Yes, GitHub code search via ghgrep supports regex, literal, case-sensitive, and whole-word matching modes to help you find precise code snippets and API usage examples across public repositories.

What's the best way to find real API usage examples in production code?

The best way to find real API usage examples is searching public GitHub repositories with ghgrep, which lets you filter by language and path to surface proven production snippets instead of guessing from memory.

Do I need direct MCP access to search GitHub code for implementation patterns?

No, you do not need direct MCP access to search GitHub code; the ghgrep wrapper queries mcp.grep.app directly from the command line to retrieve repository-filtered and language-filtered implementation patterns.

Does GitHub code search support JSON output for repository snippets?

Yes, GitHub code search through the ghgrep wrapper supports a JSON result mode for returning repository-filtered and language-filtered production snippets, alongside literal, regex, case-sensitive, and whole-word search modes.