Agent skill
gh-search
Search GitHub for code examples and patterns. Use when user asks to "search GitHub", "find examples on GitHub", "how do people implement X", or needs real-world code patterns.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/gh-search
SKILL.md
GitHub Code Search
Search GitHub for real-world code examples and implementation patterns.
@context/blocks/construct/gh-search.md
When to Use
- Need real-world examples ("how do people implement X?")
- Exploring unfamiliar libraries/frameworks
- Comparing implementation approaches
Workflow
-
Generate Queries: Create 3-5 targeted queries
- Language filters:
language:typescript,language:go - Code patterns:
function use,const use = - Config files:
filename:tsconfig.json
- Language filters:
-
Execute: Run
aaa gh-search "query"for each query -
Aggregate: Combine results, deduplicate, ensure diversity
-
Analyze: Extract imports, patterns, architectural styles
-
Report: Synthesize findings with GitHub URLs
-
Save: Write report to
docs/research/github/[timestamp]-topic.md
Input: $ARGUMENTS
The search query. Can include GitHub search qualifiers:
language:typescriptpath:src/extension:json
Output
# GitHub Code Search: [Topic]
## Summary
[Overview of patterns found]
## Patterns
- **[Pattern Name]**: [Description] (Refs: [repo/file](url))
## Examples
### [Approach Name]
- **Pros/Cons**: [Trade-offs]
- **Code**: [Link to file](url)
## All Files
[List of all analyzed files with GitHub URLs]
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?