comprehensive-research
Multi-phase research orchestration for thorough codebase, documentation, and external knowledge investigation. Invoked by /ai-eng/research command. Use when conducting deep analysis, exploring codebases, investigating patterns, or synthesizing findings from multiple sources.
What this skill does
# Comprehensive Research Skill
## Critical Importance
**Thorough research is critical to solving complex problems correctly.** Poor or incomplete research leads to wrong solutions, wasted time building the wrong things, and repeating past mistakes. Missing a key file, misunderstanding historical decisions, or overlooking relevant patterns causes rework and frustration. Comprehensive research upfront saves orders of magnitude more time than it costs. Every implementation decision should be grounded in thorough understanding.
## Systematic Approach
** approach research systematically.** Research is not linear—it requires iterative discovery, parallel investigation, and constant refinement. Don't jump to conclusions—gather evidence from multiple sources, cross-reference findings, and validate assumptions. Use the multi-phase methodology: scope definition, parallel discovery, sequential analysis, and synthesis. Each phase builds on the previous one. Rushing research guarantees missing important information.
## The Challenge
**The conduct truly comprehensive research without getting lost in the details or missing the big picture, but if you can:**
- Your solutions will be well-founded and robust
- You'll avoid repeating historical mistakes
- Your documentation will be authoritative
- Team members will trust your research
The challenge is balancing breadth (covering everything relevant) with depth (understanding deeply) while staying focused on the research objective. Can you find the critical information efficiently without drowning in noise?
## Research Confidence Assessment
After completing research, rate your confidence from **0.0 to 1.0**:
- **0.8-1.0**: Found comprehensive evidence, all claims documented, historical context understood, clear conclusions
- **0.5-0.8**: Good coverage but some areas could use deeper investigation, minor uncertainty about certain findings
- **0.2-0.5**: Basic investigation completed but likely missed important information, significant gaps remain
- **0.0-0.2**: Research insufficient, critical areas uninvestigated, conclusions speculative
Identify uncertainty areas: What evidence is weak or missing? Which sources are unreliable? What questions remain unanswered? What risks exist due to research limitations?
## Methodology
A systematic multi-phase research orchestration skill that coordinates specialized agents to conduct thorough investigations across codebases, documentation, and external sources. Based on proven patterns from codeflow research workflows with incentive-based prompting enhancements.
## How It Works
This skill orchestrates a disciplined research workflow through three primary phases:
1. **Discovery Phase** (Parallel): Multiple locator agents scan simultaneously
2. **Analysis Phase** (Sequential): Deep analyzers process findings with evidence chains
3. **Synthesis Phase**: Consolidated insights with actionable recommendations
## Research Methodology
### Phase 1: Context & Scope Definition
Before spawning agents, establish:
```markdown
## Research Scope Analysis
- **Primary Question**: [Core research objective]
- **Decomposed Sub-Questions**: [Derived investigation areas]
- **Scope Boundaries**: [What's in/out of scope]
- **Depth Level**: shallow | medium | deep
- **Expected Deliverables**: [Documentation, recommendations, code refs]
```
**Critical Rule**: Always read primary sources fully BEFORE spawning agents.
### Phase 2: Parallel Discovery
Spawn these agents concurrently for comprehensive coverage:
| Agent | Purpose | Timeout |
|-------|---------|---------|
| `codebase-locator` | Find relevant files, components, directories | 5 min |
| `research-locator` | Discover existing docs, decisions, notes | 3 min |
| `codebase-pattern-finder` | Identify recurring implementation patterns | 4 min |
**Discovery Output Structure**:
```json
{
"codebase_files": ["path/file.ext:lines"],
"documentation": ["docs/path.md"],
"patterns_identified": ["pattern-name"],
"coverage_map": {"area": "percentage"}
}
```
### Phase 3: Sequential Deep Analysis
After discovery completes, run analyzers sequentially:
| Agent | Purpose | Depends On |
|-------|---------|------------|
| `codebase-analyzer` | Implementation details with file:line evidence | codebase-locator |
| `research-analyzer` | Extract decisions, constraints, insights | research-locator |
**For Complex Research, Add**:
| Agent | Condition |
|-------|-----------|
| `web-search-researcher` | External context needed |
| `system-architect` | Architectural implications |
| `database-expert` | Data layer concerns |
| `security-scanner` | Security assessment needed |
### Phase 4: Synthesis & Documentation
Aggregate all findings into structured output:
```markdown
---
date: YYYY-MM-DD
researcher: Assistant
topic: 'Research Topic'
tags: [research, relevant, tags]
status: complete
confidence: high|medium|low
---
## Synopsis
[1-2 sentence summary of research objective and outcome]
## Summary
[3-5 bullet points of high-level findings]
## Detailed Findings
### Component Analysis
- **Finding**: [Description]
- **Evidence**: `file.ext:line-range`
- **Implications**: [What this means]
### Documentation Insights
- **Decisions Made**: [Past architectural decisions]
- **Rationale**: [Why decisions were made]
- **Constraints**: [Technical/operational limits]
### Code References
- `path/file.ext:12-45` - Description of relevance
- `path/other.ext:78` - Key function location
## Architecture Insights
[Key patterns, design decisions, cross-component relationships]
## Historical Context
[Insights from existing documentation, evolution of the system]
## Recommendations
### Immediate Actions
1. [First priority action]
2. [Second priority action]
### Long-term Considerations
- [Strategic recommendation]
## Risks & Limitations
- [Identified risk with mitigation]
- [Research limitation]
## Open Questions
- [ ] [Unresolved question requiring further investigation]
```
## Agent Coordination Best Practices
### Execution Order Optimization
```
┌─────────────────────────────────────────────────────────────┐
│ Phase 1: Discovery (PARALLEL) │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────────────┐ │
│ │codebase- │ │research- │ │codebase-pattern- │ │
│ │locator │ │locator │ │finder │ │
│ └──────┬───────┘ └──────┬───────┘ └──────────┬───────────┘ │
│ │ │ │ │
│ └────────────────┼─────────────────────┘ │
│ ▼ │
├─────────────────────────────────────────────────────────────┤
│ Phase 2: Analysis (SEQUENTIAL) │
│ ┌──────────────┐ ┌──────────────┐ │
│ │codebase- │──────▶│research- │ │
│ │analyzer │ │analyzer │ │
│ └──────────────┘ └──────────────┘ │
│ │
├─────────────────────────────────────────────────────────────┤
│ Phase 3: Domain Specialists (CONDITIONAL) │
│ ┌────────────┐ ┌────────────┐ ┌────────────┐ │
│ │web-search- │ │database- │ │security- │ │
│ │researcher │ │expert │ │scanner │ │
│ └────────────┘ └────────────┘ └────────────┘ │
│ │
├─────────────────────────────────────────────────────────────┤
│ Phase 4: Validation (PARALLEL) │
│ ┌──────────────┐ ┌──────────────┐ │
│ │code-reviewer │ │architect- │ │
│ │ │ │review │ │
│ └──────────────┘ └──────────────┘ │
└─────────────────────────────────────────────────────────────┘
```
### Quality IndRelated in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.