بنقرة واحدة
deep-research
Conduct multi-agent deep research on a topic with parallel web searches and synthesis
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Conduct multi-agent deep research on a topic with parallel web searches and synthesis
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Review PR comments rigorously, present a justified summary, then post agreed responses individually
Create git commits with user approval, semantic commit format, and no Claude attribution
Implement technical plans from thoughts/shared/plans with verification
Create detailed implementation plans through interactive research and iteration
Test-driven development with red-green-refactor loop. Use when user wants to build features or fix bugs using TDD, mentions "red-green-refactor", wants integration tests, or asks for test-first development.
Analyze and improve test code quality using Kent Beck's Test Desiderata framework. Use when analyzing test files, reviewing test code, identifying test quality issues, suggesting test improvements, or when asked to evaluate tests against best practices. Applies to unit tests, integration tests, and any automated test code.
| name | deep-research |
| description | Conduct multi-agent deep research on a topic with parallel web searches and synthesis |
| argument-hint | <research topic or question> |
| model | opus |
| disable-model-invocation | true |
You are orchestrating a multi-agent deep research workflow that produces comprehensive, well-cited research reports.
When the user invokes /stepwise-research:deep-research <topic>, follow these steps:
If the research topic is ambiguous or unclear, ask 1-2 clarifying questions using the AskUserQuestion tool:
Skip this step if:
Determine the complexity level of the research query to decide how many workers to spawn:
Query Types:
Break the research query into 2-6 focused sub-questions based on complexity:
Example for simple query ("What is Docker?"):
Example for comparison ("PostgreSQL vs MySQL"):
Example for complex research ("State of WebAssembly adoption"):
Guidelines:
Use the Task tool to spawn multiple stepwise-research:research-worker agents in a single message to enable parallel execution.
Critical: All worker spawns MUST be in the same response to enable parallel execution.
For each sub-question, spawn a worker:
Task:
subagent_type: "stepwise-research:research-worker"
description: "Research [sub-question summary]"
prompt: "Research the following focused question:
Question: [sub-question]
Context: [relevant context from main query]
Instructions:
- Execute 3-5 web searches with progressively refined queries
- Start broad (1-6 word queries) then narrow based on results
- Fetch full content from 5-10 promising sources
- Prioritize .gov, .edu, peer-reviewed, and official documentation
- Return compressed findings with citations in this format:
## Findings: [Sub-Question]
### Key Insight 1: [Title]
[2-4 sentence summary]
**Sources:** [1] [2]
### Key Insight 2: [Title]
[2-4 sentence summary]
**Sources:** [3] [4]
[Continue for 3-6 key insights]
## Bibliography
[1] Source Title - URL
[2] Source Title - URL
...
## Research Metadata
- Queries executed: [N]
- Sources fetched: [M]
- Coverage assessment: [Complete | Partial | Limited]
- Gaps identified: [Any areas needing follow-up]
"
Repeat this Task call for each sub-question in the same message.
Wait for all workers to complete. Each worker will:
Do not proceed to synthesis until all workers have completed.
After all workers complete, synthesize their findings into a coherent research report:
Synthesis Process:
If critical gaps exist:
Don't over-research: If you have 10-15+ quality sources and coverage of main themes, proceed to report generation.
Use the generate-report script to create the report with proper YAML frontmatter and structure.
Step 7a: Synthesize content
Before calling the script, prepare the content for each section:
[N][N] Source Title - URLQuality Guidelines:
Step 7b: Generate report file
Compute the sanitized filename:
[sanitized-topic]-YYYY-MM-DD.mdThen call the script:
research/skills/deep-research/scripts/generate-report \
--title "Research on [Topic]" \
--query "[Original research question]" \
--keywords "[keyword1,keyword2,keyword3,...]" \
--agent-count [N] \
--source-count [M] \
--output-file "thoughts/shared/research/[sanitized-topic]-[YYYY-MM-DD].md" \
--executive-summary "[synthesized executive summary]" \
--findings "[synthesized detailed findings with citations]" \
--cross-references "[cross-references and contradictions analysis]" \
--conclusions "[synthesized conclusions]" \
--bibliography "[numbered bibliography entries]"
All parameters are required except --executive-summary, --findings, --cross-references, --conclusions, and --bibliography (which are optional but should always be provided for a complete report).
The script:
After generating the report, spawn the stepwise-research:citation-analyst agent:
Task:
subagent_type: "stepwise-research:citation-analyst"
description: "Verify citations"
prompt: "Analyze the research report at [report_path] for citation accuracy and completeness.
Tasks:
- Map claims to source evidence
- Flag unsupported or weakly-supported claims
- Verify URLs are accessible
- Suggest citation improvements
Output a citation quality report."
Review the citation-analyst's feedback:
Verify report location: Confirm the report is saved to thoughts/shared/research/[topic]-[date].md
Present results to user:
Research complete! Report saved to:
thoughts/shared/research/[filename].md
Summary:
- [X] workers spawned
- [Y] sources analyzed
- [Z] citations included
Key findings:
[2-3 sentence summary of main insights]
If a worker fails:
If web search fails:
If citation-analyst fails:
If thoughts/shared/research/ directory doesn't exist:
Simple query:
/stepwise-research:deep-research What is Kubernetes and how does it work?
Expected: 1 worker, 10-15 sources
Comparison query:
/stepwise-research:deep-research Compare PostgreSQL vs MySQL for high-traffic applications
Expected: 2-3 workers, 15-20 sources
Complex research:
/stepwise-research:deep-research Analyze the current state of WebAssembly adoption in enterprise applications
Expected: 4-6+ workers, 25+ sources
All research reports are saved to:
thoughts/shared/research/[sanitized-topic]-[YYYY-MM-DD].md
Reports include YAML frontmatter:
---
title: Research on [Topic]
date: YYYY-MM-DD
query: [Original research question]
keywords: [extracted, key, terms]
status: complete
agent_count: N
source_count: M
---
Reports can be found with grep -r thoughts/shared/research/.
A successful research session produces: