Research Literature Review
Research topic: $ARGUMENTS
Constants
- PAPER_LIBRARY — Local directory containing user's paper collection (PDFs). Check these paths in order:
papers/ in the current project directory
literature/ in the current project directory
- Custom path specified by user in
CLAUDE.md under ## Paper Library
- MAX_LOCAL_PAPERS = 20 — Maximum number of local PDFs to scan (read first 3 pages each). If more are found, prioritize by filename relevance to the topic.
💡 Overrides:
/research-lit "topic" — paper library: ~/my_papers/ — custom local PDF path
/research-lit "topic" — sources: zotero, local — only search Zotero + local PDFs
/research-lit "topic" — sources: zotero — only search Zotero
/research-lit "topic" — sources: web — only search the web (skip all local)
Data Sources
This skill checks multiple sources in priority order. All are optional — if a source is not configured or not requested, skip it silently.
Source Selection
Parse $ARGUMENTS for a — sources: directive:
- If
— sources: is specified: Only search the listed sources (comma-separated). Valid values: zotero, obsidian, local, web, all.
- If not specified: Default to
all — search every available source in priority order.
Examples:
/research-lit "diffusion models" → all (default)
/research-lit "diffusion models" — sources: all → all
/research-lit "diffusion models" — sources: zotero → Zotero only
/research-lit "diffusion models" — sources: zotero, web → Zotero + web
/research-lit "diffusion models" — sources: local → local PDFs only
/research-lit "topic" — sources: obsidian, local, web → skip Zotero
Source Table
| Priority |
Source |
ID |
How to detect |
What it provides |
| 1 |
Zotero (via MCP) |
zotero |
Try calling any mcp__zotero__* tool — if unavailable, skip |
Collections, tags, annotations, PDF highlights, BibTeX, semantic search |
| 2 |
Obsidian (via MCP) |
obsidian |
Try calling any mcp__obsidian-vault__* tool — if unavailable, skip |
Research notes, paper summaries, tagged references, wikilinks |
| 3 |
Local PDFs |
local |
Glob: papers/**/*.pdf, literature/**/*.pdf |
Raw PDF content (first 3 pages) |
| 4 |
Web search |
web |
Always available (WebSearch) |
arXiv, Semantic Scholar, Google Scholar |
Graceful degradation: If no MCP servers are configured, the skill works exactly as before (local PDFs + web search). Zotero and Obsidian are pure additions.
Workflow
Step 0a: Search Zotero Library (if available)
Skip this step entirely if Zotero MCP is not configured.
Try calling a Zotero MCP tool (e.g., search). If it succeeds:
- Search by topic: Use the Zotero search tool to find papers matching the research topic
- Read collections: Check if the user has a relevant collection/folder for this topic
- Extract annotations: For highly relevant papers, pull PDF highlights and notes — these represent what the user found important
- Export BibTeX: Get citation data for relevant papers (useful for
/paper-write later)
- Compile results: For each relevant Zotero entry, extract:
- Title, authors, year, venue
- User's annotations/highlights (if any)
- Tags the user assigned
- Which collection it belongs to
📚 Zotero annotations are gold — they show what the user personally highlighted as important, which is far more valuable than generic summaries.
Step 0b: Search Obsidian Vault (if available)
Skip this step entirely if Obsidian MCP is not configured.
Try calling an Obsidian MCP tool (e.g., search). If it succeeds:
- Search vault: Search for notes related to the research topic
- Check tags: Look for notes tagged with relevant topics (e.g.,
#diffusion-models, #paper-review)
- Read research notes: For relevant notes, extract the user's own summaries and insights
- Follow links: If notes link to other relevant notes (wikilinks), follow them for additional context
- Compile results: For each relevant note:
- Note title and path
- User's summary/insights
- Links to other notes (research graph)
- Any frontmatter metadata (paper URL, status, rating)
📝 Obsidian notes represent the user's processed understanding — more valuable than raw paper content for understanding their perspective.
Step 0c: Scan Local Paper Library
Before searching online, check if the user already has relevant papers locally:
Locate library: Check PAPER_LIBRARY paths for PDF files
Glob: papers/**/*.pdf, literature/**/*.pdf
De-duplicate against Zotero: If Step 0a found papers, skip any local PDFs already covered by Zotero results (match by filename or title).
Filter by relevance: Match filenames and first-page content against the research topic. Skip clearly unrelated papers.
Summarize relevant papers: For each relevant local PDF (up to MAX_LOCAL_PAPERS):
- Read first 3 pages (title, abstract, intro)
- Extract: title, authors, year, core contribution, relevance to topic
- Flag papers that are directly related vs tangentially related
Build local knowledge base: Compile summaries into a "papers you already have" section. This becomes the starting point — external search fills the gaps.
📚 If no local papers are found, skip to Step 1. If the user has a comprehensive local collection, the external search can be more targeted (focus on what's missing).
Step 1: Search (external)
- Use WebSearch to find recent papers on the topic
- Check arXiv, Semantic Scholar, Google Scholar
- Focus on papers from last 2 years unless studying foundational work
- De-duplicate: Skip papers already found in Zotero, Obsidian, or local library
Step 2: Analyze Each Paper
For each relevant paper (from all sources), extract:
- Problem: What gap does it address?
- Method: Core technical contribution (1-2 sentences)
- Results: Key numbers/claims
- Relevance: How does it relate to our work?
- Source: Where we found it (Zotero/Obsidian/local/web) — helps user know what they already have vs what's new
Step 3: Synthesize
- Group papers by approach/theme
- Identify consensus vs disagreements in the field
- Find gaps that our work could fill
- If Obsidian notes exist, incorporate the user's own insights into the synthesis
Step 4: Output
Present as a structured literature table:
| Paper | Venue | Method | Key Result | Relevance to Us | Source |
|-------|-------|--------|------------|-----------------|--------|
Plus a narrative summary of the landscape (3-5 paragraphs).
If Zotero BibTeX was exported, include a references.bib snippet for direct use in paper writing.
Step 5: Save (if requested)
- Save paper PDFs to
literature/ or papers/
- Update related work notes in project memory
- If Obsidian is available, optionally create a literature review note in the vault
Key Rules
- Always include paper citations (authors, year, venue)
- Distinguish between peer-reviewed and preprints
- Be honest about limitations of each paper
- Note if a paper directly competes with or supports our approach
- Never fail because a MCP server is not configured — always fall back gracefully to the next data source
- Zotero/Obsidian tools may have different names depending on how the user configured the MCP server (e.g.,
mcp__zotero__search or mcp__zotero-mcp__search_items). Try the most common patterns and adapt.
1---2name: research-lit-23description: Search and analyze research papers, find related work, summarize key ideas. Use when user says "find papers", "related work", "literature review", "what does this paper say", or needs to understand academic papers.4---56# Research Literature Review78Research topic: $ARGUMENTS910## Constants1112- **PAPER_LIBRARY** — Local directory containing user's paper collection (PDFs). Check these paths in order:13 1. `papers/` in the current project directory14 2. `literature/` in the current project directory15 3. Custom path specified by user in `CLAUDE.md` under `## Paper Library`16- **MAX_LOCAL_PAPERS = 20** — Maximum number of local PDFs to scan (read first 3 pages each). If more are found, prioritize by filename relevance to the topic.1718> 💡 Overrides:19> - `/research-lit "topic" — paper library: ~/my_papers/` — custom local PDF path20> - `/research-lit "topic" — sources: zotero, local` — only search Zotero + local PDFs21> - `/research-lit "topic" — sources: zotero` — only search Zotero22> - `/research-lit "topic" — sources: web` — only search the web (skip all local)2324## Data Sources2526This skill checks multiple sources **in priority order**. All are optional — if a source is not configured or not requested, skip it silently.2728### Source Selection2930Parse `$ARGUMENTS` for a `— sources:` directive:31- **If `— sources:` is specified**: Only search the listed sources (comma-separated). Valid values: `zotero`, `obsidian`, `local`, `web`, `all`.32- **If not specified**: Default to `all` — search every available source in priority order.3334Examples:35```36/research-lit "diffusion models" → all (default)37/research-lit "diffusion models" — sources: all → all38/research-lit "diffusion models" — sources: zotero → Zotero only39/research-lit "diffusion models" — sources: zotero, web → Zotero + web40/research-lit "diffusion models" — sources: local → local PDFs only41/research-lit "topic" — sources: obsidian, local, web → skip Zotero42```4344### Source Table4546| Priority | Source | ID | How to detect | What it provides |47|----------|--------|----|---------------|-----------------|48| 1 | **Zotero** (via MCP) | `zotero` | Try calling any `mcp__zotero__*` tool — if unavailable, skip | Collections, tags, annotations, PDF highlights, BibTeX, semantic search |49| 2 | **Obsidian** (via MCP) | `obsidian` | Try calling any `mcp__obsidian-vault__*` tool — if unavailable, skip | Research notes, paper summaries, tagged references, wikilinks |50| 3 | **Local PDFs** | `local` | `Glob: papers/**/*.pdf, literature/**/*.pdf` | Raw PDF content (first 3 pages) |51| 4 | **Web search** | `web` | Always available (WebSearch) | arXiv, Semantic Scholar, Google Scholar |5253> **Graceful degradation**: If no MCP servers are configured, the skill works exactly as before (local PDFs + web search). Zotero and Obsidian are pure additions.5455## Workflow5657### Step 0a: Search Zotero Library (if available)5859**Skip this step entirely if Zotero MCP is not configured.**6061Try calling a Zotero MCP tool (e.g., search). If it succeeds:62631. **Search by topic**: Use the Zotero search tool to find papers matching the research topic642. **Read collections**: Check if the user has a relevant collection/folder for this topic653. **Extract annotations**: For highly relevant papers, pull PDF highlights and notes — these represent what the user found important664. **Export BibTeX**: Get citation data for relevant papers (useful for `/paper-write` later)675. **Compile results**: For each relevant Zotero entry, extract:68 - Title, authors, year, venue69 - User's annotations/highlights (if any)70 - Tags the user assigned71 - Which collection it belongs to7273> 📚 Zotero annotations are gold — they show what the user personally highlighted as important, which is far more valuable than generic summaries.7475### Step 0b: Search Obsidian Vault (if available)7677**Skip this step entirely if Obsidian MCP is not configured.**7879Try calling an Obsidian MCP tool (e.g., search). If it succeeds:80811. **Search vault**: Search for notes related to the research topic822. **Check tags**: Look for notes tagged with relevant topics (e.g., `#diffusion-models`, `#paper-review`)833. **Read research notes**: For relevant notes, extract the user's own summaries and insights844. **Follow links**: If notes link to other relevant notes (wikilinks), follow them for additional context855. **Compile results**: For each relevant note:86 - Note title and path87 - User's summary/insights88 - Links to other notes (research graph)89 - Any frontmatter metadata (paper URL, status, rating)9091> 📝 Obsidian notes represent the user's **processed understanding** — more valuable than raw paper content for understanding their perspective.9293### Step 0c: Scan Local Paper Library9495Before searching online, check if the user already has relevant papers locally:96971. **Locate library**: Check PAPER_LIBRARY paths for PDF files98 ```99 Glob: papers/**/*.pdf, literature/**/*.pdf100 ```1011022. **De-duplicate against Zotero**: If Step 0a found papers, skip any local PDFs already covered by Zotero results (match by filename or title).1031043. **Filter by relevance**: Match filenames and first-page content against the research topic. Skip clearly unrelated papers.1051064. **Summarize relevant papers**: For each relevant local PDF (up to MAX_LOCAL_PAPERS):107 - Read first 3 pages (title, abstract, intro)108 - Extract: title, authors, year, core contribution, relevance to topic109 - Flag papers that are directly related vs tangentially related1101115. **Build local knowledge base**: Compile summaries into a "papers you already have" section. This becomes the starting point — external search fills the gaps.112113> 📚 If no local papers are found, skip to Step 1. If the user has a comprehensive local collection, the external search can be more targeted (focus on what's missing).114115### Step 1: Search (external)116- Use WebSearch to find recent papers on the topic117- Check arXiv, Semantic Scholar, Google Scholar118- Focus on papers from last 2 years unless studying foundational work119- **De-duplicate**: Skip papers already found in Zotero, Obsidian, or local library120121### Step 2: Analyze Each Paper122For each relevant paper (from all sources), extract:123- **Problem**: What gap does it address?124- **Method**: Core technical contribution (1-2 sentences)125- **Results**: Key numbers/claims126- **Relevance**: How does it relate to our work?127- **Source**: Where we found it (Zotero/Obsidian/local/web) — helps user know what they already have vs what's new128129### Step 3: Synthesize130- Group papers by approach/theme131- Identify consensus vs disagreements in the field132- Find gaps that our work could fill133- If Obsidian notes exist, incorporate the user's own insights into the synthesis134135### Step 4: Output136Present as a structured literature table:137138```139| Paper | Venue | Method | Key Result | Relevance to Us | Source |140|-------|-------|--------|------------|-----------------|--------|141```142143Plus a narrative summary of the landscape (3-5 paragraphs).144145If Zotero BibTeX was exported, include a `references.bib` snippet for direct use in paper writing.146147### Step 5: Save (if requested)148- Save paper PDFs to `literature/` or `papers/`149- Update related work notes in project memory150- If Obsidian is available, optionally create a literature review note in the vault151152## Key Rules153- Always include paper citations (authors, year, venue)154- Distinguish between peer-reviewed and preprints155- Be honest about limitations of each paper156- Note if a paper directly competes with or supports our approach157- **Never fail because a MCP server is not configured** — always fall back gracefully to the next data source158- Zotero/Obsidian tools may have different names depending on how the user configured the MCP server (e.g., `mcp__zotero__search` or `mcp__zotero-mcp__search_items`). Try the most common patterns and adapt.