CommunityResearch & Data Analysisgithub.com

deep-research

Coordinate local multi-agent deep research with verified primary sources, optional Red-Team fact-checking, editorial synthesis, and deterministic citation auditing. Use when the user says "/deep-research" or asks to research a topic across multiple sources, analyze markets or trends, review literature, or write a comprehensive cited report locally. Don't use for side-by-side tech/library/architecture comparisons with an ADR (use /research-compare), auditing an already-written report (use /research-verify), calling external managed Deep Research APIs directly (use gemini-api-cli), drafting external Deep Research prompts without executing research, or quick single-fact lookups.

What is deep-research?

deep-research is a Claude Code agent skill that coordinate local multi-agent deep research with verified primary sources, optional Red-Team fact-checking, editorial synthesis, and deterministic citation auditing. Use when the user says "/deep-research" or asks to research a topic across multiple sources, analyze markets or trends, review literature, or write a comprehensive cited report locally. Don't use for side-by-side tech/library/architecture comparisons with an ADR (use /research-compare), auditing an already-written report (use /research-verify), calling external managed Deep Research APIs directly (use gemini-api-cli), drafting external Deep Research prompts without executing research, or quick single-fact lookups.

Works with✓Claude Code~Codex CLI~Cursor✓Antigravity✓Gemini CLI
npx skills add https://github.com/sipki-tech/antigravity-research-kit/tree/HEAD/plugins/antigravity-research-kit/skills/deep-research

Installed? Explore more Research & Data Analysis skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Coordinating Deep Research

Goal

Act strictly as the Coordinator: scope the question, manage non-destructive research dossiers, spawn parallel research-scout subagents, optionally run Red-Team verification (research-verifier), synthesize via research-writer, enforce deterministic citation auditing (research-cli audit), and deliver a crisp report.

Keep your own context clean: never conduct web research or write report prose directly — delegate those to the specialized subagents.

Locate Bundled CLI

Derive <PLUGIN_ROOT> from this skill's path (three levels up from skills/deep-research/SKILL.md), falling back to ~/.gemini/config/plugins/antigravity-research-kit or .agents/plugins/antigravity-research-kit. Set:

<CLI> = <PLUGIN_ROOT>/scripts/research-cli.mjs

Pass the exact absolute <CLI> path to every research-scout and research-verifier prompt.

Instructions

  1. Clarify only when material: read the user's request for ambiguities that would genuinely change the research (ambiguous acronyms/entities, missing region/jurisdiction, unclear time window or target decision). If needed, ask once via ask_question; otherwise proceed directly.
  2. Choose depth & profile:
    • Depth: quick (1–2 scouts → writer → audit), standard (default: 3–4 scouts → writer → audit --check-urls), deep (4–6 scouts → research-verifier → writer → audit --check-urls), or hybrid (optional: if the user requests Gemini managed Deep Research alongside local primary sources and gemini-api is configured per the gemini-api-cli skill, launch a background Deep Research run in parallel with local scouts and cross-check both via research-verifier; if gemini-api is unavailable or unconfigured, fall back cleanly to deep mode and note that to the user).
    • Profile: pick from references/profiles.md (narrative default, comparison-adr, market-brief, strategic-decision).
  3. Inspect prior research & initialize dossier:
    • Run node "<CLI>" list --json to detect earlier research in research_notes/ and reports/ (defaults to $DEEP_RESEARCH_DIR if set, otherwise cwd; pass --dir <path> only if the user requested a specific folder).
    • Choose a concise, specific title in the user's language (3–6 words, <= 50 chars, sentence case, Unicode letters allowed, no path punctuation).
    • If extending/updating an earlier topic, pick a distinct title naming what changed (never reuse or overwrite an existing folder), note the prior report & notes paths for the writer, and decompose only the delta for scouts.
    • Run node "<CLI>" init "<title>" --json to create research_notes/<title>/ and reports/.
  4. Track progress cleanly: call update_steps with 4–6 plain user-facing steps (e.g., "Investigate key research angles", "Verify citations and counter-evidence", "Synthesize final report" — avoid internal subagent jargon).
  5. Decompose MECE & launch parallel scouts in ONE turn:
    • Split into mutually exclusive, collectively exhaustive angles: 1 (focused factual), 3 (standard angles), 4 (evaluation criteria), 5 (regions/entities/domains), 6+ (broad comparative matrix). Default to 3 when in doubt.
    • Call invoke_subagent with TypeName: "research-scout" for all angles in parallel in a single turn. Each prompt MUST include:
      • Narrow angle, objective, 2–4 concrete key questions, suggested primary sources (github/arxiv/hn/npm/pypi/official docs), explicit YYYY-MM-DD date constraints.
      • Exact CLI path: <CLI>
      • Exact output path: <notesDir>/<angle-slug>.md
    • Internal knowledge bases: only if the user explicitly asked to include internal MCP sources (Notion/Confluence/Jira/GitLab), spawn one built-in self subagent dedicated solely to that internal angle so web scouts stay isolated (inheritMcp: false).
    • Stop calling tools and wait reactively for all subagents to finish — never poll.
  6. Optional gap-closing round (MAX ONCE):
    • Inspect scout summaries. Only if a critical gap would make the report incomplete, spawn targeted follow-up research-scout subagent(s) in parallel.
    • Hard anti-loop rule: this step may execute at most once. Whenever triggering a gap round, explicitly state: "After these scouts finish, I will move directly to verification and report writing."
  7. Verification pass (deep / hybrid mode):
    • Collect the exact list of created note files in <notesDir> and invoke research-verifier (passing <CLI>, <notesDir>, note file paths, and output path <notesDir>/_verification.md). Wait reactively.
  8. Synthesize final report:
    • Invoke research-writer passing:
      • Full original user question (including any follow-up clarifications)
      • Assigned profile (narrative | comparison-adr | market-brief | strategic-decision) and key rules from references/profiles.md
      • Exact list of all note file paths in <notesDir> (including _verification.md if created)
      • Prior report & prior notes paths if extending earlier research (otherwise "none")
      • Exact output path: <reportPath> (reports/<title>.md)
  9. Deterministic citation audit gate (mandatory):
    • Run:
      node "<CLI>" audit "<reportPath>" --notes "<notesDir>" --check-urls --json
      
      (If extending earlier research, pass --prior "<priorReportPath>" --prior "<priorNotesDir>" so reused citations pass cross-checking.)
    • If audit returns ok: false (any error: grounding_redirect, url_not_in_notes, dead_link, placeholder_link, unresolved_marker), message research-writer once with the exact audit error list so it fixes or drops those citations via edit_file, then re-run audit to confirm pass.
  10. Deliver: mark all update_steps done, read the BLUF/conclusion of <reportPath>, and send the user a concise 3–5 sentence summary with a clickable link to <reportPath> (and key audit stats).

Definition of Done

  • All scout notes saved under research_notes/<title>/ with canonical URLs.
  • Final report written to reports/<title>.md.
  • research-cli audit passes with ok: true (0 grounding redirects, 0 hallucinated URLs absent from notes, 0 placeholders, 0 dead links).

Constraints

  • Never research or write full report prose in the Coordinator turn.
  • Never run more than ONE gap-closing round.
  • Never overwrite an existing research_notes/<title>/ directory.

Rationalizations

  • "This looks quick, I'll just run 10 web searches myself" -> doing broad search in the main thread pollutes context and loses structure; use quick mode with 1–2 research-scouts instead.
  • "One more scout round will make it even better" -> extra rounds cause timeouts and diminishing returns; respect the hard 1-gap-round limit and move to research-writer.
  • "The writer's links look clean, I'll skip research-cli audit" -> writers occasionally alter URLs or copy grounding redirects; the mechanical audit takes seconds and guarantees link integrity.

Related Skills