| name | deep-research |
| description | Apply when conducting deep research on technologies, APIs, frameworks, or other software development topics requiring systematic investigation |
Deep Research Skill
Systematic research using MCPI (Most Complete Point of Information) or MEPI (Most Executable Point of Information) approaches.
When to Use
Use this skill when the user's intent requires:
- Making an informed decision between alternatives
- Understanding something deeply before acting
- Preparing for a complex undertaking
- Evaluating risks, trade-offs, or consequences
- Gathering exhaustive knowledge on a topic
Quick Start
- Read this SKILL.md for core principles
- Detect Work Mode and create output folder (see "Output Folder" section below)
- Read the appropriate strategy file (MCPI or MEPI)
- Follow Phases 1-4 systematically
- Output findings as INFO document
Output Folder (Pre-Phase 1)
Deep research creates a Topic Folder for its outputs by default.
Step 1.1: Detect Work Mode
- Read workspace NOTES.md for
[DEFAULT_SESSIONS_FOLDER]
- Check from conversation: Is there an active session?
- Active session exists -> SESSION-MODE
- No active session -> PROJECT-MODE
- If already working inside a
T##_ or S##_ or other session subfolder -> create output folder here (Step 1.2)
Step 1.2: Create Output Folder
PROJECT-MODE: Run /session-new first, then create Topic Folder inside.
SESSION-MODE (default): Create Topic Folder per @skills:session-management Topic Folder Creation procedure. Folder name: T##_[TOPIC]-[PascalCaseName]_YYYY-MM-DD/
SESSION-MODE as Step (only if user explicitly requests): Create Step Folder per @skills:session-management Step Folder naming. Folder name: S##_[TOPIC]-[PascalCaseName]_YYYY-MM-DD/
All deep-research output files go in this folder. Each folder has independent numbering namespace per @skills:session-management.
Phase Model (Global)
All research (MCPI and MEPI) follows these 4 phases:
Phase 1 - Preflight: Decompose prompt, document assumptions, collect sources, verify/correct assumptions, create STRUT with QA pipelines, run first VCRIV
Phase 2 - Planning: Create Summary file (skeletal), topic template, TASKS plan, run second VCRIV
Phase 3 - Research: Topic-by-topic file-by-file research per TASKS/STRUT, run VCRIV per granularity rules
Phase 4 - Final Verification and Sync: Dimension coverage, completeness check, finalize Summary (cross-document synthesis), metadata, final VCRIV
Strategy files (MCPI/MEPI) define the details for each phase.
Topic ID Registration (Phase 1, after Prompt Decomposition)
Before proceeding to source collection, ensure Topic ID uniqueness:
- Read ID-REGISTRY.md in workspace root
- Check for collision with existing Topic IDs per Topic Registry rules in devsystem-ids.md
- If collision: narrow abbreviation to specific subtopic
- Register new Topic ID immediately in ID-REGISTRY.md
Prompt Decomposition (Phase 1, Step 1)
Answer these 7 questions before any source collection:
- Q1 - Goal: What is the user's intent? (1-2 sentences)
- Q2 - Scope: NARROW (1 dim), FOCUSED (2-4 dim), or EXPLORATORY (5-9 dim)?
- Q3 - Dimensions: Which apply? (legal, financial, administrative, practical, technical, professional, medical, psychological, personal, organizational, strategic, security, cultural, educational, historical, or custom)
- Q4 - Topics: 3-5 topics per dimension
- Q5 - Strategy: MCPI (exhaustive) or MEPI (curated)?
- Q6 - Domain: Which profile? (SOFTWARE, MARKET_INTEL, LEGAL, or DEFAULT)
- Q7 - Discovery Platforms: What databases/platforms index this entity type? Test each, classify access level.
Store PromptDecomposition in STRUT plan. Do NOT proceed to source collection until all 7 questions are answered.
PromptDecomposition Schema
{
"goal": "string (1-2 sentences)",
"scope": "NARROW | FOCUSED | EXPLORATORY",
"dimensions": ["list of dimension names"],
"topics_per_dimension": { "dimension": ["topics"] },
"strategy": "MCPI | MEPI",
"strategy_rationale": "string (WHY this strategy fits the prompt)",
"domain": "DEFAULT | SOFTWARE | MARKET_INTEL | LEGAL",
"domain_rationale": "string (WHY this domain profile applies)",
"effort_estimate": "N hours minimum",
"discovery_platforms": {
"identified": ["list of platforms that index this entity type"],
"tested": { "platform_name": "FREE | PAID | PARTIAL" },
"selected": ["platforms to use (FREE or PARTIAL only)"]
}
}
Scope Examples
- NARROW: "What are the rate limits for the Microsoft Graph API?" -> 1 dimension (technical)
- FOCUSED: "Should we use PostgreSQL or MongoDB for our event sourcing system?" -> 3 dimensions (technical, operational, financial)
- EXPLORATORY: "How should our startup approach SOC 2 compliance?" -> 6 dimensions (legal, technical, organizational, financial, operational, educational)
MUST-NOT-FORGET
- STRUT required for all research sessions (include pipeline steps and time log)
- Assumptions check first - write down what you think you know before researching
- Discovery platforms tested - identify, test, classify (FREE/PAID/PARTIAL) before source collection
- Primary sources > secondary > community - verify tier 1-3 before accepting tier 6-8
- Access dates required:
Accessed: YYYY-MM-DD on all sources
- Track time - log task start/end for net research time calculation
- Quality pipeline 3x (not optional): Summary+template, each topic, complete set
- Source completeness: Full PDF transcription via pipeline, no agent-selected chunks
- Download source files (PDFs, images) to
_DOWNLOADS_gitignore/ subfolder (not checked in)
- Transcribe downloaded sources to
_SOURCES/ subfolder (checked in, web content changes)
- Inline citations on critical conclusions:
[LABEL] (SOURCE_ID | URL or filename)
- Identify domain during Preflight, read corresponding DOMAIN_*.md profile
- Document strategy choice - OUTPUT document must include strategy (MEPI/MCPI) + domain + rationale for both in header block
- Distinguish facts from opinions from assumptions
- Autonomous after Phase 1 - no user interaction until delivery (except [CONSULT])
Strategy Selection
MEPI (Default) - curated options, deeply researched, compare and recommend
- Use for: User intent is specific, danger of analysis-paralysis and introducing irrelevant options
- Strategy file: RESEARCH_STRATEGY_MEPI.md
MCPI (Exception) - exhaustive coverage, document everything
Source Hierarchy
- Official PDFs/papers (legislation, specs, whitepapers)
- Official documentation
- Official blog/changelog
- GitHub repo
- Conference talks by maintainers
- Reputable tech blogs
- Stack Overflow
- Community forums/Discord
Enforcement (legal/financial/medical): MUST cite tier 1-3 for critical claims. Label tier 6-8 as [COMMUNITY]. Violation triggers [CONSULT] to user.
Verification Labels
[VERIFIED] - Confirmed from official docs
[ASSUMED] - Inferred, not explicit
[TESTED] - Manually tested
[PROVEN] - Multiple independent sources
[COMMUNITY] - Community sources (cite ID)
Quality Pipeline (VCRIV)
verify → critique → reconcile → implement → verify
- V - Verify: Formal correctness check (
/verify workflow)
- C - Critique: Find gaps, reasoning flaws; produces
*_REVIEW.md (/critique workflow)
- R - Reconcile: Prioritize findings (
/reconcile workflow)
- I - Implement: Apply findings, delete
*_REVIEW.md (/implement workflow)
- V - Verify (final): Confirm corrections complete
Four mandatory checkpoints:
- Preflight deliverables (STRUT, SOURCES, PromptDecomposition)
- Planning deliverables (Summary file, template, TASKS)
- Each research output (per VCRIV granularity rules)
- Complete research set ex-post (after all topics complete)
Granularity (scope-based):
- NARROW: VCRIV per topic file
- FOCUSED/EXPLORATORY: VCRIV per dimension
- Final VCRIV on Summary file
Termination: Max 2 cycles per checkpoint, then [CONSULT].
Inline Citations
Critical conclusions MUST have: [VERIFICATION_LABEL] (SOURCE_ID | URL or filename)
Examples:
[VERIFIED] (GRPH-SC-MSFT-RATELMT | https://learn.microsoft.com/graph/throttling)
[VERIFIED] (ANTH-SC-ANTH-MDLCRD | _SOURCES/anthropic-model-card-2025.md)
Referenced files MUST exist in _SOURCES/ subfolder (transcribed markdown).
Domain Profiles
Read one profile per session based on Q6:
Output Format
INFO document with:
- Research Question
- Strategy & Domain (MEPI/MCPI + domain profile + rationale for each choice)
- Key Findings (curated for MEPI, exhaustive for MCPI)
- Detailed Analysis
- Limitations and Known Issues
- Sources (with verification labels)
- Recommendations
MEPI uses its own output format (see RESEARCH_STRATEGY_MEPI.md) with Comparison and Recommendation sections.
Planning Structure
STRUT (high-level, REQUIRED): Phases, objectives, deliverables, transitions, time log. File: __STRUT_[TOPIC].md
TASKS (low-level, Phase 2): Flat task list with durations and done-when criteria. File: __TASKS_[TOPIC]_RESEARCH.md
Reference Files
File naming (numbered scheme):
_INFO_[TOPIC]_01-SUMMARY.md - Summary file with cross-document synthesis + Topic Files section
_INFO_[TOPIC]_02-SOURCES.md - Collected sources with IDs and verification labels
_INFO_[TOPIC]_03-[NAME].md through _INFO_[TOPIC]_[NN]-[NAME].md - Individual topic files
Decomposition rule: Both MCPI and MEPI decompose topics into individually researched files. No monolithic single-file research. The Summary file is finalized in Phase 4 with cross-document synthesis after all topic files are complete.
Source ID format: [TOPIC]-SC-[SOURCE]-[DOCNAME]