Deep research
Skill build-with-dhiraj/ai-workflow-framework-portability-kit/Skills/deep-research
Multi-source research with citations and structured reports. Triggers on "deep research", "research report".From its SKILL.md
npx -y skills add build-with-dhiraj/ai-workflow-framework-portability-kit --skill deep-researchAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
3 things to look at
- skips confirmationTells the agent to proceed without asking first, 2 times: "Operate independently. Infer assumptions from context." and 1 more.
- 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
- runs commandsInstructs the agent to run 3 commands, including `python scripts/validate_report.py --report [path]` and 2 more.
SKILL.md
4.0 KB, 992 tokens by cl100k_base, as published. Nobody here has run it
Deep Research
Core Purpose
Deliver citation-tracked research reports through a structured pipeline with evidence persistence, source identity management, claim-level verification, and progressive context management.
Autonomy Principle: Operate independently. Infer assumptions from context. Only stop for critical errors or incomprehensible queries. Surface high-materiality assumptions explicitly in the Introduction and Methodology rather than silently defaulting.
Decision Tree
Request Analysis
+-- Simple lookup? --> STOP: Use WebSearch
+-- Debugging? --> STOP: Use standard tools
+-- Complex analysis needed? --> CONTINUE
Mode Selection
+-- Initial exploration --> quick (3 phases, 2-5 min)
+-- Standard research --> standard (6 phases, 5-10 min) [DEFAULT]
+-- Critical decision --> deep (8 phases, 10-20 min)
+-- Comprehensive review --> ultradeep (8+ phases, 20-45 min)
Default assumptions: Technical query = technical audience. Comparison = balanced perspective. Trend = recent 1-2 years.
Workflow Overview
| Phase | Name | Quick | Std | Deep | Ultra |
|---|---|---|---|---|---|
| 1 | SCOPE | Y | Y | Y | Y |
| 2 | PLAN | - | Y | Y | Y |
| 3 | RETRIEVE | Y | Y | Y | Y |
| 4 | TRIANGULATE | - | Y | Y | Y |
| 4.5 | OUTLINE REFINEMENT | - | Y | Y | Y |
| 5 | SYNTHESIZE | - | Y | Y | Y |
| 6 | CRITIQUE | - | - | Y | Y |
| 7 | REFINE | - | - | Y | Y |
| 8 | PACKAGE | Y | Y | Y | Y |
Note: Phases 3-5 operate as an evidence loop per section (retrieve → evidence store → refine outline → draft → verify claims → delta-retrieve if needed), not as strict sequential gates.
Execution
On invocation, load relevant reference files:
- Phase 1-7: Load methodology.md for detailed phase instructions
- Phase 8 (Report): Load report-assembly.md for progressive generation
- HTML/PDF output: Load html-generation.md
- Quality checks: Load quality-gates.md
- Long reports (>18K words): Load continuation.md
Templates:
- Report structure: report_template.md
- HTML styling: mckinsey_report_template.html
Scripts:
python scripts/validate_report.py --report [path]python scripts/verify_citations.py --report [path]python scripts/md_to_html.py [markdown_path]
Output Contract
Required sections:
- Executive Summary (200-400 words)
- Introduction (scope, methodology, assumptions)
- Main Analysis (4-8 findings, 600-2,000 words each, cited)
- Synthesis & Insights (patterns, implications)
- Limitations & Caveats
- Recommendations
- Bibliography (COMPLETE - every citation, no placeholders)
- Methodology Appendix
Output files (all to ~/Documents/[Topic]_Research_[YYYYMMDD]/):
- Markdown (primary source of truth)
sources.jsonl— stable source registry with canonical IDsevidence.jsonl— append-only evidence store with quotes and locatorsclaims.jsonl— atomic claim ledger with support statusrun_manifest.json— query, mode, assumptions, provider config- HTML (McKinsey style, auto-opened)
- PDF (professional print, auto-opened)
Quality standards:
- 10+ sources, 3+ per major claim (cluster-independent, not just count)
- All factual claims cited immediately [N] with evidence backing in
evidence.jsonl - Claim-support verification mandatory: no unsupported factual claims pass delivery
- No placeholders, no fabricated citations
- Prose-first (>=80%), bullets sparingly
When to Use / NOT Use
Use: Comprehensive analysis, technology comparisons, state-of-the-art reviews, multi-perspective investigation, market analysis.
Do NOT use: Simple lookups, debugging, 1-2 search answers, quick time-sensitive queries.
What ships with it: 31 files
217.4 KB alongside SKILL.md, 14 of them executable
reference/
- continuation.md4.5 KB
- html-generation.md2.9 KB
- methodology.md16.1 KB
- quality-gates.md5.7 KB
- report-assembly.md3.9 KB
- weasyprint_guidelines.md5.7 KB
schemas/
- claim.schema.json1.6 KB
- evidence.schema.json1.4 KB
- run_manifest.schema.json2.8 KB
- source.schema.json1.6 KB
scripts/
- citation_manager.pyruns10.1 KB
- evidence_store.pyruns6.4 KB
- extract_claims.pyruns11.8 KB
- md_to_html.pyruns9.7 KB
- research_engine.pyruns16.4 KB
- source_evaluator.pyruns9.3 KB
- validate_report.pyruns12.1 KB
- verify_citations.pyruns15.1 KB
- verify_claim_support.pyruns10.8 KB
- verify_html.pyruns7.6 KB
templates/
- mckinsey_report_template.html10.2 KB
- report_template.md12.8 KB
tests/
- fixtures/invalid_report.md288 B
- fixtures/valid_report.md3.3 KB
- test_citation_manager.pyruns7.6 KB
- test_evidence_store.pyruns5.7 KB
- test_extract_claims.pyruns8.1 KB
- test_verify_claim_support.pyruns8.4 KB
- .gitignore264 B
- README.md4.8 KB
- requirements.txt579 B