gh-grep

Search code patterns across public GitHub repositories with regex filters.

6|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/archibate/archibate-skills --skill gh-grep
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh-grep
Source: https://github.com/archibate/archibate-skills/tree/main/old-skills/trash-skills/gh-grep
Command: npx skills add https://github.com/archibate/archibate-skills --skill gh-grep

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires commander, mcporter, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill finds literal code patterns in millions of public GitHub repositories so developers can discover real-world implementation examples, usage patterns, and configuration snippets without manually browsing many projects.

Core Features & Use Cases

  • Literal and regex code search: search for exact code snippets or use regular expressions for flexible, multiline patterns.
  • Filterable scope: narrow results by programming language, repository, or file path to find the most relevant examples.
  • Exportable results: supports multiple output formats and timeouts for integration into workflows.
  • Use Case: When implementing an unfamiliar API, use this skill to locate production examples showing correct invocation, error handling, and common integration patterns.

Quick Start

Run a search for a code pattern like useEffect cleanup across TypeScript files and return the results in markdown format.

Frequently Asked Questions about gh-grep

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

FAQPage Schema
How do I search for real-world GitHub code examples using a regex pattern?

To search for real-world GitHub code examples, you can input literal code snippets or regular expressions to retrieve matching implementation patterns across public repositories. This allows you to find syntax usage and API integration examples without manually browsing projects.

Can I filter code search results by programming language and file path?

Yes, you can filter code search results by programming language, repository, and file path. This narrows the scope to help you locate the most relevant production examples and configuration snippets matching your query.

What is the best way to find API usage patterns across public GitHub repositories?

The best way to find API usage patterns is to search literal code strings or regex patterns across public GitHub repositories. This retrieves real-world implementation examples showing correct invocation, error handling, and common integration patterns.

Does this code search skill support exporting results in markdown format?

Yes, this code search skill supports multiple output formats including markdown, alongside configurable timeouts. This allows you to easily export and integrate the retrieved code examples into your existing development workflows.

How do I find configuration snippets and framework integration examples without browsing multiple projects?

You can find configuration snippets and framework integration examples by running a literal or regex code search across public GitHub repositories. This bypasses manual browsing and directly retrieves real-world implementation examples.

What are the limitations of using regex for code pattern search across GitHub repositories?

Regex code pattern search is limited to public GitHub repositories and supports configurable timeouts to manage query execution. It retrieves real-world implementation examples but does not access private repositories or enterprise codebases.