# deep-research

Adopt this skill: https://proskills.md/skills/other/proyecto26-sherlock-ai-plugin-skills-deep-research

Page: https://proskills.md/skills/other/proyecto26-sherlock-ai-plugin-skills-deep-research
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: skills/deep-research/SKILL.md
size: 7350
sha: e1e7ede0848227448be590735c097d0ace5615d6
upstream: https://github.com/proyecto26/sherlock-ai-plugin/blob/main/skills/deep-research/SKILL.md

````text
---
name: deep-research
description: |
  Generate format-controlled research reports with evidence tracking, citations, and iterative review. This skill should be used when users request a research report, literature review, market or industry analysis, competitive landscape, policy or technical brief, or require a strict report template and section formatting that a single deepresearch pass cannot reliably enforce.
---

# Deep Research

Create high-fidelity research reports with strict format control, evidence mapping, and multi-pass synthesis.

## Quick Start

1. Clarify the report spec and format contract
2. Build a research plan and query set
3. Collect evidence with the deepresearch tool (multi-pass if needed)
4. Triage sources and build an evidence table
5. Draft the full report in multiple complete passes (parallel subagents)
6. UNION merge, enforce format compliance, verify citations
7. Present draft for human review and iterate

## Core Workflow

Copy this checklist and track progress:

```
Deep Research Progress:
- [ ] Step 1: Intake and format contract
- [ ] Step 2: Research plan and query set
- [ ] Step 3: Evidence collection (deepresearch tool)
- [ ] Step 4: Source triage and evidence table
- [ ] Step 5: Outline and section map
- [ ] Step 6: Multi-pass full drafting (parallel subagents)
- [ ] Step 7: UNION merge and format compliance
- [ ] Step 8: Evidence and citation verification
- [ ] Step 9: Present draft for human review and iterate
```

### Step 1: Intake and Format Contract

Establish the report requirements before any research:

- Confirm audience, purpose, scope, time range, and geography
- Lock output format: Markdown, DOCX, slides, or user-provided template
- Capture required sections and exact formatting rules
- Confirm citation style (footnotes, inline, numbered, APA, etc.)
- Confirm length targets per section
- Ask for any existing style guide or sample report

Create a concise report spec file:

```
Report Spec:
- Audience:
- Purpose:
- Scope:
- Time Range:
- Geography:
- Required Sections:
- Section Formatting Rules:
- Citation Style:
- Output Format:
- Length Targets:
- Tone:
- Must-Include Sources:
- Must-Exclude Topics:
```

If a user provides a template or an example report, treat it as a hard constraint and mirror the structure.

### Step 2: Research Plan and Query Set

Define the research strategy before calling tools:

- Break the main question into 3-7 subquestions
- Define key entities, keywords, and synonyms
- Identify primary sources vs secondary sources
- Define disqualifiers (outdated, low quality, opinion-only)
- Assemble a query set per section

Use [references/research_plan_checklist.md](references/research_plan_checklist.md) for guidance.

### Step 3: Evidence Collection (Deepresearch Tool)

Use the deepresearch tool to collect evidence and citations.

- Run multiple complete passes if coverage is uncertain
- Vary query phrasing to reduce blind spots
- Preserve raw tool output in files for traceability

**File structure (recommended):**
```
<output_dir>/research/<topic-name>/
  deepresearch_pass1.md
  deepresearch_pass2.md
  deepresearch_pass3.md
```

If deepresearch is unavailable, rely on user-provided sources only and state limitations explicitly.

### Step 4: Source Triage and Evidence Table

Normalize and score sources before drafting:

- De-duplicate sources across passes
- Score sources using [references/source_quality_rubric.md](references/source_quality_rubric.md)
- Build an evidence table mapping claims to sources

Evidence table minimum columns:

- Source ID
- Title
- Publisher
- Date
- URL or reference
- Quality tier (A/B/C)
- Notes

### Step 5: Outline and Section Map

Create an outline that enforces the format contract:

- Use the template in [references/research_report_template.md](references/research_report_template.md)
- Produce a section map with required elements per section
- Confirm ordering and headings match the report spec

### Step 6: Multi-Pass Full Drafting (Parallel Subagents)

Avoid single-pass drafting; generate multiple complete reports, then merge.

#### Preferred Strategy: Parallel Subagents (Complete Draft Each)

Use the Task tool to spawn parallel subagents with isolated context. Each subagent must:

- Load the report spec, outline, and evidence table
- Draft the FULL report (all sections)
- Enforce formatting rules and citation style

**Implementation pattern:**
```
Task(subagent_type="general-purpose", prompt="Draft complete report ...", run_in_background=false) -> version1.md
Task(subagent_type="general-purpose", prompt="Draft complete report ...", run_in_background=false) -> version2.md
Task(subagent_type="general-purpose", prompt="Draft complete report ...", run_in_background=false) -> version3.md
```

**Write drafts to files, not conversation context:**
```
<output_dir>/intermediate/<topic-name>/version1.md
<output_dir>/intermediate/<topic-name>/version2.md
<output_dir>/intermediate/<topic-name>/version3.md
```

### Step 7: UNION Merge and Format Compliance

Merge using UNION, never remove content without evidence-based justification:

- Keep all unique findings from all versions
- Consolidate duplicates while preserving the most detailed phrasing
- Ensure every claim in the merged draft has a cited source
- Enforce the exact section order, headings, and formatting
- Re-run formatting rules from [references/formatting_rules.md](references/formatting_rules.md)

### Step 8: Evidence and Citation Verification

Verify traceability:

- Every numeric claim has at least one source
- Every recommendation references supporting evidence
- No orphan claims without citations
- Dates and time ranges are consistent
- Conflicts are explicitly called out with both sources

Use [references/completeness_review_checklist.md](references/completeness_review_checklist.md).

### Step 9: Present Draft for Human Review and Iterate

Present the draft as a reviewable version:

- Emphasize that format compliance and factual accuracy need human review
- Accept edits to format, structure, and scope
- If the user provides another AI output, cross-compare and UNION merge

## Output Requirements

- Match the requested language and tone
- Preserve technical terms in English
- Respect the report spec and formatting rules
- Include a references section or bibliography

## Reference Files

| File | When to Load |
| --- | --- |
| [research_report_template.md](references/research_report_template.md) | Build outline and draft structure |
| [formatting_rules.md](references/formatting_rules.md) | Enforce section formatting and citation rules |
| [source_quality_rubric.md](references/source_quality_rubric.md) | Score and triage sources |
| [research_plan_checklist.md](references/research_plan_checklist.md) | Build research plan and query set |
| [completeness_review_checklist.md](references/completeness_review_checklist.md) | Review for coverage, citations, and compliance |

## Anti-Patterns

- Single-pass drafting without parallel complete passes
- Splitting passes by section instead of full report drafts
- Ignoring the format contract or user template
- Claims without citations or evidence table mapping
- Mixing conflicting dates without calling out discrepancies
- Copying external AI output without verification
- Deleting intermediate drafts or raw research outputs
````

## File: skills/deep-research/references/completeness_review_checklist.md
size: 720
sha: b9022052d93f330caa3f662a1bc946cccb7172e0
upstream: https://github.com/proyecto26/sherlock-ai-plugin/blob/main/skills/deep-research/references/completeness_review_checklist.md

```text
# Completeness Review Checklist

Verify the draft meets all requirements before delivery.

## Structure and Format
- All required sections present and ordered
- Headings match the format contract
- Length targets met per section

## Evidence and Citations
- Every claim has a citation
- Every numeric claim has at least one Tier A or B source
- Conflicting sources are explicitly noted
- Evidence table maps claims to sources

## Content Quality
- Findings answer the research questions
- Recommendations are tied to evidence
- Limitations and uncertainty are documented
- Terminology is consistent

## Final Checks
- Dates and time ranges are consistent
- No unsupported claims
- No duplicate or conflicting statements
```

## File: skills/deep-research/references/formatting_rules.md
size: 918
sha: b7626a049f0b48c53b7e93dd3fe6f8d5fd56d1ac
upstream: https://github.com/proyecto26/sherlock-ai-plugin/blob/main/skills/deep-research/references/formatting_rules.md

```text
# Formatting Rules

Use these rules to enforce strict report formatting.

## Headings
- Use H2 for top-level sections
- Use H3 for subsections
- Keep heading titles consistent with the report spec

## Section Order
- Follow the report spec order exactly
- Do not add or remove sections without approval

## Bullets and Tables
- Use bullets for lists of findings and actions
- Use tables for comparisons, metrics, or timelines
- Keep tables compact and label all columns

## Citations
- Use the citation style defined in the report spec
- Place citations immediately after the claim
- If a claim has multiple sources, list all relevant sources

## Terminology
- Define key terms once and reuse consistently
- Preserve technical terms in English

## Formatting Hygiene
- Avoid mixed numbering styles in the same section
- Avoid inline URLs in prose unless the spec requires it
- Do not embed new assets unless requested
```

## File: skills/deep-research/references/research_plan_checklist.md
size: 629
sha: 69eaafb3df03548390e1cfb084b157debf6710b2
upstream: https://github.com/proyecto26/sherlock-ai-plugin/blob/main/skills/deep-research/references/research_plan_checklist.md

```text
# Research Plan Checklist

Use this checklist before calling the deepresearch tool.

## Scope and Questions
- Define the primary research question
- Break into 3-7 subquestions
- Define scope boundaries and exclusions
- Define time range and geography

## Evidence Strategy
- Identify primary sources needed
- Identify secondary sources needed
- Define inclusion and exclusion criteria
- Define minimum number of sources per section

## Query Set
- Create query variants per subquestion
- Include synonyms and alternate terms
- Add disambiguating keywords

## Query Log Template
- Query:
- Intended section:
- Date run:
- Notes:
```

## File: skills/deep-research/references/research_report_template.md
size: 1032
sha: 5a402ab7d1dbe1f7e9f97b897c3bf47f2cb5e526
upstream: https://github.com/proyecto26/sherlock-ai-plugin/blob/main/skills/deep-research/references/research_report_template.md

```text
# Research Report Template

## Title
- Report title
- Date
- Author or team (optional)

## Executive Summary
- 3-6 bullets, each supported by evidence
- Include top conclusions and implications

## Research Question and Scope
- Primary question
- Scope boundaries (what is included and excluded)
- Time range and geography

## Methodology
- Data sources used
- Search strategy and inclusion criteria
- Limitations and known gaps

## Key Findings
- 5-10 findings, each with citations

## Analysis
### Section 1: [Theme]
- Structured paragraphs with citations
- If comparative, include a table

### Section 2: [Theme]
- Structured paragraphs with citations

### Section 3: [Theme]
- Structured paragraphs with citations

## Risks and Limitations
- Data gaps
- Conflicting sources
- Uncertainty ranges

## Recommendations (If requested)
- Actionable recommendations tied to findings
- Each recommendation cites evidence

## Appendix A: Evidence Table
- Table mapping claims to sources

## Appendix B: Sources
- Full citations or links
```

## File: skills/deep-research/references/source_quality_rubric.md
size: 931
sha: 986bdb03dce72848cb20c3d44014173c4b893bf0
upstream: https://github.com/proyecto26/sherlock-ai-plugin/blob/main/skills/deep-research/references/source_quality_rubric.md

```text
# Source Quality Rubric

Classify sources into tiers and prioritize higher quality evidence.

## Tier A (Highest)
- Primary sources: government data, standards bodies, peer-reviewed papers
- Official filings: annual reports, regulatory filings, audited statements
- First-party datasets with transparent methodology

## Tier B (Reliable)
- Reputable news organizations with editorial standards
- Industry analyst reports with clear methodology
- Company technical blogs with data and disclosures

## Tier C (Use Sparingly)
- Opinion pieces without evidence
- Marketing materials without verification
- Aggregators without clear sourcing

## Exclusion Rules
- Exclude sources with no date or author
- Exclude sources that cannot be verified
- Exclude sources that are clearly outdated for the topic

## Conflict Handling
- Surface conflicting sources explicitly
- Prefer higher tier sources
- Note uncertainty when conflicts remain
```

## File: README.md
upstream: https://github.com/proyecto26/sherlock-ai-plugin/blob/main/README.md

````text
# 🕵️‍♂️ Sherlock AI Plugin

<img src="./images/claude-mascot-jumping-animated.svg" width="150">
<table>
  <tr>
    <td>
      Paper to Comics
    </td>
  </tr>
  <tr>
    <td>
      <a href="https://github.com/proyecto26/MyApp/tree/develop">
        <img src="https://github.com/user-attachments/assets/c55466c0-8871-4be1-92df-dff3131c508f" width="300">
      </a>
    </td>
  </tr>
</table>

> **The Ultimate Research & Implementation Assistant for Claude Code & Cursor**

Sherlock is a curated collection of high-powered AI skills designed to transform your research workflow. It doesn't just read papers—it deduces, visualizes, and reconstructs them into working code.

From **deep-diving into literature** to **converting methodology into Python**, Sherlock equips your AI agent with the tools of a master detective and a master engineer.

## 🧰 The Essentials Kit (Features)

Sherlock equips your agent with these specialized skills:

### 🧩 **1. Paper2Code (The Engineer)**
*Transforms academic theory into executable reality.*
- **4-Stage Pipeline**: Systematically converts research papers into code (Algorithm Extraction → Concept Analysis → Planning → Implementation).
- **No Hallucinations**: Forces a structured intermediate representation (YAML) before writing a single line of code.
- **Reproducibility First**: Prioritizes accuracy and paper fidelity over "clever" coding.

### 📚 **2. Deep Research (The Detective)**
*The heavy lifter for comprehensive reports.*
- **Multi-Pass Drafting**: Spawns parallel sub-agents to draft different sections of a report.
- **Evidence Tracking**: Maintains strictly cited evidence tables—no claim goes unsourced.
- **High Fidelity**: Produces professional-grade reports with strict formatting compliance.

### 🎨 **3. Paper Comic (The Storyteller)**
*Explains the unexplainable through visual narratives.*
- **Visual Translation**: Turns dense academic text into educational comics.
- **Style Adaptive**: Choose from Classic, Tech/Futuristic, Warm, or Chalkboard art styles.
- **Gemini Powered**: Uses the `genimg-gemini-web` skill for consistent character consistency across panels.

### 🔬 **4. Paper Analyzer (The Analyst)**
*X-Ray vision for PDFs.*
- **MinerU Integration**: High-precision parsing of formulas, tables, and latex from PDFs.
- **Style Rewrite**: Can rewrite complex papers into "Storytelling", "Academic", or "Concise" formats.
- **Metadata Extraction**: Automatically pulls title, authors, and citations.

### 🖼️ **5. GenImg Gemini Web (The Artist)**
*The visual engine.*
- **Image Generation**: Generates images via Google's Gemini Web.
- **Multi-Modal**: Handles text-to-image and image-to-text tasks.
- **Session Awareness**: Maintains context across multi-turn conversations for consistent output.

### 📐 **6. Visual Architect (The Designer)**
*Blueprints for understanding.*
- **Schema Generation**: Transforms methodology sections into structural visual schemas.
- **Prompt Engineering**: Generates high-precision prompts for DALL-E 3 or Midjourney based on paper logic.
- **Layout Logic**: Detects if a system is Linear, Cyclic, Hierarchical, or Parallel.

---

## 🚀 Quick Start

### Installation

#### Option 1: CLI Install (Recommended)

Use [npx skills](https://github.com/vercel-labs/skills) to install skills directly:

```bash
# Install all skills
npx skills add proyecto26/sherlock-ai-plugin

# Install specific skills
npx skills add proyecto26/sherlock-ai-plugin --skill paper-comic genimg-gemini-web

# List available skills
npx skills add proyecto26/sherlock-ai-plugin --list
```

This automatically installs to your `.claude/skills/` directory.

#### Option 2: Claude Code Plugin

Install via Claude Code's built-in plugin system:

```bash
# Add the marketplace
/plugin marketplace add proyecto26/sherlock-ai-plugin

# Install all marketing skills
/plugin install sherlock-ai-plugin
```

#### Option 3: Codex / Cursor / Copilot CLI (Agent Plugins)

This plugin follows the [Agent Plugins 1.0](https://agent-plugins.org/specification)
open standard, so the same repository installs on any conforming host:

| Host | Install |
|------|---------|
| **OpenAI Codex** | `codex plugin marketplace add proyecto26/sherlock-ai-plugin` then `codex plugin add sherlock-ai-plugin@sherlock-ai-plugin-marketplace` (or pick it from `/plugins`) |
| **GitHub Copilot CLI** | `copilot plugin marketplace add proyecto26/sherlock-ai-plugin` then `copilot plugin install sherlock-ai-plugin@sherlock-ai-plugin-marketplace` |
| **Cursor** | Settings → Plugins → install from Git URL `https://github.com/proyecto26/sherlock-ai-plugin` (Agent Plugins format is detected from the root `plugin.json`) |

Which file each host reads:

- `plugin.json` (repo root) — the portable [Agent Plugins 1.0](https://agent-plugins.org/specification)
  manifest. Cursor and Copilot CLI read this directly and discover `skills/` automatically.
- `.codex-plugin/plugin.json` + `.agents/plugins/marketplace.json` — OpenAI Codex manifest and catalog.
- `.claude-plugin/plugin.json` + `.claude-plugin/marketplace.json` — Claude Code manifest and
  catalog (Copilot CLI also reads this marketplace file).

All six skills are discovered from `skills/` — no host manifest repeats the list,
so adding a skill is a one-directory change. Run `bash scripts/check-manifests.sh`
before releasing to confirm every manifest still agrees.

> Copilot CLI note: installing from a working tree that contains `.git/` can fail
> with *access denied* while Copilot copies the directory. Install from a clean
> checkout or from the marketplace.

#### Option 4: Clone and Copy

Clone the entire repo and copy the skills folder:

```bash
git clone https://github.com/proyecto26/sherlock-ai-plugin.git
cp -r sherlock-ai-plugin/skills/* .claude/skills/
```

#### Option 5: Git Submodule

Add as a submodule for easy updates:

```bash
git submodule add https://github.com/proyecto26/sherlock-ai-plugin.git .claude/sherlock-ai-plugin
```

Then reference skills from `.claude/sherlock-ai-plugin/skills/`.

#### Option 6: Fork and Customize

1. Fork this repository
2. Customize skills for your specific needs
3. Clone your fork into your projects

### Authentication
Some skills (like `paper-analyzer`) require API tokens or login sessions.
*   **MinerU**: Export `MINERU_TOKEN` in your environment.
*   **Gemini**: `genimg-gemini-web` needs a signed-in Google session. Run
    `npx -y bun skills/genimg-gemini-web/scripts/main.ts --login` and complete
    sign-in in the Chrome window that opens.

> **Image generation requires being signed in.** Google serves signed-out
> visitors a free Flash-tier model that declines to create images. Cached cookies
> expire, so if image generation stops working, re-run `--login`.

### Usage Examples

**"Implement the code of this paper for me."**
> Triggers **Paper2Code** to read the PDF, plan the architecture, and write the Python implementation.

**"Explain this complex transformer architecture as a comic."**
> Triggers **Paper Comic** to create a visual storyboard explaining the concept.

**"I need a deep research report on the state of LLM reasoning."**
> Triggers **Deep Research** to crawl, analyze, and compile a multi-page cited report.

**"Visualize the flow of data in this system."**
> Triggers **Visual Architect** to design a schematic diagram prompt.

---

## 📂 Structure

```
plugin.json              # Agent Plugins 1.0.0 manifest (Cursor, Copilot CLI)
.codex-plugin/           # OpenAI Codex manifest
.claude-plugin/          # Claude Code manifest + marketplace
.agents/plugins/         # Codex / Copilot catalog entry
scripts/
└── check-manifests.sh   # Asserts every host manifest agrees
skills/
├── deep-research/       # Report generation & evidence tracking
├── paper2code/          # Paper implementation pipeline
├── paper-comic/         # Educational comic generator
├── paper-analyzer/      # PDF parsing & style rewriting
├── genimg-gemini-web/   # Image generation backend
└── visual-architect/    # Visual s
````
