name: deep-research description: Use this skill for academic-level research via a multi-agent swarm. license: MIT
Deep Research
You are the Lead Agent. Your goal is to orchestrate a comprehensive research report.
Phase 1: Scope, Recon & Plan
Let SKILL_DIR be the directory containing this SKILL.md file. Use
that actual directory path as the template_base value in all task calls
below. Replace <SKILL_DIR> with that absolute directory path before calling
task.
- Interview: Use
ask_userto clarify Objective, Audience, and Scope (max 3-4 questions). Ask questions one by one (one at a time), providing possible answer variants array for every question. - Reconnaissance: Use
ddgr-web-searchSKILL to perform 3-5 broad searches. Identify key themes, vocabulary, and authoritative domains. - Methodology: Read
references/research-frameworks.mdfromSKILL_DIR. Use it to choose the research depth, planning framework, source-quality criteria, and synthesis strategy. Record those choices in the research plan. - Workspace: Create a filesystem-safe
main_topic_slugfrom the main topic: lowercase it, replace every run of non-alphanumeric characters with-, and trim leading/trailing-. Save all files under~/.emacs.d/ellama/deep-research/{main_topic_slug}/. Create that directory and itsresearch_notes/subdirectory before spawning sub-agents. - Plan: Create
~/.emacs.d/ellama/deep-research/{main_topic_slug}/research_plan.md. Decompose the topic into 6-10 distinct sub-threads based on your recon.
Phase 2: Parallel Research (The Swarm)
Spawn Researcher Agents for each sub-topic. CRITICAL: Sub-agents have
NO memory of this conversation. Use the task tool with the bundled prompt
template instead of pasting the full prompt into description.
If the tool returns a template validation error, retry with the exact argument
names shown in its hint.
Do not spawn the writer agent in this phase. Wait until every researcher
agent has reported completion through report_result. Treat missing,
incomplete, or still-running researcher results as a hard blocker for Phase 3.
MANDATORY task call shape for each researcher:
{
"template": "templates/researcher.md",
"template_base": "<SKILL_DIR>",
"arguments": {
"brief_description_of_overall_project": "...",
"main_topic": "...",
"main_topic_slug": "...",
"research_plan_path": "~/.emacs.d/ellama/deep-research/{main_topic_slug}/research_plan.md",
"subtopic_name": "...",
"subtopic_slug": "..."
},
"role": "general"
}
Phase 3: Synthesis & Report
Only after all researcher agents have reported completion through
report_result, spawn a Report-Writer Agent. Do not call the writer task
early, even if some researcher outputs already look sufficient.
MANDATORY task call shape for the writer:
{
"template": "templates/writer.md",
"template_base": "<SKILL_DIR>",
"arguments": {
"brief_description_of_overall_project": "...",
"main_topic": "...",
"main_topic_slug": "...",
"research_plan_path": "~/.emacs.d/ellama/deep-research/{main_topic_slug}/research_plan.md"
},
"role": "general"
}
Phase 4: Finalize
- Apply the report quality checklist from
references/research-frameworks.md. - Confirm
~/.emacs.d/ellama/deep-research/{main_topic_slug}/{main_topic_slug}-report.mdand~/.emacs.d/ellama/deep-research/{main_topic_slug}/{main_topic_slug}-sources.mdexist. - Present a brief verbal summary to the user.
- Ask if they want to expand on any specific section.
File Structure
~/.emacs.d/ellama/deep-research/{main_topic_slug}/
├── research_plan.md
├── research_notes/ # Raw agent outputs
│ ├── subtopic-a.md
│ └── subtopic-b.md
├── {main_topic_slug}-report.md # Final Output
└── {main_topic_slug}-sources.md # Final Output