mcpField
R
research

research

github.com/johnlindquist生产力2652 次安装45 周前更新
代码仓库

关于 research

结合 GitHub 搜索与 Gemini 综合分析的研究技能,可从多个角度调查主题,并支持快速问答、技术比较、库评估和议题搜索。

主要功能

  1. 01深入研究与快速查询
  2. 02技术比较
  3. 03库与议题搜索
  4. 04架构研究模式
  5. 05结构化发现与比较

适用场景

  1. 01采用技术前开展调查
  2. 02比较适用于某场景的选项
  3. 03调试时查找相关 GitHub 议题
  4. 04查看项目近期活动

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/johnlindquist/claude --skill research

安装后在 Claude Code 中输入/research确认已加载。

详细介绍

研究 - 深度调查

结合多个来源与 AI 综合的全面研究。

前置条件

  • 用于 GitHub 搜索的 gh CLI
  • 用于 AI 综合的 gemini CLI
brew install gh
pip install google-generativeai
gh auth login
export GEMINI_API_KEY=your_api_key

研究操作

深度研究

全面的多角度调查:

# Step 1: Gather information from multiple angles
TOPIC="your research topic"
OBJECTIVE="what you're trying to learn"

# Web search synthesis
gemini -m pro -o text -e "" "Research '$TOPIC' comprehensively.

OBJECTIVE: $OBJECTIVE

Provide:
1. Executive summary (3-5 bullet points)
2. Key findings with sources
3. Different perspectives and debates
4. Knowledge gaps and uncertainties
5. Actionable recommendations"
快速研究

针对直截了当的问题快速给出答案:

gemini -m pro -o text -e "" "Quick research: [question]

Provide:
- Direct answer
- Key facts
- Important caveats
- Actionable next step"
技术比较
gemini -m pro -o text -e "" "Compare these technologies for [use case]:

CANDIDATES:
1. [Tech A]
2. [Tech B]
3. [Tech C]

CRITERIA:
- Performance
- Learning curve
- Community/ecosystem
- Maintenance burden
- Production readiness

Include real-world adoption examples and common pitfalls."
库调查
# GitHub search for the library
gh search repos "[library name]" --json fullName,description,stargazersCount,updatedAt --limit 5

# Check issues
gh search issues "[library] bug" --json title,url,state --limit 10

# AI analysis
gemini -m pro -o text -e "" "Evaluate [library] for production use:

1. Maturity and stability
2. Maintenance status
3. Common issues
4. Alternatives to consider
5. Recommendation"
GitHub Issue 搜索

查找相关 Issue 以进行调试:

# Search GitHub issues
gh search issues "[error message]" --json repository,title,url,state --limit 20

# Search in specific repo
gh search issues "[error]" --repo owner/repo --json title,url,state

# Search with labels
gh search issues "[topic]" --label "bug" --state open

研究模式

采用某个库之前
#!/bin/bash
LIB="$1"

echo "=== GitHub Presence ==="
gh search repos "$LIB" --json fullName,stargazersCount,updatedAt --limit 3

echo ""
echo "=== Open Issues ==="
gh search issues "$LIB bug" --state open --json title,url --limit 5

echo ""
echo "=== AI Evaluation ==="
gemini -m pro -o text -e "" "Should I use $LIB in production? Consider maintenance, alternatives, and common issues."
借助外部搜索进行调试
ERROR="your error message"

# Search for similar issues
gh search issues "$ERROR" --json repository,title,url,state --limit 10

# Search discussions
gh search issues "$ERROR" type:discussion --limit 5

# AI analysis of error
gemini -m pro -o text -e "" "Explain this error and likely causes: $ERROR"
架构研究
gemini -m pro -o text -e "" "Research best practices for: [architecture topic]

Specifically:
1. What do industry leaders (FAANG, etc.) do?
2. What are the tradeoffs?
3. Common mistakes to avoid
4. When to use vs. when to avoid
5. Concrete implementation guidance"
保持与时俱进
# Recent news on a topic
gemini -m pro -o text -e "" "What are the latest developments in [technology] as of 2024? Include version updates, new features, and ecosystem changes."

# Recent GitHub activity
gh search repos "[technology]" --created ">2024-01-01" --sort stars --json fullName,description,stargazersCount --limit 10

输出综合

标准研究输出
## Executive Summary
- Key point 1
- Key point 2
- Key point 3

## Detailed Findings
### Finding 1
[Details and evidence]

### Finding 2
[Details and evidence]

## Critical Analysis
- What's contested or uncertain
- What biases might exist
- What's missing

## Recommendations
1. Immediate action
2. Further investigation needed
3. Decisions to make
比较输出
## Quick Verdict
[1-2 sentence recommendation]

## Detailed Comparison
| Criterion | Option A | Option B | Option C |
|-----------|----------|----------|----------|
| Performance | ... | ... | ... |
| Ease of use | ... | ... | ... |

## Recommendation
[Detailed reasoning]

最佳实践

  1. 清晰陈述目标 - 你试图做出什么决策?
  2. 使用多个来源 - GitHub + 网络 + AI 综合
  3. 检查时效性 - 技术变化很快
  4. 验证论断 - AI 可能会产生幻觉;请交叉核对
  5. 保存有价值的研究 - 存入记忆以供将来参考
  6. 跟进缺口 - 研究不确定的部分

评论

支持 Markdown