skills/deepsearch/SKILL.md
Deep research methodology: multi-hop investigation, iterative query refinement, and semantic knowledge synthesis. Use when solving complex problems requiring investigation across multiple sources, understanding API documentation, analyzing codebases, researching third-party services, or answering questions requiring cross-domain context.
npx skillsauth add jcsaaddupuy/badrobots deepsearchInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
A research paradigm for iterative knowledge gathering and synthesis. Transforms vague research needs into structured multi-hop investigations.
REPEAT until confidence(answer) > threshold:
1. Check memory for cached knowledge
2. Decompose query into focused sub-questions
3. Select search mode (Quick/Pro/Deep)
4. FOR each sub-question:
a. Search sources (web/local)
b. Extract & rank results by semantic relevance
c. IF bookmarking skill available: bookmark + annotate key findings
d. Detect pivot triggers (findings contradicting assumptions)
5. Build synthesis context from top results
6. Generate partial answer → evaluate confidence
7. IF confidence < threshold: refine queries → iterate
8. Store key findings in memory
Single-hop research (direct lookup): Skip deepsearch, use simple search tool.
Multi-hop research: Use deepsearch when:
Examples:
Use the memory tool to recall cached knowledge:
memory action=recall query="<topic from query>"
Example: Searching "best hackable smartwatch" → check memory first
Choose search mode BEFORE starting:
| Query Type | Mode | Reason | |------------|------|--------| | Product comparison (3-5 options) | Pro (<10s) | Multiple alternatives to compare | | Finding "best" option | Deep (<30s) | Exhaustive search needed | | Factual lookup | Quick (<2s) | Direct answer expected | | Pricing/availability | Pro | Multiple sources to check |
Parse research goal into atomic sub-questions targeting specific knowledge gaps:
Query: "Best laptop for ML under $2000"
→ Sub-questions:
- Which laptops have good GPU options in this range?
- What are the performance benchmarks?
- Which are available in my region?
- What do reviews say about build quality?
Query: "Best hackable smartwatch at best price"
→ Sub-questions:
- Which smartwatches support open-source OS?
- What is the feature support for each?
- Which are available new vs used?
- What are the prices at different retailers?
Parallel Searches: When sub-questions are independent, run searches concurrently:
# Independent queries - run at the same time:
- Search "laptop GPU benchmarks"
- Search "RTX 4060 laptop pricing"
- Search "ML laptop recommendations 2025"
# Dependent queries - must be sequential:
1. Search "smartwatch OS options" → First: discover what exists
2. Then: search pricing for specific models found
Web Search Approaches:
For each sub-question:
Rank by: semantic relevance > authority > freshness > depth.
When bookmarking skill (e.g., readeck) is available:
FOR each search iteration:
1. Identify key sources (official docs, comparisons, pricing pages)
2. Bookmark immediately with labels: [topic, research, source-type]
3. FOR critical findings:
- Add annotation with relevance note
- Example note: "BEST OPTION: Price €268, feature X works, Y doesn't"
Labels to use:
Annotate immediately, not at end - context is clearer during search.
When findings contradict assumptions, pivot strategy:
| Finding | Pivot Action | Example | |---------|--------------|---------| | Product discontinued | Switch to: used prices, alternatives, newer models | "TicWatch Pro 2018" discontinued → search used/refurbished | | Feature not supported | Switch to: compare alternatives immediately | "No GPS on this model" → skip, check others | | Price out of range | Switch to: budget options, older models | €500 → search €200-300 range | | Only available used | Add: "used/refurb" to all subsequent queries | New not available → pivot to used market |
Merge extracted knowledge into synthesis document:
Synthesize findings into a coherent answer addressing the original query.
Evaluate confidence by checking:
IF confidence is low:
Confidence levels:
Store non-obvious findings for future use using the memory tool:
memory action=remember
content="Key findings (not task logs)"
type="conceptual"
tags="topic,subtopic"
context="gotcha|decision|constraint"
Store: Gotchas, decisions, constraints, non-obvious facts Don't store: Task logs, TODO status, session summaries, obvious facts
Product/Option Comparison: → Decompose: options available | feature comparison | pricing | availability | reviews → Pivot if: discontinued, out of stock, price out of range → Bookmark: comparison tables, pricing pages, official specs
API/Service Integration: → Decompose: purpose | auth method | endpoints | examples | rate limits | limitations → Bookmark: official docs, authentication guides, SDK references
Codebase Understanding: → Decompose: architecture | key modules | entry points | patterns | test examples
Standard/Format Investigation: → Decompose: specification | implementations | tools | community | adoption
Vendor/Service Evaluation: → Decompose: capabilities | pricing models | compliance | support SLAs | migration paths → Pivot if: vendor discontinued, pricing model changed, compliance gaps → Bookmark: pricing pages, SLA docs, compliance certifications
Problem Solving: → Decompose: problem statement | existing solutions | tradeoffs | recommendations
Always return:
[2-3 paragraphs addressing original query with actionable recommendations]
| Sub-question | Sources Used | |--------------|---------------| | [Sub-q 1] | [source1, source2] | | [Sub-q 2] | [source3, source4] |
Reason: [Why this confidence level]
Paradigm: Inspired by OpenDeepSearch (Sentient AGI) multi-hop reasoning architecture
Best for: Complex problem-solving, unfamiliar domains, high-fidelity research
Example 1: Evaluate cloud providers for enterprise data migration
Mode: Deep (enterprise decision, high stakes)
Decomposition:
1. Which cloud providers support our compliance requirements (GDPR, SOC2)?
2. What are the data transfer and storage costs?
3. What migration tools and support are available?
4. What are the SLAs for uptime and support response?
Parallel searches: Compliance certifications, pricing calculators, migration guides
Pivot detected: Provider A doesn't support required encryption standard
→ Removed Provider A from comparison
→ Added security audit reports to search
Bookmarks: Official docs, pricing pages, compliance whitepapers
Confidence: HIGH (multiple official sources, clear pricing)
Example 2: Best hackable smartwatch at best price
Mode: Deep (exhaustive search for "best")
Decomposition:
1. Which smartwatches support open-source OS?
2. What are the feature ratings for each?
3. Which are available NEW vs USED?
4. What are the prices?
Pivot detected: Best option (TicWatch Pro) discontinued
→ Added "used/refurbished" to all subsequent queries
→ Compared NEW alternatives with worse support
Bookmarks: 15 pages, 8 annotations
Confidence: MEDIUM (price volatility, availability changes)
Example 3: Best laptop for ML under $2000
Mode: Pro (compare 3-5 options)
Decomposition:
1. Which laptops have RTX GPUs under $2000?
2. What are the performance benchmarks?
3. Which have good Linux support?
4. What are Thermals/build quality?
Parallel searches: GPU benchmarks, pricing, Linux support
Pivot: None needed
Bookmarks: 12 pages, 5 annotations
Confidence: HIGH (multiple agreeing sources)
Example 4: Choose logging framework for microservices architecture
Mode: Pro (compare architecture decisions)
Decomposition:
1. Which logging frameworks support distributed tracing?
2. What are the performance impacts (latency, throughput)?
3. Which integrate with our tech stack (Kubernetes, Prometheus)?
4. What are the operational costs (self-hosted vs SaaS)?
Pivot detected: Framework A requires paid enterprise features for tracing
→ Added open-source alternatives to comparison
→ Searched for self-hosted vs SaaS cost comparisons
Bookmarks: Official docs, benchmark comparisons, integration guides
Confidence: MEDIUM (operational cost estimates vary significantly)
development
DuckDB patterns for JSON/JSONL analysis, array unnesting, and common gotchas. Use when querying JSON files, nested data, or encountering "UNNEST not supported here" errors.
development
Mealie recipe manager API: recipes, shopping lists, meal plans. Requires MEALIE_BASE_URL and MEALIE_API_KEY.
business
TimeWarrior time tracking: start/stop intervals, query durations by tag or issue, compute totals for issue tracker time reporting
development
Bookmark manager for saving, searching, and annotating web content. Use when: (1) saving a webpage for later reference, (2) searching previously saved bookmarks, (3) adding highlights/annotations to saved content, (4) user asks to 'bookmark this' or 'save this article'. Requires READECK_BASE_URL and READECK_API_KEY environment variables.