research
Analyzes existing projects to identify proven patterns and avoid common anti-patterns.
Install
mkdir -p .claude/skills/research-ngapngap && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15766" && unzip -o skill.zip -d .claude/skills/research-ngapngap && rm skill.zipInstalls to .claude/skills/research-ngapngap
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
1. **[Anti-pattern]**: [why it's bad, found in repo X] 2. **[Anti-pattern]**: [why it's bad]Key capabilities
- →Parse requirements and extract keywords for GitHub searches
- →Find relevant GitHub repositories based on stars, activity, and license
- →Analyze directory structures and patterns of top repositories
- →Identify technologies, dependencies, and anti-patterns in codebases
- →Summarize shortlisted repositories and recommend architectures/patterns
- →Generate reports with recommended architecture, folder structure, and technology options
How it works
This skill researches and analyzes sample repositories on GitHub by parsing requirements, conducting targeted searches, and performing deep analysis of repository structures. It then summarizes findings and recommends optimal architectures and patterns.
Inputs & outputs
When to use research
- →Finding library recommendations
- →Comparing architectural approaches
- →Identifying industry-standard patterns
About this skill
Skill: Research
Mô tả
Skill này giúp tìm kiếm và phân tích repo mẫu trên GitHub trước khi triển khai. Thay vì "nghĩ từ đầu", chúng ta học hỏi từ những gì đã có, tiết kiệm thời gian và tránh lỗi phổ biến.
Khi nào sử dụng
- User đưa yêu cầu nhưng chưa rõ cách làm nhanh nhất
- Cần tìm patterns, architectures đã proven
- Muốn so sánh các approaches khác nhau
- Cần tìm libraries/tools phù hợp
Workflow
Phase 1: Parse Requirements
- Đọc
intake.mdđể hiểu context - Extract keywords cho search
- Xác định tech stack constraints
Phase 2: GitHub Search
- Tạo search queries thông minh
- Tìm repos phù hợp (stars, recent activity, license)
- Filter theo language/tech stack
- Rank theo relevance
Phase 3: Deep Analysis
- Phân tích cấu trúc thư mục của top repos
- Xác định patterns được dùng
- Tìm hiểu technologies và dependencies
- Ghi nhận anti-patterns cần tránh
Phase 4: Summarize
- Tổng hợp shortlist các repos hay nhất
- Recommend architecture/patterns
- Liệt kê lessons learned
- Xuất output chuẩn
Output Format
File: output/research/shortlist.json
{
"query": "original search context",
"timestamp": "2024-01-22T00:00:00Z",
"intake_source": "output/intake/intake.md",
"repos": [
{
"rank": 1,
"name": "owner/repo-name",
"url": "https://github.com/owner/repo-name",
"stars": 5000,
"forks": 500,
"last_updated": "2024-01-15",
"description": "Short description from GitHub",
"language": "TypeScript",
"license": "MIT",
"relevance_score": 0.95,
"technologies": ["React", "Next.js", "Prisma"],
"patterns_found": [
"monorepo with turborepo",
"feature-based folder structure",
"server components"
],
"strengths": [
"Well documented",
"Active maintenance",
"Good test coverage"
],
"weaknesses": [
"Complex setup",
"Heavy dependencies"
],
"notes": "Good example for enterprise-scale apps"
}
],
"summary": {
"total_repos_analyzed": 50,
"shortlisted": 5,
"recommended_stack": {
"frontend": "Next.js with App Router",
"backend": "tRPC or Next.js API Routes",
"database": "PostgreSQL with Prisma",
"deployment": "Vercel"
}
}
}
File: output/research/patterns.md
# Research Patterns Report
## Context
- **Project**: [from intake]
- **Search Date**: [timestamp]
- **Repos Analyzed**: [count]
---
## Recommended Architecture
### Pattern: [Name]
- **Source**: [repo link]
- **Why it fits**: [reasoning]
- **Implementation notes**: [how to apply]
### Folder Structure
src/ ├── app/ # Routes (Next.js App Router) ├── components/ # Reusable UI ├── lib/ # Utilities ├── services/ # Business logic └── types/ # TypeScript types
---
## Technology Recommendations
### Frontend
| Option | Pros | Cons | Recommended? |
|--------|------|------|--------------|
| Next.js | SSR, App Router, Vercel | Learning curve | Yes |
| Vite + React | Fast dev, simple | No SSR | For SPAs |
### Backend
| Option | Pros | Cons | Recommended? |
|--------|------|------|--------------|
| tRPC | Type-safe, fast | Next.js specific | Yes |
| Express | Flexible | More setup | No |
### Database
| Option | Pros | Cons | Recommended? |
|--------|------|------|--------------|
| Prisma + PostgreSQL | Type-safe ORM | Schema migrations | Yes |
| Drizzle | Lighter | Newer | Alternative |
---
## Code Patterns
### 1. [Pattern Name]
**Source**: [repo]
**Usage**: [when to use]
```typescript
// Example code from repo
2. [Pattern Name]
...
Anti-patterns to Avoid
- [Anti-pattern]: [why it's bad, found in repo X]
- [Anti-pattern]: [why it's bad]
Dependencies Worth Noting
| Package | Purpose | Stars | License |
|---|---|---|---|
| package-name | Description | 10k | MIT |
Next Steps
- Clone [recommended repo] as reference
- Adapt [pattern] for our use case
- Create specs based on this research
Generated by Research Skill | Based on [X] repos
## Search Strategies
### 1. Keyword-based Search
Basic search
language:typescript stars:>1000 "nextjs dashboard"
With topic filters
topic:react topic:typescript stars:>500
Recent and maintained
pushed:>2024-01-01 stars:>100 "auth"
### 2. Awesome Lists
- Tìm `awesome-*` lists liên quan đến tech stack
- Đây là curated lists với quality repos
### 3. GitHub Topics
- Browse topics: `github.com/topics/[topic]`
- Filter by language và stars
### 4. Similar Projects
- Dùng GitHub's "Used by" để tìm projects dùng cùng dependencies
- Check "Insights > Dependency graph"
## Scoring Criteria
| Criterion | Weight | Description |
|-----------|--------|-------------|
| **Stars** | 20% | Popularity indicator |
| **Recent Activity** | 25% | Maintained in last 6 months |
| **Documentation** | 20% | README, docs folder, examples |
| **Code Quality** | 20% | Structure, types, tests |
| **Relevance** | 15% | Match với requirements |
### Relevance Score Formula
score = (stars_norm * 0.2) + (activity_norm * 0.25) + (docs_score * 0.2) + (quality_score * 0.2) + (keyword_match * 0.15)
## Integration với Pipeline
### Input từ Intake
```javascript
// Đọc intake để extract keywords
const intake = readFile('output/intake/intake.md');
const keywords = extractKeywords(intake);
// => ['dashboard', 'authentication', 'react', 'typescript']
Output cho Spec-Kit
// Research cung cấp context cho specs
const patterns = readFile('output/research/patterns.md');
const shortlist = readFile('output/research/shortlist.json');
// => Dùng để tạo feature specs có grounding
Lệnh thực thi
# Search GitHub với keywords từ intake
node ".agent/skills/research/scripts/search-github.js"
# Phân tích một repo cụ thể
node ".agent/skills/research/scripts/analyze-repo.js" --repo owner/repo-name
# Generate full research report
node ".agent/skills/research/scripts/generate-report.js"
# Quick search với custom query
node ".agent/skills/research/scripts/search-github.js" --query "nextjs dashboard template"
Quy tắc cho AI Agent
DO
- Ưu tiên repos có tests và documentation
- Kiểm tra license trước khi recommend
- Ghi nhận cả pros và cons
- Update patterns.md với code examples
DON'T
- Đừng chỉ dựa vào stars (có thể outdated)
- Đừng copy code verbatim (chỉ learn patterns)
- Đừng bỏ qua security issues
- Đừng recommend repos không maintained
Environment Variables
# GitHub API Token (for higher rate limits)
GITHUB_TOKEN=ghp_xxxxx
# Optional: Custom API endpoint
GITHUB_API_URL=https://api.github.com
Rate Limiting
- Without token: 60 requests/hour
- With token: 5000 requests/hour
- Search API: 30 requests/minute
Always handle rate limits gracefully.
Tham khảo
When not to use it
- →The task requires real-time data that is not available on GitHub
- →The task involves proprietary codebases not publicly accessible
- →The task requires a deep understanding of specific business logic not inferable from code patterns
Limitations
- →The skill relies on publicly available GitHub repositories for its analysis
- →The analysis is based on observable code patterns and documentation, not internal business logic
- →The recommendations are based on popularity and activity metrics, which may not always align with specific project needs
How it compares
This skill automates the process of learning from existing GitHub repositories, providing structured analysis and recommendations for architectural patterns, which is more efficient than manual exploration.
Compared to similar skills
research side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| research (this skill) | 0 | 6mo | Review | Intermediate |
| github-wayback-recovery | 1 | 4mo | Review | Advanced |
| session-search | 1 | 8mo | Review | Intermediate |
| cass | 0 | 2mo | Caution | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by ngapngap
View all by ngapngap →You might also like
github-wayback-recovery
gadievron
Recover deleted GitHub content using the Wayback Machine and Archive.org APIs. Use when repositories, files, issues, PRs, or wiki pages have been deleted from GitHub but may persist in web archives. Covers CDX API queries, URL patterns, and systematic recovery workflows.
session-search
pchalasani
For CLI agents WITHOUT subagent support (e.g., Codex CLI). Search previous code agent sessions for specific work, decisions, or code patterns.
cass
Dicklesworthstone
Coding Agent Session Search - unified CLI/TUI to index and search local coding agent history from Claude Code, Codex, Gemini, Cursor, Aider, ChatGPT, Pi-Agent, Factory, and more. Purpose-built for AI agent consumption with robot mode.
github-discussion-query
githubnext
Query GitHub discussions efficiently with jq argument support for filtering
gsd-scan
skbsasikumar-rgb
Rapid codebase assessment — lightweight alternative to $gsd-map-codebase
literature-review
K-Dense-AI
Conduct comprehensive, systematic literature reviews using multiple academic databases (PubMed, arXiv, bioRxiv, Semantic Scholar, etc.). This skill should be used when conducting systematic literature reviews, meta-analyses, research synthesis, or comprehensive literature searches across biomedical, scientific, and technical domains. Creates professionally formatted markdown documents and PDFs with verified citations in multiple citation styles (APA, Nature, Vancouver, etc.).