workflow-deep-research
Skill1 starsChanged 6 months agoMITView on GitHub
Drive mcp-research's deep_research loop when a task needs CURRENT or EXTERNAL knowledge beyond pretraining + RAG — a novel/recent framework or release, "what is the current best X", or cross-referencing multiple sources. Fully local and sovereign (SearXNG + Crawl4AI/trafilatura + the chat model). Gate DEPTH on the shared difficulty/scope signal: a quick lookup is NOT a multi-source synthesis.
In this repository33 other files it gives its agents.
- skill-process-gotchasSkill
- workflow-cache-disciplineSkill
- workflow-codegraphSkill
- workflow-conductorSkill
- workflow-context-condenserSkill
- workflow-context-hygieneSkill
- workflow-criticSkill
- workflow-deadline-disciplineSkill
- workflow-done-definitionSkill
- workflow-edit-formatSkill
- workflow-effort-routingSkill
- workflow-escalateSkill
- workflow-execute-from-planSkill
- workflow-filesystem-offloadSkill
- workflow-learn-frameworkSkill
- workflow-long-running-processesSkill
- workflow-lspSkill
- workflow-memory-curationSkill
- workflow-plan-contractSkill
- workflow-plan-firstSkill
- workflow-planSkill
- workflow-quality-barSkill
- workflow-repomapSkill
- workflow-retrieve-before-actSkill
- workflow-spec-drivenSkill
- workflow-stuck-detect-resetSkill
- workflow-stuckSkill
- workflow-subagent-isolationSkill
- workflow-subtask-loopSkill
- workflow-task-finishSkill
- workflow-task-startSkill
- workflow-tool-selectionSkill
- workflow-verify-enhancedSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Use this when the answer is not reliably in pretraining or the local RAG/KG: a new framework, a recent release, "the current …
- Distinctive: line 46
Make the question specific: If it's underspecified (budget, version, platform, region), narrow it first — a vague question retrieves an …
- Distinctive: line 65
Stop at the cap honestly: When loops/budget are exhausted, end with a
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- TRIGGERS WHEN: Drive mcp-research's deep_research loop when a task needs CURRENT or EXTERNAL knowledge beyond pretraining + RAG — a novel/recent framework or release, "what is -->workflow-deep-research
NEVER call
deep_researchmore than once per session, under any circumstances. The result reportsactionable: trueplus agap_note(not a confidence score) —actionableis true unless the research came back genuinely empty (0 sources). Single-sourced/low-corroboration claims are NORMAL (the echo-chamber guard dedups overlapping sources). Proceed immediately to implementation with whatever synthesis was returned and note thegap_noteitems as risks; the verify gate on your code is the real quality check. A seconddeep_researchcall is always wrong — for any follow-up usesearch_code/mcp-docs(search_docs/research_topic). The server also enforces this: it refuses a reflexive re-fire (corpus-first, exhaustion, budget + cooldown gates).
Use this when the answer is not reliably in pretraining or the local RAG/KG:
a new framework, a recent release, "the current best/most-recommended X", or a
question that needs several independent sources reconciled. For a fact you already
know or that one search_code/search_docs call answers, do not spin up the
full loop.
Gate the depth (don't overspawn)
First classify scope (reuse classify_difficulty / the shared signal):
- Quick lookup →
mcp-docs.search_docs/research_topic, or oneexplore([...])call. Stop. - Real synthesis (multi-source, contested, or you must be confident) →
mcp-research.deep_research(question, max_loops, max_total_sources).
Match max_loops / max_total_sources to scope. Bigger is not better — the caps
exist to prevent the overspawning failure mode.
How to run it
- Make the question specific. If it's underspecified (budget, version, platform, region), narrow it first — a vague question retrieves an echo chamber.
deep_research(question)runsplan → develop → explore → verify → synthesizefor you, bounded. Or drive the stages yourself for control:plan_research(question)→ inspect the sub-goals (the PLAN is checkable; a wrong plan step is the most damaging — sanity-check it).- per sub-goal:
develop_queries(subgoal)→explore(queries, seen_urls=…), threadingseen_urlsacross calls so you keep breaking echo chambers. verify_claims(claims)before asserting anything — cross-check each material claim against ≥2 independent (distinct-domain) sources.synthesize(question, verified_findings)→ a citation-backed report.
Discipline (what makes it approach proprietary quality)
- Verify before you assert. Single-sourced or conflicting claims are reported as such — surface them, don't launder them into confident prose.
- Cite every claim. Each statement maps to a source URL.
- Prefer primary sources. Official docs, papers, standards, and project repos over SEO content farms (the ranker already does this — don't fight it).
- Stop at the cap honestly. When loops/budget are exhausted, end with a confidence + gaps note rather than padding with low-confidence filler.
- Confidence is advisory — act on the synthesis regardless of its level. A
confidence: lowresult is the expected outcome when the echo-chamber guard deduped overlapping sources (the same fact corroborated once, not N times) — it does not mean the findings are wrong or the report is incomplete. The result isactionable: trueeither way. Proceed to implementation with it; the verify gate on your code is the real quality check. Do NOT re-rundeep_researchto chase a higher confidence score — that is the multi-call trap and it just burns wall-clock without changing the deduped-corroboration math. - It compounds.
deep_researchwrites the brief + entities into RAG/KG, so a later related run starts ahead — prefer it over re-researching from scratch.
Degradation
Fully sovereign on both deploy profiles. SearXNG down → explore is empty (say so); Crawl4AI down → trafilatura; reranker absent → authority-heuristic ranking; chat model unset → deterministic plan/queries/synthesis (a cited bullet brief). None of these crash — they lower confidence, which you report.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

