home / skills / trevors / dot-claude / github-prior-art
This skill helps you research GitHub for proven implementation patterns and library choices before proposing solutions.
npx playbooks add skill trevors/dot-claude --skill github-prior-artReview the files below or copy the command above to add this skill to your agents.
---
name: GitHub Prior Art Research
description:
When asked implementation questions or tool selection questions like "how do
I implement", "what's the best way to", "how should I", "which library",
"what tool should I use", or "how might we", search GitHub for prior art,
code examples, and proven approaches before proposing solutions
---
# GitHub Prior Art Research
## Purpose
This skill activates when you ask questions about implementation approaches or
tool selection. It guides Claude to research GitHub for proven solutions,
popular libraries, real-world examples, and community discussions before
formulating an answer.
## When This Skill Activates
This skill automatically engages when your questions include patterns like:
- "How do I [implement/build/create/add] X?"
- "What's the best way to [solve/approach/handle] X?"
- "How should I structure/organize/design X?"
- "Which library/tool/framework should I use for X?"
- "What are people using for X?"
- "How might we [implement/architect] X?"
## Research Process
### 1. Identify the Core Problem
Extract the key concept or task from your question. What's the actual problem you're solving?
### 2. Search Multiple Sources on GitHub
Use the WebSearch tool to find relevant information on GitHub:
**Code Examples**: Search for implementation patterns
- Example: `site:github.com "how to implement [X]" language:[relevant]`
- Look for well-maintained repos with multiple stars
**Popular Repos**: Find established solutions
- Search for repos that solve your problem
- Review their approach, architecture, and design decisions
**Issues & Discussions**: Learn from community problem-solving
- Search GitHub issues for discussions about similar challenges
- See what problems others encountered and how they solved them
**Documentation**: Find best practices and patterns
- Check README files and docs in relevant repos
- Look for architectural decisions and trade-offs explained
### 3. Synthesize Findings
Analyze what you discovered:
- What approaches are most common?
- What patterns do successful projects use?
- What trade-offs exist between different approaches?
- What mistakes do people make (from issues/discussions)?
### 4. Present Evidence-Based Answer
Propose solutions grounded in your research:
- Cite specific repos or discussions
- Explain why certain approaches work
- Mention alternatives and their trade-offs
- Point to real examples the user can study
## Key Principles
- **Always search before proposing**: GitHub research informs every recommendation
- **Cite sources**: Include repo links or discussion references
- **Show alternatives**: Discuss different approaches and their trade-offs
- **Learn from mistakes**: Include common pitfalls found in issues/discussions
- **Respect complexity**: Acknowledge when multiple valid approaches exist
## Example Usage
**User asks**: "How do I implement real-time updates in a React app?"
**Skill activates because**: The question matches "How do I implement [X]"
**Claude's process**:
1. Searches GitHub for popular React real-time solutions (Firebase, Socket.io, etc.)
2. Examines top repos and their architectural approaches
3. Reviews issues discussing real-time update challenges
4. Reads documentation explaining different patterns
5. Proposes solution citing specific repos: "Based on popular approaches like [RepoA] and [RepoB], here are two main patterns..."
This skill activates when you ask implementation or tool-selection questions and performs targeted GitHub research before answering. It finds code examples, popular repositories, issues, and documentation to ground recommendations in real-world prior art. The goal is evidence-based guidance that cites concrete examples and trade-offs.
On activation the skill extracts the core problem from your query, then runs focused GitHub searches for relevant code, libraries, and discussions. It prioritizes well-maintained, highly-rated repos, inspects README/docs and issues for design decisions and pitfalls, and synthesizes common patterns and trade-offs. The result is a practical recommendation set with links to representative projects and community insights.
Will you always cite specific repos?
Yes. Recommendations include representative repository links, README excerpts, and relevant issue threads used during the analysis.
What languages and ecosystems do you search?
Searches target the languages and ecosystems implied by your question; you can specify a preference to focus results (for example, Python, JavaScript, or Go).
How deep is the inspection of a repo?
I prioritize README, directory structure, recent commits, stars, and open/closed issues. For critical choices I inspect example code files and notable discussion threads to surface practical trade-offs.