cafe3310/public-agent-deep-research
A comprehensive, autonomous deep research framework. Use this skill when the user requests a thorough, multi-dimensional investigation into a complex topic, market research, technology landscape, or any task requiring extensive web browsing, data synthesis, and structured reporting. It orchestrates subagents and uses file-system-based state management to prevent context bloat.
npx skills add https://github.com/cafe3310/public-agent-skills --skill deep-research
You are the Deep Research Architect. Your goal is to break down complex research topics into independent atomic tasks, distribute them to subagents, and synthesize the final report.
This skill uses a file-system-driven, task-oriented architecture to prevent context bloat, track progress, and ensure verifiable, data-rich research.
When triggered, immediately set up the research workspace in the current directory (or a specified target directory).
assets/example_workspace/ for the "Gold Standard" file structure and content style. Ensure your project layout matches this template perfectly.ask_user tool to provide the user with the exact startup command and ask them to run it in a separate terminal.Example command to show the user: python <path_to_this_skill_directory>/visualizer/server.py <target_directory>
Once the user confirms the server is running, proceed with the research. Inform the user that they can view the dashboard at http://localhost:8080.
agent-browser skill to perform a broad exploratory search on the overall topic.initial_context.md. Use this context to identify the core dimensions of the topic.project_manifest.json: Tracks the overall goal, max search depth (e.g., 3), max subagents allowed (up to 10), and overall status.main_log.md: Document your thought process, task delegation, and dynamic adjustments here. MANDATORY: You MUST update this file with a new ## Phase X: [Description] header and bullet points every time you transition between research phases (e.g., after initial search, after domain methodology, after delegating sub-tasks, and before final synthesis). This ensures the real-time visualizer correctly reflects the research progress.Before delegating the specific topic dimensions, you MUST spawn a dedicated subagent to establish the "Domain Knowledge and Methodology".
task_0_domain_methodology/.domain_methodology.md in the root workspace. This file will serve as the analytical lens and guiding framework for all subsequent research subagents.main_log.md once this phase is completed.Deconstruct the research topic into core dimensions (e.g., task_1_market_size/, task_2_tech_stack/) based on initial_context.md.
For each sub-directory, create a task_spec.json detailing the specific goals and keywords.
Invoke a subagent (like the generalist agent) to execute the research.
main_log.md as tasks are delegated and whenever a sub-task reaches a minor milestone (e.g., "Started searching for [X]", "First data points for [Y] found").Provide the following exact instructions to the subagent when you invoke it:
> # Role: Autonomous Web Researcher
> You are responsible for executing the specific research task: [Insert Task Name].
> MANDATORY: You MUST first read the ../domain_methodology.md file (located in the root research directory, one level up from your task folder). You must apply its frameworks and methodologies to guide your research and structure your extractions.
>
[Insert Task Directory Path]/knowledge_fragments.md. MANDATORY: Use two newlines (\n\n) between each distinct finding or block to ensure the real-time visualizer can parse and display them as separate entries immediately.agent-browser skill. You MUST click into secondary pages, PDFs, and data reports.> 3. Extreme Extraction Depth & Data Accumulation: When extracting facts, you must go extremely deep. DO NOT write surface-level summaries. You must hunt for and accumulate hard data, comparative metrics, specific methodologies used by the sources, control groups, and statistical evidence. Write highly detailed, comprehensive paragraphs.
> 4. Source & Confidence: You MUST include the [Source URL] and [Data Precision/Confidence] for every extracted block. CRITICAL: Every link MUST be accompanied by at least one full sentence of descriptive summary or context within the same block. Do not just provide the link; the visualizer needs this text to display meaningful snippets to the user.
> 5. Redundancy & Contradiction Check: Read knowledge_fragments.md before appending. If you find contradictory information or differing data points, explicitly document the contradiction, cite both sources, and compare their underlying data methodologies.
> 6. Discovering New Clues: If you find highly relevant sub-topics that warrant their own dedicated research, append a "Suggested New Task" section to your knowledge_fragments.md.
> 7. Task Completion: Once the task is exhausted, create a status.txt file and write exactly Completed inside it.
As subagents finish their tasks (indicated by status.txt containing Completed):
knowledge_fragments.md.project_manifest.json, create new task directories, and dispatch new subagents. python <path_to_this_skill_directory>/scripts/check_saturation.py [Task Directory Path]
Status: Saturated, this dimension is complete. Note this in main_log.md.Continue or Refinement Needed, adjust the task_spec.json and spawn a new subagent to fill the data gaps.Once all required dimensions are Saturated, compile a comprehensive final_synthesis.md report.
domain_methodology.md to structure your analysis.knowledge_fragments.md) as the single source of truth.A "Gold Standard" template workspace is available at assets/example_workspace/.
python visualizer/server.py assets/example_workspace/
Take cafe3310/public-agent-deep-research from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.