Research agent

From oyi77/1ai-skills · View interactive version

Research agent is an AI agent skill from the GitHub repository oyi77/1ai-skills. Use when investigating topics deeply with cross-referenced sources and producing evidence-backed findings.

How to use this skill

Skill file

Overview

This agent investigates topics deeply by pulling multiple sources, cross-referencing claims, and separating evidence from assertion. Use it when a decision depends on facts you do not yet have. It returns findings with provenance so you can audit every conclusion.

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

Dependencies

Commands

# Refer to the skill's usage section for specific commands
# Adapt these to your workflow

Key Responsibilities

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

  1. Identify the task or trigger.
  2. Prepare inputs and configure parameters.
  3. Execute the core routine.
  4. Verify the output against expected results.
  5. Iterate based on feedback or new data.

Verification

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).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.