Deep research

From softspark/ai-toolkit · View interactive version

Deep research is an AI agent skill from the GitHub repository softspark/ai-toolkit. Multi-source web research methodology: retrieve-vs-answer gate, complexity-scaled search budget, query craft, primary-source preference, source-conflict skepticism, adversarial verification, attribution-without-reproduction. Triggers: deep research, multi-source, web research, synthesize sources, cr

How to use this skill

Skill file

Deep Research

This is the web / multi-source counterpart to research-mastery. That skill is KB-first: it answers from the project's own knowledge base and only reaches outward when the KB comes up empty. This one governs what happens once you are already out on the open web pulling from many independent sources and have to weave them into one trustworthy answer. It is a method, not a fetcher — it does not retrieve anything by itself. You supply the search and fetch tools (built-in WebSearch / WebFetch, or the runtime deep-research command); this skill tells you how to spend them and how hard to doubt what comes back.

Retrieve-vs-Answer Gate

Run this gate before you spend a single search:

  1. Is the answer already in the KB or your own context? Then this is not a deep-research job — hand it to research-mastery (which checks RAG-MCP first) or just answer.
  2. Is it one stable fact with a single obvious authority (a constant, a published spec value, a definition that does not move)? One targeted lookup, confirm, done. Do not open a research campaign.
  3. Does it need several independent sources reconciled, or is it contested, recent, or moving? That is the case this skill exists for. Continue.

Skipping this gate is the most common failure: people fan out ten searches on a question that one source already settled, or worse, answer a contested question from memory because it "felt known."

Scale Effort to Complexity

Match the search budget to the question. Burning twenty searches on a lookup wastes turns; doing two searches on a contested synthesis ships a half-checked claim.

| Question shape | Plan first? | Rough search budget |

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

| Single stable fact, clear authority | no | 1, maybe a second to confirm |

| Compare a few known options / current state of one topic | light | a handful, broaden then narrow |

| Contested, multi-faceted, or "what is the latest on…" | yes — write the plan | many, with follow-ups as conflicts surface |

For anything in the bottom two rows, write a short research plan first: name the sub-questions, the kind of source that would answer each, and what "done" looks like. The plan is for you; keep it tight. Then let conflict drive the count — if sources disagree, you have not searched enough yet.

Query Craft

Source Preference and Skepticism

Adversarial Verification

Before you emit any synthesized claim, run this self-check. Each gate has a fix; do not just notice the problem.

| Self-check gate | If yes, do this |

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

| Am I mirroring one source's exact phrasing or structure? | Re-state it in your own words from the facts, not the prose. |

| Could my output stand in for reading the original — same length, same order, same examples? | Cut it back. Summarize and point to the source; do not reproduce it. |

| Have I already leaned on this one source for several claims? | Find an independent source, or flag the answer as single-sourced. |

| Is each claim independently corroborated, or is one shaky source carrying the conclusion? | Corroborate it, drop it, or label it as unconfirmed. |

For high-stakes claims — anything affecting money, health, legal exposure, security posture, or an irreversible decision — do not stop at one source. Confirm with a second, independent source or a different angle of approach before you state it as fact.

Citation Discipline

Example

Task: "What is the current recommended approach for X, and has it changed recently?"

  1. Gate. Not in KB, contested, has a "recently" — this is a deep-research job. Write a 3-line plan: (a) current recommendation, (b) what it replaced, (c) when/why it changed.
  2. Broaden. Plain query anchored to the real date ("X recommended approach 2026"). Map who the authoritative voices are.
  3. Narrow to primary sources. Open the official docs / spec / changelog rather than roundup posts. Pull the version and date where the guidance changed.
  4. Conflict surfaces. One source still recommends the old approach. Run more searches; find the changelog entry that supersedes it. The disagreement was stale-vs-current, not a genuine split — note that.
  5. Adversarial pass. Re-check each gate: paraphrase in own words (not mirroring the docs' structure), confirm the change claim against a second independent source since it drives the answer, confirm no single source carries everything.
  6. Synthesize with attribution. "The official docs as of <date> recommend …; this replaced … per the <date> changelog." Short, sourced, original phrasing, none of it a stand-in for the docs themselves.

Rules

When NOT to Use

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.