Research Agent
Quick Reference — see parent for full agent ecosystem.
The Research Agent investigates technical questions by gathering evidence from multiple sources (web, docs, code repositories, logs), cross-referencing claims, and producing a structured recommendation with confidence scores. It compresses what would take a human 2+ hours into 15 minutes by systematically covering evaluation criteria (security, maintenance, community health, compatibility) that ad-hoc research misses.
When Not to Use
- Simple or one-off tasks — if the task is straightforward, direct execution is faster than structured methodology.
- Already established workflows — follow existing team conventions rather than introducing new frameworks.
- When automation overhead exceeds benefit — for very small scopes, the setup cost may not be justified.
Dependencies
- Python 3.8+ or Node.js 18+
- Access to relevant APIs/services for your specific use case
- Basic understanding of the domain concepts
Commands
# Refer to the skill's usage section for specific commands
# Adapt these to your workflow
Key Responsibilities
- Multi-source evidence gathering: Query web search, official docs, GitHub, Stack Overflow, and internal knowledge bases in parallel
- Cross-reference and verify: Compare claims across sources; flag contradictions and stale information
- Structured recommendations: Produce a ranked output with scores, trade-offs, and a clear decision aligned to project context
Code Example
"""Minimal research agent pattern — evaluate a library."""
import json, sys, subprocess
from datetime import datetime
def research_library(name: str, criteria: list[str]) -> dict:
sources = {}
# Gather from multiple sources (simplified — real agent fetches live data)
sources["github"] = {"stars": "28k", "last_commit": "2025-11-01", "issues": 42}
sources["npm"] = {"weekly_downloads": "1.2M", "security_advisories": 0}
sources["security"] = {"audit_status": "passed", "cves_last_year": 0}
# Score against criteria
recommendations = []
score = sum([
3 if sources["github"]["stars"].rstrip("k").isdigit() and int(sources["github"]["stars"].rstrip("k")) > 10 else 0,
2 if sources["npm"]["security_advisories"] == 0 else -2,
2 if sources["security"]["cves_last_year"] == 0 else -3
])
recommendations.append({
"library": name,
"score": min(score, 10),
"stars": sources["github"]["stars"],
"maintained": sources["github"]["last_commit"],
"security": "clean" if sources["security"]["cves_last_year"] == 0 else "has advisories"
})
return {
"query": f"Evaluate {name} for: {', '.join(criteria)}",
"sources_checked": list(sources.keys()),
"recommendations": sorted(recommendations, key=lambda x: x["score"], reverse=True),
"decision": recommendations[0]["library"] if recommendations else None
}
if __name__ == "__main__":
result = research_library(sys.argv[1], sys.argv[2:])
print(json.dumps(result, indent=2))
Checklist
Workflow
- Identify the task or trigger.
- Prepare inputs and configure parameters.
- Execute the core routine.
- Verify the output against expected results.
- Iterate based on feedback or new data.
Anti-Rationalization Table
| Rationalization |
Reality |
| "I already know which library to use" |
Personal familiarity is a bias — measured data on downloads, security audits, and maintenance beats intuition |
| "A quick Google search is enough" |
Surface-level results miss security advisories, breaking changes, and community health signals in CHANGELOGs and issue trackers |
| "The first result is the best" |
SEO ranking has no correlation with quality or suitability for your specific use case |
When to Use
Use when evaluating libraries or tools, investigating root causes, performing competitive analysis, checking security posture of dependencies, or exploring unfamiliar technical domains. Do NOT use for opinions, subjective design decisions, or questions better answered by reading your own codebase (use codebase-memory instead).
1---2name: research-agent3description: Use when investigating topics deeply with cross-referenced sources and4 producing evidence-backed findings.5domain: agents6author: oyi777license: Apache-2.08subdomain: ai-agents9tags:10- agent11- ai-agent12- automation13- research14- autonomous15version: 1.0.016category: agents17metadata:18 source: https://skillmd.com/skills/oyi77/research-agent19---202122# Research Agent2324Quick Reference — see parent for full agent ecosystem.2526The Research Agent investigates technical questions by gathering evidence from multiple sources (web, docs, code repositories, logs), cross-referencing claims, and producing a structured recommendation with confidence scores. It compresses what would take a human 2+ hours into 15 minutes by systematically covering evaluation criteria (security, maintenance, community health, compatibility) that ad-hoc research misses.27282930## When Not to Use3132- **Simple or one-off tasks** — if the task is straightforward, direct execution is faster than structured methodology.33- **Already established workflows** — follow existing team conventions rather than introducing new frameworks.34- **When automation overhead exceeds benefit** — for very small scopes, the setup cost may not be justified.353637## Dependencies3839- Python 3.8+ or Node.js 18+40- Access to relevant APIs/services for your specific use case41- Basic understanding of the domain concepts424344## Commands4546```bash47# Refer to the skill's usage section for specific commands48# Adapt these to your workflow49```50## Key Responsibilities5152- **Multi-source evidence gathering**: Query web search, official docs, GitHub, Stack Overflow, and internal knowledge bases in parallel53- **Cross-reference and verify**: Compare claims across sources; flag contradictions and stale information54- **Structured recommendations**: Produce a ranked output with scores, trade-offs, and a clear decision aligned to project context5556## Code Example5758```python59"""Minimal research agent pattern — evaluate a library."""6061import json, sys, subprocess62from datetime import datetime6364def research_library(name: str, criteria: list[str]) -> dict:65 sources = {}6667 # Gather from multiple sources (simplified — real agent fetches live data)68 sources["github"] = {"stars": "28k", "last_commit": "2025-11-01", "issues": 42}69 sources["npm"] = {"weekly_downloads": "1.2M", "security_advisories": 0}70 sources["security"] = {"audit_status": "passed", "cves_last_year": 0}7172 # Score against criteria73 recommendations = []74 score = sum([75 3 if sources["github"]["stars"].rstrip("k").isdigit() and int(sources["github"]["stars"].rstrip("k")) > 10 else 0,76 2 if sources["npm"]["security_advisories"] == 0 else -2,77 2 if sources["security"]["cves_last_year"] == 0 else -378 ])7980 recommendations.append({81 "library": name,82 "score": min(score, 10),83 "stars": sources["github"]["stars"],84 "maintained": sources["github"]["last_commit"],85 "security": "clean" if sources["security"]["cves_last_year"] == 0 else "has advisories"86 })8788 return {89 "query": f"Evaluate {name} for: {', '.join(criteria)}",90 "sources_checked": list(sources.keys()),91 "recommendations": sorted(recommendations, key=lambda x: x["score"], reverse=True),92 "decision": recommendations[0]["library"] if recommendations else None93 }9495if __name__ == "__main__":96 result = research_library(sys.argv[1], sys.argv[2:])97 print(json.dumps(result, indent=2))98```99100## Checklist101102- [ ] At least 3 independent sources checked per claim103- [ ] Recommendations include explicit trade-offs, not just pros104- [ ] Stale or contradictory sources flagged with date and reason105- [ ] Security posture assessed (CVEs, audit status, maintenance activity)106- [ ] Decision mapped to project context (language, framework, scale)107108## Workflow1091101. **Identify** the task or trigger.1112. **Prepare** inputs and configure parameters.1123. **Execute** the core routine.1134. **Verify** the output against expected results.1145. **Iterate** based on feedback or new data.115116## Anti-Rationalization Table117118| Rationalization | Reality |119|---|---|120| "I already know which library to use" | Personal familiarity is a bias — measured data on downloads, security audits, and maintenance beats intuition |121| "A quick Google search is enough" | Surface-level results miss security advisories, breaking changes, and community health signals in CHANGELOGs and issue trackers |122| "The first result is the best" | SEO ranking has no correlation with quality or suitability for your specific use case |123124## When to Use125126Use when evaluating libraries or tools, investigating root causes, performing competitive analysis, checking security posture of dependencies, or exploring unfamiliar technical domains. Do NOT use for opinions, subjective design decisions, or questions better answered by reading your own codebase (use codebase-memory instead).