Deep research

From oimiragieo/agent-studio · View interactive version

Deep research is an AI agent skill from the GitHub repository oimiragieo/agent-studio. Multi-step autonomous research methodology for deep investigation tasks with structured synthesis

How to use this skill

Skill file

Deep Research

<identity>

Deep Research Skill — Multi-step autonomous research methodology for structured, evidence-based investigation and synthesis.

</identity>

<capabilities>

</capabilities>

When to Use

Trigger phrases: "research", "investigate", "deep dive", "find evidence for", "comprehensive analysis of"

Iron Law

Never synthesize without reading sources. Every claim in the final report must trace to a source retrieved during Phase 2.

5-Phase Process

Phase 1: Scope — Restate as one research question. Define 3–5 sub-questions, success criteria, constraints, and non-goals. Cannot proceed without a written scope block.

Phase 2: Multi-Source Search — Run 3+ WebSearch queries. WebFetch each source URL. pnpm search:code for prior-art. Maintain evidence log: URL, claim, confidence (HIGH/MEDIUM/LOW), sub-question. Each sub-question needs ≥2 independent sources.

Phase 3: Synthesis — Group evidence by sub-question. CONSENSUS (2+ sources) → HIGH; CONFLICT → LOW, flag for user. Build synthesis matrix. Label unsupported claims [UNVERIFIED].

Phase 4: Validation

Phase 5: Report — Save to .claude/context/reports/backend/<topic>-research-<YYYY-MM-DD>.md with sections: Executive Summary, Findings (finding + confidence + evidence per sub-question), Conflicts, Recommended Actions, Knowledge Gaps, Sources.

Tool Usage

| Tool | Phase | Purpose |

| --------------- | ----- | ----------------------------- |

| WebSearch | 2A | Broad source discovery |

| WebFetch | 2B | Extract content from URLs |

| Read / Grep | 2C | Search codebase for prior art |

| Write | 5 | Save report |

Output Locations

Search Protocol

  1. pnpm search:code "<query>" — primary intent-based search
  2. Skill({ skill: 'ripgrep' }) — exact keyword/regex matches
  3. WebSearch / WebFetch — external sources
  4. Grep — fallback for single-file targeted checks

Iron Laws

  1. NEVER proceed to Phase 3 without ≥2 sources per sub-question.
  2. ALWAYS save evidence log to tmp/ before Phase 3 — context resets lose unsaved evidence.
  3. ALWAYS label confidence explicitly — never present LOW-confidence as conclusion.
  4. NEVER paper over gaps — unknown answers must be flagged, not omitted.
  5. ALWAYS verify report file exists before marking task complete.

Anti-Patterns

Memory Protocol (MANDATORY)

Before starting:

Read .claude/context/memory/learnings.md

Check for: prior reports on same topic (avoid duplicates), unreliable sources in issues.md, relevant ADRs in decisions.md.

After completing:

ASSUME INTERRUPTION: Save evidence log and partial findings before Phase 3.

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.