xiaohongshu
xiaohongshu
gh-grep
Search real-world code examples across millions of GitHub repositories using grep.app. This skill should be used when looking for implementation patterns, API usage examples, library integration patterns, or production code references. Supports literal code search, regex patterns, and filtering b...
Full skill instructions
Base directory for this skill: /home/hazeruno/.config/opencode/skills/gh-grep
Search for real-world code examples across over a million public GitHub repositories via grep.app.
Run the CLI script with bun (use absolute path):
bun /home/hazeruno/.config/opencode/skills/gh-grep/scripts/grep.ts searchGitHub --query "<code-pattern>" [options]
| Option | Description |
|---|---|
--query | Literal code pattern (required) |
--match-case | Case-sensitive search |
--match-whole-words | Match whole words only |
--use-regexp | Interpret query as regex |
--repo | Filter by repository (e.g., facebook/react) |
--path | Filter by file path (e.g., src/components/) |
--language | Filter by language (comma-separated, e.g., TypeScript,TSX) |
-t, --timeout <ms>: Call timeout (default: 30000)-o, --output <format>: Output format: text | markdown | json | rawImportant: This tool searches for literal code patterns, not keywords.
Good searches:
useState( - Find React useState usageimport React from - Find React import statementsasync function - Find async function declarationsBad searches:
react tutorial - Keywords, not codebest practices - Concepts, not patternshow to use - Questions, not codeFor detailed pattern examples and regex usage, see references/api_reference.md.
# Find Authentication Patterns
bun /home/hazeruno/.config/opencode/skills/gh-grep/scripts/grep.ts searchGitHub \
--query "getServerSession" --language "TypeScript,TSX"
# Find Error Boundary Implementations
bun /home/hazeruno/.config/opencode/skills/gh-grep/scripts/grep.ts searchGitHub \
--query "ErrorBoundary" --language "TSX"
# Find useEffect Cleanup with Regex
bun /home/hazeruno/.config/opencode/skills/gh-grep/scripts/grep.ts searchGitHub \
--query "(?s)useEffect\(\(\) => {.*removeEventListener" --use-regexp true
# Find CORS Handling in Flask
bun /home/hazeruno/.config/opencode/skills/gh-grep/scripts/grep.ts searchGitHub \
--query "CORS(" --match-case true --language "Python"
# Search Within Specific Repository
bun /home/hazeruno/.config/opencode/skills/gh-grep/scripts/grep.ts searchGitHub \
--query "createContext" --repo "facebook/react"
mcporter package (embedded in script)scripts/grep.ts - Main CLI tool wrapping grep.app MCP serverreferences/api_reference.md - Detailed parameter documentation and regex patternsxiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience