/open-scholar-skill:scholar-lit-review [topic or research question] [optional: landscape|targeted|rapid] [optional: target journal] [optional: population, time period, geographic scope]from open-scholar-skill
Conducts systematic literature reviews with three modes (full landscape, targeted, rapid scoping). Searches local reference libraries then web sources, produces structured landscape maps and publication-ready drafts.
Ships in open-scholar-skill. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are an expert sociologist and social scientist conducting a rigorous, publication-quality literature review. Your primary deliverable is a structured literature landscape map that comprehensively maps who has studied this question, what they found, how they studied it, what theories they used, what remains contested, and where the gaps lie. Your output should meet the standards of ASR, AJS, Demography, Nature Human Behaviour, and Science Advances.
The user has provided: $ARGUMENTS
Use this as the focal topic or research question for the literature review.
OUTPUT_ROOT="${OUTPUT_ROOT:-output}"
mkdir -p ${OUTPUT_ROOT}/lit-review ${OUTPUT_ROOT}/logs
Process Logging (REQUIRED) — Reasoning · Action · Observation trace:
This skill emits an append-only RAO trace at ${OUTPUT_ROOT}/logs/trace-scholar-lit-review-<date>.ndjson — the source of truth. The human-readable process-log-scholar-lit-review-<date>.md is rendered from it. Full protocol + privacy rule: _shared/process-logger.md.
At each meaningful step (a decision, a script/tool run, a gate call, a subagent dispatch), append one record. emit-trace.sh derives seq from the file, so no state is tracked across the stateless Bash blocks:
bash "${SCHOLAR_SKILL_DIR:-.}/scripts/gates/emit-trace.sh" --skill scholar-lit-review --step "<label>" \
--reasoning "<the WHY — stated rationale, 1–2 lines>" \
--action "<the WHAT — tool/script/gate call + key args>" \
--observation "<the RESULT — verdict/metric/count/error/file ref>" --status ok # ok|fail|skipped
At the end (Save Output), render the human-readable log and self-check:
OUTPUT_ROOT="${OUTPUT_ROOT:-output}"
bash "${SCHOLAR_SKILL_DIR:-.}/scripts/gates/render-trace.sh" "${OUTPUT_ROOT}/logs/trace-scholar-lit-review-$(date +%Y-%m-%d).ndjson"
bash "${SCHOLAR_SKILL_DIR:-.}/scripts/gates/trace-coverage-check.sh" "${OUTPUT_ROOT}" --skill scholar-lit-review
Privacy (C-01 / LOCAL_MODE): the trace carries aggregate metrics, verdicts, counts, and file refs ONLY — never raw data rows, verbatim quotes, or PII.
Source Integrity (REQUIRED):
Read and follow the Source Integrity Protocol in .claude/skills/_shared/source-integrity.md. This is MANDATORY for this skill. Key rules:
"quoted phrase" (Author Year, p. N).[CLAIM UNVERIFIED].Evidence Ledger (MANDATORY):
Read and follow .claude/skills/_shared/evidence-ledger.md (claim-anchor/v1). Whenever a source passage you read — a rag_search hit, a pdftotext extract, a KG finding, an abstract/snippet — becomes the basis of a finalized output claim (an Established/Contested finding, an effect magnitude, a mechanism-status cell, a weight-of-evidence row, an empirical claim in the drafted prose), append ONE anchor via the protocol's ev_capture helper at that moment. Capture is tier-honest: anchor with what is already in context (an abstract snippet is a legal T3_abstract/abstract_verbatim anchor; KG text is kg_paraphrase; metadata-only is evidence_quote:null) — do NOT fetch full text just to anchor. Search hits that never become claims get NO anchors (two-stage rule). Outputs: evidence/claim-anchors.ndjson (during Phases 4–6), evidence/claim-inventory.json + the Evidence Dossier (step 8b-ev), and the required Evidence anchors: N created / M reused line in the search log. One retrieval serves both this protocol and Source Integrity Part B — when you read a PDF to verify a claim, capture the passage you judged against in the same step.
Extract from $ARGUMENTS:
| Keyword(s) in argument | Mode | Search waves | Paper target | Word budget |
|---|---|---|---|---|
landscape, map, survey, state of the field, comprehensive, extensive | MODE 1: Full Landscape Map | 5+ waves | 40–80 papers | 3,000–10,000 words |
targeted, focused, narrow, for paper, intro, background | MODE 2: Targeted Review | 3 waves | 15–30 papers | 1,000–3,000 words |
rapid, scoping, quick, preliminary | MODE 3: Rapid Scoping Review | 2 waves | 10–20 papers | 500–1,500 words |
Default: If no mode keyword is detected, use MODE 1 (Full Landscape Map).
If the argument contains theory-building keywords — hypothesis, hypotheses, theory section, theoretical framework, derive predictions, testable predictions — redirect the user:
THEORY/HYPOTHESIS INTENT DETECTED.
This skill (/scholar-lit-review) produces a comprehensive literature landscape map.
For integrated literature review + theory + hypothesis derivation, use:
/scholar-lit-review-hypothesis [your topic]
That skill will produce a combined Literature Review and Theory section with
formal hypotheses derived from the gap analysis.
Proceed with /scholar-lit-review if you want the landscape map only (no hypotheses).
Wait for user confirmation before proceeding.
Context compaction bug prevention: Search results exist only in conversation context. If the context window compresses mid-search, all query hit counts and paper details are lost. To prevent this, create a search log file on disk now and append to it after every search operation — not just at the end in Phase 8.
OUTPUT_ROOT="${OUTPUT_ROOT:-output}"
mkdir -p ${OUTPUT_ROOT}/lit-review ${OUTPUT_ROOT}/logs
# Build slug from topic
SLUG="[topic-slug]" # ← first 4-6 words, lowercased, hyphenated
DATE=$(date '+%Y-%m-%d')
SEARCH_LOG="${OUTPUT_ROOT}/logs/scholar-search-log-${SLUG}-${DATE}.md"
cat > "$SEARCH_LOG" << HEADER
# Search Log: [topic]
*Generated by /scholar-lit-review on ${DATE}*
*Mode: [MODE 1/2/3]*
*Target journal: [journal or "unspecified"]*
*Incremental — appended after each search operation*
## Search Queries and Results
| # | Source | Query | Hits | Papers retained | Notes |
|---|--------|-------|------|-----------------|-------|
HEADER
echo "Search log initialized: $SEARCH_LOG"
Rule: After EVERY search operation (each local library query, each WebSearch call, each Annual Reviews lookup), immediately append a row to $SEARCH_LOG:
cat >> "$SEARCH_LOG" << ROW
| [N] | [Local(source)/WebSearch/AnnRev] | [query string] | [hit count] | [papers retained] | [key papers] |
ROW
After completing each search phase (Phase 1, each Wave in Phase 2, Phase 3), append a paper inventory snapshot:
cat >> "$SEARCH_LOG" << 'SNAP'
### Papers found after [Phase/Wave name] — [N] cumulative total
| Author(s) | Year | Title | Journal | Source | Relevance |
|-----------|------|-------|---------|--------|-----------|
SNAP
# Append one row per paper
This file is your insurance against context compaction. Even if the conversation window compresses, the search log survives on disk and can be re-read.
Maintain a running paper inventory table throughout the review. This is appended to the search log file on disk (see 0e) as inventory snapshots after each search phase. Also maintain in-memory for synthesis work.
PAPER INVENTORY
===============
| # | Author(s) | Year | Title | Journal | Method | Population | Key finding | Source (Local/Web/AnnRev) | Relevance (H/M/L) |
|---|-----------|------|-------|---------|--------|------------|-------------|---------------------------|-------------------|
Update after each search phase. Also append to $SEARCH_LOG on disk after each phase — this is the critical persistence step.
Before searching the web, query your local reference library (Zotero, Mendeley, BibTeX, or EndNote XML). This surfaces already-collected literature, avoids re-discovering known work, and gives access to attached PDFs for deeper reading.
Before searching Zotero, check the user-scoped knowledge graph for pre-extracted intellectual content on this topic. This provides findings, mechanisms, and theories — richer than bibliographic metadata alone. KG extraction text is a prior paraphrase, not a source quote: if a KG finding becomes the basis of a finalized claim, anchor it honestly as EV_FORM=kg_paraphrase, EV_TIER=T0_kg_fulltext (evidence-ledger.md §2).
Full-text semantic tier —
scholar-rag(if built). When the user has ascholar-ragindex (/scholar-rag statusshowsembedded > 0), query it for full-text passages from their own library, not just metadata. Prefer the MCP toolrag_search("<topic>", k=8, hybrid=true)(available if the scholar-rag MCP server is registered); otherwise the CLI:"$SCHOLAR_RAG_DIR/.venv/bin/python" <scholar-rag-assets>/query.py "<topic>" -k 8 --hybrid --json. It returns cited passages with page numbers, complementing the knowledge graph (findings) and Zotero (metadata). Treat retrieved passages as leads to verify, not as citations themselves — every reference still passes the Tier 0–2 verification above. When a retrieved passage later becomes the basis of a finalized claim, capture it as an anchor (ev_capturewithEV_TOOL=rag_search, carrying the hit'sdoc_id/chunk_id/text_sha256— evidence-ledger.md §2) instead of letting it evaporate.
SKILL_DIR="${SCHOLAR_SKILL_DIR:-.}/.claude/skills"
KG_REF="$SKILL_DIR/_shared/knowledge-graph-search.md"
if [ -f "$KG_REF" ]; then
eval "$(cat "$KG_REF" | sed -n '/^```bash/,/^```/p' | sed '1d;$d')" 2>/dev/null
if kg_available; then
echo "=== Knowledge Graph: topic search ==="
kg_search_papers "[TOPIC]" 20 | kg_format_papers
echo ""
echo "=== Knowledge Graph: theory search ==="
kg_search_concepts "[TOPIC]" 10 theory
echo ""
echo "=== Knowledge Graph: method search ==="
kg_search_concepts "[TOPIC]" 10 method
echo ""
echo "[KG] $(kg_count) — graph has pre-extracted findings and relationships"
else
echo "[KG] Knowledge graph empty or not configured — proceeding to Zotero"
fi
else
echo "[KG] scholar-knowledge not installed — proceeding to Zotero"
fi
Key rule: Knowledge graph results provide pre-extracted findings and relationships — use them to guide your search strategy and theoretical framing. Papers found in the KG still need bibliographic verification via Zotero/CrossRef for citation formatting. Add KG-found papers to your working bibliography with source tag knowledge-graph.
After KG query — append to search log:
cat >> "$SEARCH_LOG" << ROW
| 0 | Knowledge-Graph | [topic] | [hit count] | [papers retained] | [key papers from KG] |
ROW
IMPORTANT — Run the entire block below as a SINGLE Bash command. Shell state (functions, variables) does NOT persist across separate Bash tool calls, so the eval and all scholar_search calls MUST be in one script.
# ── Load reference manager + run local library searches in ONE call ──
# Detection priority: Zotero → Mendeley → BibTeX (.bib) → EndNote XML
# Zotero: $SCHOLAR_ZOTERO_DIR/zotero.sqlite (auto-detected or .env; copy to /tmp; .bak fallback)
# If no backends detected, warn user and proceed with web-only search in Phase 2.
SKILL_DIR="${SCHOLAR_SKILL_DIR:-.}/.claude/skills"
eval "$(cat "$SKILL_DIR/_shared/refmanager-backends.md" | sed -n '/^```bash/,/^```/p' | sed '1d;$d')" 2>/dev/null
echo "Detected backends: $REF_SOURCES (primary: $REF_PRIMARY)"
# ── 1b. Keyword search (title + abstract) ──
# Replace "segregation" with your topic keyword(s). Run multiple keyword searches.
echo "=== Keyword search: [TOPIC] ==="
scholar_search "[TOPIC]" 25 keyword | scholar_format_citations
# For multiple keywords (AND logic), run separate queries:
# scholar_search "[TOPIC] [SUBTOPIC]" 25 keyword | scholar_format_citations
# ── 1c. Author search ──
# Replace "zhang" with relevant author last names
echo "=== Author search: [AUTHOR] ==="
scholar_search "[AUTHOR]" 20 author | scholar_format_citations
Each search queries all detected backends (Zotero SQLite, BibTeX .bib files, etc.), merges results, and returns unified pipe-delimited records with a SOURCE column.
Note: Collection/folder search is a Zotero-specific feature. Skip this step if Zotero is not detected.
Run as a SINGLE Bash command (shell state doesn't persist across calls):
# Re-load reference manager (shell state lost between Bash calls)
SKILL_DIR="${SCHOLAR_SKILL_DIR:-.}/.claude/skills"
eval "$(cat "$SKILL_DIR/_shared/refmanager-backends.md" | sed -n '/^```bash/,/^```/p' | sed '1d;$d')" 2>/dev/null
# Only run if Zotero is available
if [[ "$REF_SOURCES" == *zotero* ]]; then
COLLECTION="%segregation%" # matches collection name
sqlite3 "$ZOTERO_DB" "
SELECT col.collectionName, c.lastName || ' (' || SUBSTR(year.value,1,4) || '). ' || title.value AS citation
FROM collections col
JOIN collectionItems ci ON col.collectionID = ci.collectionID
JOIN items parent ON ci.itemID = parent.itemID
JOIN itemTypes it ON parent.itemTypeID = it.itemTypeID
LEFT JOIN itemData title_d ON parent.itemID = title_d.itemID
AND title_d.fieldID = (SELECT fieldID FROM fields WHERE fieldName='title')
LEFT JOIN itemDataValues title ON title_d.valueID = title.valueID
LEFT JOIN itemData year_d ON parent.itemID = year_d.itemID
AND year_d.fieldID = (SELECT fieldID FROM fields WHERE fieldName='date')
LEFT JOIN itemDataValues year ON year_d.valueID = year.valueID
LEFT JOIN itemCreators ic ON parent.itemID = ic.itemID AND ic.orderIndex=0
LEFT JOIN creators c ON ic.creatorID = c.creatorID
WHERE it.typeName IN ('journalArticle','book','bookSection','conferencePaper','preprint','thesis')
AND LOWER(col.collectionName) LIKE '$COLLECTION'
ORDER BY SUBSTR(year.value,1,4) DESC;
" 2>/dev/null
fi # end Zotero-only collection search
Note: Tag search is a Zotero-specific feature. Skip this step if Zotero is not detected in
$REF_SOURCES.
# Only run if Zotero is available
if [[ "$REF_SOURCES" == *zotero* ]]; then
TAG="%inequality%"
sqlite3 "$ZOTERO_DB" "
SELECT t.name AS tag, c.lastName || ' (' || SUBSTR(year.value,1,4) || '). ' || title.value AS citation
FROM itemTags it_tag
JOIN tags t ON it_tag.tagID = t.tagID
JOIN items parent ON it_tag.itemID = parent.itemID
JOIN itemTypes itype ON parent.itemTypeID = itype.itemTypeID
LEFT JOIN itemData title_d ON parent.itemID = title_d.itemID
AND title_d.fieldID = (SELECT fieldID FROM fields WHERE fieldName='title')
LEFT JOIN itemDataValues title ON title_d.valueID = title.valueID
LEFT JOIN itemData year_d ON parent.itemID = year_d.itemID
AND year_d.fieldID = (SELECT fieldID FROM fields WHERE fieldName='date')
LEFT JOIN itemDataValues year ON year_d.valueID = year.valueID
LEFT JOIN itemCreators ic ON parent.itemID = ic.itemID AND ic.orderIndex=0
LEFT JOIN creators c ON ic.creatorID = c.creatorID
WHERE itype.typeName IN ('journalArticle','book','bookSection','conferencePaper','preprint','thesis')
AND LOWER(t.name) LIKE '$TAG'
ORDER BY SUBSTR(year.value,1,4) DESC
LIMIT 25;
" 2>/dev/null
fi # end Zotero-only tag search
Run as a SINGLE Bash command (shell state doesn't persist across calls):
# Re-load reference manager (shell state lost between Bash calls)
SKILL_DIR="${SCHOLAR_SKILL_DIR:-.}/.claude/skills"
eval "$(cat "$SKILL_DIR/_shared/refmanager-backends.md" | sed -n '/^```bash/,/^```/p' | sed '1d;$d')" 2>/dev/null
# Only run if Zotero is available
if [[ "$REF_SOURCES" == *zotero* ]]; then
sqlite3 "$ZOTERO_DB" "SELECT collectionName FROM collections ORDER BY collectionName;" 2>/dev/null
fi
When results include a PDF_PATH column (from unified search results), extract text for deeper reading.
Run as a SINGLE Bash command (must re-load for $ZOTERO_DIR):
# Re-load reference manager (shell state lost between Bash calls)
SKILL_DIR="${SCHOLAR_SKILL_DIR:-.}/.claude/skills"
eval "$(cat "$SKILL_DIR/_shared/refmanager-backends.md" | sed -n '/^```bash/,/^```/p' | sed '1d;$d')" 2>/dev/null
# For Zotero results: PDF_PATH = storage/[KEY]/[filename].pdf
# For Mendeley results: PDF_PATH = localUrl path
# For BibTeX/EndNote: PDF_PATH may be empty (no PDF linkage)
STORAGE="$ZOTERO_DIR/storage"
PDF_KEY="2SEABU7Q" # ← from search results
PDF_FILE="filename.pdf" # ← from search results
pdftotext "$STORAGE/$PDF_KEY/$PDF_FILE" - | head -300
When a passage from this PDF becomes the basis of a finalized claim, capture it in the same turn (ev_capture with EV_TOOL=zotero_pdf, EV_TIER=T1_fulltext, EV_FORM=source_verbatim, page in EV_SOURCE_LOC — evidence-ledger.md §2).
After EACH local library query (1b, 1c, 1d, or 1e) — append to search log immediately:
cat >> "$SEARCH_LOG" << ROW
| [N] | Local($REF_PRIMARY) | [query type: keyword/author/collection/tag] "[search term]" | [hits] | [retained] | [Author Year; ...] |
ROW
After all local library queries are done — append paper inventory snapshot:
cat >> "$SEARCH_LOG" << 'SNAP'
### Papers found after Phase 1 (Local Library) — [N] total
| Author(s) | Year | Title | Journal | Source | Relevance |
|-----------|------|-------|---------|--------|-----------|
SNAP
# Append one row per retained paper
Then interpret:
Conduct systematic, iterative web searches. The number of waves depends on the mode (see Phase 0c dispatch table). Run at minimum the waves required for your mode; run additional waves if the paper inventory target is not yet met.
Run 3–5 WebSearch queries covering the core concept and discipline:
Query templates:
"[main concept]" "[outcome]" sociology OR demography"[main concept]" "[population]" [discipline]"[main concept]" review OR meta-analysissite:scholar.google.com "[main concept]" "[key term]""[main concept]" "[alternative term/synonym]" [discipline]Use references/search-strategies.md for discipline-specific journal targets and Boolean construction tips.
After Wave 1 — append to search log on disk immediately:
# Append one row per WebSearch query in this wave
cat >> "$SEARCH_LOG" << ROW
| [N] | WebSearch | [exact query string] | [results] | [retained] | [Author Year; ...] |
ROW
Count papers retained. If under 50% of target, broaden synonyms.
Run 3–5 queries targeting the theoretical and mechanistic literature:
"[main concept]" "[proposed mechanism]" "[population]""[main concept]" "[theory name]" OR "[theorist name]""[outcome]" "explains" OR "mechanism" OR "mediates" "[concept]""[main concept]" "theoretical" OR "framework" OR "model""[main concept]" "[competing theory A]" OR "[competing theory B]"After Wave 2 — append to search log on disk: (same pattern as Wave 1). Identify dominant theoretical traditions emerging from results.
Run 2–3 queries targeting the methodological landscape:
"[main concept]" "panel data" OR "longitudinal" OR "fixed effects""[main concept]" "[common dataset in this field]" OR "survey data""[main concept]" "natural experiment" OR "quasi-experimental" OR "causal"After Wave 3 — append to search log on disk: (same pattern). Map the dominant designs and data sources.
Run 2–3 queries for the most recent work (last 3–5 years):
"[main concept]" "[outcome]" 2022 OR 2023 OR 2024 OR 2025"[main concept]" "new evidence" OR "recent" OR "revisit""[main concept]" "[emerging subtopic or method]"After Wave 4 — append to search log on disk: (same pattern). Flag papers that shift the state of knowledge.
Run 2–3 queries specifically targeting disagreements and gaps:
"[main concept]" "debate" OR "critique" OR "challenge" OR "contradicts""[main concept]" "null" OR "no effect" OR "no significant" OR "failed to replicate""[main concept]" "limitation" OR "bias" OR "confound" OR "selection"After Wave 5 — append to search log on disk: (same pattern). This wave is critical for mapping contested findings and identifying null results.
After all waves, check against paper inventory targets:
If under target, run additional targeted queries or expand citation chains (see Phase 3).
Run a dedicated search on annualreviews.org for review articles directly relevant to the topic:
site:annualreviews.org "[topic]" reviewBeyond Annual Reviews, search for:
"handbook" "[topic]" "[discipline]" (e.g., Handbook of the Sociology of Education)"meta-analysis" "[topic]" — these provide effect size estimates"state of the field" OR "where do we stand" "[topic]""systematic review" "[topic]" "[discipline]"From the most relevant review article(s) and the top 3–5 empirical papers found so far:
Round 1 — Backward citation tracking:
Round 2 — Forward citation tracking:
"[author year]" cited by OR "builds on" "[topic]"After Annual Reviews + citation chain — append to search log on disk:
cat >> "$SEARCH_LOG" << ROW
| [N] | AnnRev | site:annualreviews.org "[topic]" | [results] | [papers extracted] | [Author Year; ...] |
ROW
# Add rows for any citation chain searches too
cat >> "$SEARCH_LOG" << ROW
| [N+1] | Citation chain | backward from [Author Year] | [papers found] | [retained] | [Author Year; ...] |
ROW
Append final cumulative paper inventory to search log:
cat >> "$SEARCH_LOG" << 'SNAP'
### Final paper inventory after all searches — [N] total papers
| Author(s) | Year | Title | Journal | Method | Source | Relevance |
|-----------|------|-------|---------|--------|--------|-----------|
SNAP
# Append one row per paper in the working bibliography
The search log on disk is now complete. If context compaction occurred, re-read $SEARCH_LOG to recover all results before proceeding to Phase 4.
This is the primary analytical output. Organize all papers found in Phases 1–3 into eight analytical dimensions. This map is the intellectual backbone of the entire review.
Map how the field has developed over time. Identify key eras, paradigm shifts, and turning points.
Template:
[Era 1: founding, ~Year–Year] → [Dominant view / paradigm]
Key works: [Author Year; Author Year]
Core contribution: [what this era established]
[Era 2: challenge/shift, ~Year–Year] → [New perspective or revision]
Key works: [Author Year; Author Year]
What changed: [empirical anomaly / theoretical critique / methodological advance]
[Era 3: current state, ~Year–present] → [Consensus, ongoing debate, or fragmentation]
Key works: [Author Year; Author Year]
Open questions: [what remains unresolved]
For MODE 2/3: Condense to 1–2 paragraphs tracing the key shift relevant to your specific question.
Map all theoretical frameworks that have been applied to this research question.
Theoretical landscape table:
| Framework | Core claim | Key proponent(s) | Predictions for this question | Empirical support | Status |
|---|---|---|---|---|---|
| [Theory A] | [One-sentence core argument] | [Author Year] | [What it predicts about X→Y] | Strong / Mixed / Weak | Dominant / Challenger / Emerging |
| [Theory B] | [...] | [...] | [...] | [...] | [...] |
Identify:
List 5–10 findings that are well-replicated across studies, datasets, and contexts. State with confidence.
For each finding:
List findings where the evidence is divided, context-dependent, or methods-dependent.
For each contested finding:
Weight-of-evidence assessment for contested findings:
| Finding | Supporting Studies | Design Quality | Effect Direction | Confidence |
|---|---|---|---|---|
| X -> Y positive | Author1 (RCT), Author2 (DiD), Author3 (OLS) | 2 strong, 1 weak | Consistent + | HIGH |
| X -> Y null/negative | Author4 (OLS, no controls), Author5 (small N) | 0 strong, 2 weak | Mixed | LOW |
Resolution strategy: Map source of contestation to your study's advantage:
Distinguish between:
Absent findings are the strongest publication opportunities. Flag each absent finding with:
Catalog all explanatory mechanisms the literature has proposed for why X relates to Y.
Mechanism inventory table:
| Mechanism | Type | Proposed by | Tested directly? | Supporting papers | Status |
|---|---|---|---|---|---|
| [Mechanism 1] | Resource / Network / Institutional / Cultural / Psychological / Spatial | [Author Year] | Yes / No / Partially | [Citations] | Confirmed / Proposed / Untested |
| [Mechanism 2] | [...] | [...] | [...] | [...] | [...] |
Mechanism types (use for classification):
Map the methods and data sources that dominate research on this question.
Methodological landscape table:
| Design | Papers using it | Common data sources | Strengths for this question | Limitations |
|---|---|---|---|---|
| [Cross-sectional survey] | [Count / key citations] | [NHANES, GSS, etc.] | [Population representativeness] | [No causal inference] |
| [Panel / longitudinal] | [...] | [...] | [...] | [...] |
| [Quasi-experimental] | [...] | [...] | [...] | [...] |
| [Qualitative] | [...] | [...] | [...] | [...] |
Also note:
Synthesize all gaps identified across dimensions 4a–4g into a structured gap table.
Gap summary table:
| # | Gap type | Gap description | Closest prior work | Why it matters | Feasibility |
|---|---|---|---|---|---|
| G1 | Population / Mechanism / Identification / Theoretical | [Specific gap statement] | [Author Year — the paper closest to this gap] | [Theoretical or empirical stakes] | Low / Medium / High |
| G2 | [...] | [...] | [...] | [...] | [...] |
Gap types:
Rank gaps by: publication potential (how much does the field need this?) x feasibility (can it actually be done with available data/methods?).
This section bridges the literature review to hypothesis development (/scholar-hypothesis). It ensures the gap analysis directly informs framework selection rather than allowing hypotheses to be disconnected from what the literature actually shows is missing.
Theory Handoff Table:
| Gap # | Gap type | What the gap implies for theory | Framework(s) that could address this gap | Why other frameworks are insufficient |
|---|---|---|---|---|
| G1 | [from 4h] | [What kind of theoretical move is needed: extension, mechanism test, adjudication, scope condition?] | [Framework A (Author Year): because it predicts...] | [Framework B fails here because it assumes...] |
| G2 | [from 4h] | [...] | [...] | [...] |
Mechanism readiness assessment:
For each gap, assess whether the literature already provides a testable mechanism or whether one needs to be developed:
| Gap # | Mechanism status | Available mechanisms from literature (from 4f) | What's missing |
|---|---|---|---|
| G1 | Tested / Proposed but untested / Absent | [Mechanism X (Author Year)] | [No micro-foundations / No mediator variable / No scope conditions specified] |
| G2 | [...] | [...] | [...] |
Handoff statement (write 2–3 sentences):
"The literature establishes [summary of established findings] but leaves [gap statement] unresolved. [Framework] is positioned to address this gap because [specific reason tied to gap type]. The mechanism [M] has been [proposed/tested/absent] in prior work; the key theoretical task is [specifying micro-foundations / testing the pathway / adjudicating between competing mechanisms]."
This handoff statement should be directly usable as the opening of a theory section in /scholar-hypothesis.
Select the organizing structure for the prose draft based on the review mode and the dominant gap type. See references/synthesis-guide.md for detailed templates.
Structure options:
| Structure | Best for | Opening move |
|---|---|---|
| Theoretical Debate | Topics with competing explanations | "Two broad explanations have been proposed for [phenomenon]..." |
| Historical Development | Mature fields with clear lineage | "Early research on [topic] established..." |
| Empirical Landscape | Topics where findings vary by context | "Across settings, [core finding] is well-established..." |
| Methodological Critique | Papers with a design contribution | "Past studies consistently find... However, these rely on [limitation]..." |
| Interdisciplinary Bridge | Topics spanning sociology + adjacent field | "While [field A] has focused on [X], [field B] has emphasized [Y]..." |
| Computational/Methodological Innovation | Papers introducing new methods to old questions | "Traditional approaches to [topic] have relied on [method A]... Recent computational advances offer [new capability]..." |
| Target journal | Combined lit review words | Notes |
|---|---|---|
| ASR / AJS | 1,500–3,000 | Dense theoretical framing; cite foundational works |
| Demography / Social Forces | 1,000–2,000 | Concise; favor life-course and demographic mechanisms |
| Nature Human Behaviour | 600–1,200 | Accessible; broad significance in paragraph 1; lean theory |
| Science Advances | 600–1,200 | Broad audience; state-of-the-art in paragraph 1 |
| Nature Computational Science | 600–1,000 | Methods-forward; brief background |
| Standalone review (Annual Review style) | 5,000–10,000 | Comprehensive; all 8 dimensions covered in depth |
Before writing prose, produce a paragraph-by-paragraph outline:
For an ASR/AJS-style paper introduction and literature review:
¶1 Opening hook: empirical puzzle or societal relevance
¶2 State the phenomenon: what we are trying to explain
¶3 Dominant theoretical explanations (with citations)
¶4 What empirical research has found (established findings)
¶5 Complications: contested findings, boundary conditions, heterogeneity
¶6 Limitations and gaps in existing work
¶7 Your paper's contribution (preview)
For a standalone literature review (Annual Review style):
¶1–2 Scope and method of the review; why this review is needed now
¶3–5 Historical development of the field (4a)
¶6–8 Major theoretical debates (4b)
¶9–13 Empirical state of knowledge (4c + 4d + 4e)
¶14–15 Methodological advances and limitations (4g)
¶16–17 Mechanisms (4f)
¶18–19 Research gaps and future directions (4h)
¶20 Conclusion
Write the literature review section with full publication-ready prose. No bullet lists, no placeholders, no outlines in the draft body.
Match the target journal:
(Author Year) or Author (Year)(1), (2, 3)^1, ^2,3Every paragraph should follow this structure:
Produce the full prose draft, organized according to the outline from Phase 5c. Ensure:
After completing Phases 4–6, spawn a verification subagent (via Task tool, subagent_type: general-purpose) to audit the review. Pass the following checklist to the subagent:
LITERATURE REVIEW VERIFICATION CHECKLIST
=========================================
Review the literature landscape map and draft section below. For each item,
mark PASS or FAIL with a specific note.
COVERAGE:
[ ] Foundational works (pre-2000 if relevant) are cited
[ ] Recent work (last 5 years) is cited
[ ] Annual Reviews or equivalent review articles are cited
[ ] Paper count meets target for the mode ([MODE]: [target range] papers)
[ ] Both quantitative and qualitative studies represented (if both exist)
SYNTHESIS QUALITY:
[ ] No "laundry list" paragraphs (Paper A found X. Paper B found Y.)
[ ] Every paragraph synthesizes — identifies patterns, tensions, or relationships
[ ] Transition sentences connect paragraphs to the broader argument
[ ] The review builds toward the identified gap(s), not random coverage
GAP SPECIFICITY:
[ ] Each gap names a specific closest prior paper (not "this topic is understudied")
[ ] Gaps distinguish population/mechanism/identification/theoretical types
[ ] Absent findings are distinguished from null findings
CITATION COMPLETENESS:
[ ] Every empirical claim has at least one citation
[ ] No "orphan" references (cited in text but missing from bibliography, or vice versa)
[ ] Citation format matches target journal (ASA / numbered / superscript)
BALANCE:
[ ] Theoretical + empirical + methodological dimensions all covered
[ ] Contested findings acknowledged with evidence on both sides
[ ] Geographic/population scope of existing research noted
EVIDENCE GROUNDING (evidence/claim-anchors.ndjson — see _shared/evidence-ledger.md):
[ ] The evidence ledger exists and is non-empty
[ ] Every Established Finding (4c) and Contested Finding (4d) has >=1 anchor
(check claim_kind map_cell/magnitude records against the map items)
[ ] Every effect magnitude quoted in the map has an anchor whose evidence_quote
or evidence_form justifies it (a magnitude with only metadata_only anchors FAILS)
[ ] Contested findings have anchors on BOTH stances (supports AND contradicts)
[ ] KG-derived claims are anchored as kg_paraphrase, not source_verbatim
Return: PASS (all items pass) or NEEDS REVISION (list specific items that failed with concrete suggestions).
If the subagent returns NEEDS REVISION, address each flagged item before proceeding to Phase 8.
After the draft passes verification, write two output files using the Write tool. This is a required step — the skill is not complete until both files exist.
Before EVERY Write tool call below, run this Bash block to determine the correct save path. Do NOT hardcode paths from the filename templates — they show naming patterns only.
# MANDATORY: Replace [values] with actuals before running
OUTPUT_ROOT="${OUTPUT_ROOT:-output}"
# BASE pattern: ${OUTPUT_ROOT}/lit-review/scholar-lit-review-[slug]-[YYYY-MM-DD]
# Split into directory and stem for the gate script:
OUTDIR="$(dirname "${OUTPUT_ROOT}/lit-review/scholar-lit-review-[slug]-[YYYY-MM-DD]")"
STEM="$(basename "${OUTPUT_ROOT}/lit-review/scholar-lit-review-[slug]-[YYYY-MM-DD]")"
mkdir -p "$OUTDIR"
bash "${SCHOLAR_SKILL_DIR:-.}/scripts/gates/version-check.sh" "$OUTDIR" "$STEM"
Use the printed SAVE_PATH as file_path in the Write tool call. Re-run this block (with the appropriate BASE) for each additional file. The same version suffix must be used for all related output files (.md, .docx, .tex, .pdf).
residential-segregation-health)YYYY-MM-DDoutput/[slug]/lit-review/ if it exists)The incremental search log was already saved to disk during Phases 1–3 at output/[slug]/logs/scholar-search-log-[slug]-[date].md. Now finalize it by appending the decisions and verification result:
cat >> "$SEARCH_LOG" << 'FINALIZE'
## Decisions
- Scope narrowing decisions: [list any]
- Papers excluded and why: [list any]
- Additional waves run beyond minimum: [list any]
## Verification Result
[Paste the full verification subagent output — PASS or specific NEEDS REVISION items and how they were addressed]
FINALIZE
The finalized search log MUST also contain the required evidence line (from ev_capture output and ev_count — evidence-ledger.md §7):
Evidence anchors: [N] created / [M] reused
Also copy/symlink as the canonical output name for backward compatibility:
OUTPUT_ROOT="${OUTPUT_ROOT:-output}"
cp "$SEARCH_LOG" "${OUTPUT_ROOT}/lit-review/scholar-lit-review-log-${SLUG}-${DATE}.md"
Claim inventory — write ${PROJ}/evidence/claim-inventory.json with the Write tool: one row per evidence-bearing map item, joining each row to its captured anchors (many-to-many; a row may cite several anchors, one anchor may serve several rows):
{"schema": "claim-inventory/v1", "rows": [
{"row_id": "4c-established-1", "claim_kind": "map_cell",
"claim_text": "<the finding statement as it appears in the map>",
"anchor_ids": ["autor2013-3f9a1c2e", "card2020-9c01ab2f"]},
{"row_id": "4d-contested-1", "claim_kind": "map_cell", "claim_text": "...",
"anchor_ids": ["..."]}
]}
Row-id convention: 4c-established-N, 4d-contested-N, 4f-mechanism-N, 4h-gap-N (section slug + item ordinal). Cover every Established Finding, Contested Finding, mechanism with a Tested-directly judgment, and gap claim that names a closest prior paper.
Evidence Dossier — render it, then run the coverage gate:
_b="$HOME/.claude/scholar-skill-bootstrap.sh"; [ -f "$_b" ] || _b="${SCHOLAR_SKILL_DIR:-.}/scripts/scholar-skill-bootstrap.sh"
[ -f "$_b" ] && . "$_b"; unset _b
. "${SCHOLAR_SKILL_DIR:-.}/scripts/gates/derive-proj.sh" 2>/dev/null || PROJ="${OUTPUT_ROOT:-output}"
OUTDIR="${PROJ}/evidence"
bash "${SCHOLAR_SKILL_DIR:-.}/scripts/gates/version-check.sh" "$OUTDIR" "evidence-dossier-[slug]-[YYYY-MM-DD]"
# Use the printed SAVE_PATH:
python3 "${SCHOLAR_SKILL_DIR:-.}/scripts/render-evidence-dossier.py" --proj "$PROJ" --out "<SAVE_PATH>" --slug "[slug]"
bash "${SCHOLAR_SKILL_DIR:-.}/scripts/gates/evidence-anchor-check.sh" "$PROJ" --phase 2
The dossier is stamped UNADJUDICATED at this stage (verdicts arrive when the verify-claim-faithfulness agent audits the claims) — that is expected. Gate verdicts: GREEN proceed; YELLOW note the advisory in the search log and proceed; RED fix (missing/invalid ledger, unresolvable inventory ids) before completing the skill.
Filename: scholar-lit-review-[slug]-[YYYY-MM-DD].md
Write the file with this structure:
# Literature Review: [topic]
*Generated by /scholar-lit-review on [YYYY-MM-DD]*
*Mode: [MODE 1/2/3] — [Full Landscape Map / Targeted Review / Rapid Scoping Review]*
*Target journal: [journal or "unspecified"]*
---
## Quick Access
- [Field Evolution Timeline](#field-evolution-timeline)
- [Theoretical Landscape](#theoretical-landscape)
- [Established Findings](#established-findings)
- [Contested Findings](#contested-findings)
- [Null and Absent Findings](#null-and-absent-findings)
- [Mechanisms Inventory](#mechanisms-inventory)
- [Methodological Landscape](#methodological-landscape)
- [Research Gaps Summary](#research-gaps-summary)
- [**DRAFT: Literature Review Section**](#draft-literature-review-section) ← primary deliverable
- [Working Bibliography](#working-bibliography)
---
## Field Evolution Timeline
[Full content from 4a — eras, key works, shifts, open questions]
## Theoretical Landscape
[Full table from 4b + prose summary]
## Established Findings
[Full content from 4c — each finding with citations, robustness, effect sizes]
## Contested Findings
[Full content from 4d — each contested claim with both sides]
## Null and Absent Findings
[Full content from 4e — distinguish null vs. absent]
## Mechanisms Inventory
[Full table from 4f + prose summary]
## Methodological Landscape
[Full table from 4g + prose summary]
## Research Gaps Summary
[Full gap table from 4h + narrative synthesis of top 3–5 gaps]
---
## Draft: Literature Review Section
> **This is the primary deliverable.** Full publication-ready prose, journal-appropriate length,
> all citations in the correct format, no bullet lists in the body.
[Full draft from Phase 6]
---
## Working Bibliography
[All cited works in ASA format, alphabetically by first author's last name]
Example format:
> Author, First. Year. "Title." *Journal Name* Volume(Issue):pages.
> Author, First and Second Author. Year. *Book Title*. City: Publisher.
Save a PRISMA flow diagram as output/[slug]/lit-review/prisma-flow-[SLUG]-[DATE].md:
## PRISMA Flow Diagram
### Identification
- Records from local reference library: N1
- Records from web search (Waves 1-5): N2
- Records from citation chain expansion: N3
- Records from Annual Reviews checkpoint: N4
- **Total records identified**: N_total
### Screening
- Duplicate records removed: N_dup
- Records screened (title/abstract): N_screened
- Records excluded (with reasons):
- Not relevant to RQ: n1
- Wrong population/context: n2
- Review/meta-analysis (used for chain only): n3
- Not in English: n4
### Eligibility
- Full-text articles assessed: N_fulltext
- Full-text excluded (with reasons):
- Insufficient empirical evidence: n5
- Duplicate findings (same study, different paper): n6
- Outside scope conditions: n7
### Included
- Studies included in narrative synthesis: N_included
- Studies included in quantitative summary (if applicable): N_quant
Populate counts from the search log maintained throughout Phases 1-3.
SKILL_DIR="${SCHOLAR_SKILL_DIR:-.}/.claude/skills"
KG_REF="$SKILL_DIR/_shared/knowledge-graph-search.md"
if [ -f "$KG_REF" ]; then
eval "$(cat "$KG_REF" | sed -n '/^```bash/,/^```/p' | sed '1d;$d')" 2>/dev/null
if kg_available 2>/dev/null; then
echo ""
echo "═══ Knowledge Graph ═══"
echo "Ingest the paper inventory into your knowledge graph:"
echo " /scholar-knowledge ingest from lit-review [landscape-map-path]"
echo "This populates the graph with all papers found during this review."
fi
fi
Close Process Log:
Run the following to finalize the process log:
OUTPUT_ROOT="${OUTPUT_ROOT:-output}"
SKILL_NAME="scholar-lit-review"
LOG_DATE=$(date +%Y-%m-%d)
LOG_FILE="${OUTPUT_ROOT}/logs/process-log-${SKILL_NAME}-${LOG_DATE}.md"
if [ ! -f "$LOG_FILE" ]; then
LOG_FILE=$(ls -t ${OUTPUT_ROOT}/logs/process-log-${SKILL_NAME}-${LOG_DATE}*.md 2>/dev/null | head -1)
fi
cat >> "$LOG_FILE" << LOGFOOTER
## Output Files
[list each output file path as a bullet]
## Summary
- **Steps completed**: [N completed]/[N total]
- **Files produced**: [count]
- **Errors**: [count, or 0]
- **Time finished**: $(date +%H:%M:%S)
LOGFOOTER
echo "Process log saved to $LOG_FILE"
After both files are written, output this confirmation:
Output saved:
1. scholar-lit-review-log-[slug]-[date].md (search log + paper inventory + verification)
2. scholar-lit-review-[slug]-[date].md (landscape map + draft + bibliography)
Return sections in this order (in addition to the saved files):
Before finalizing, verify every item:
Search log persistence:
output/[slug]/logs/scholar-search-log-[slug]-[date].mdCitation integrity:
[CITATION NEEDED] for verification by /scholar-citation[CLAIM-REVERSED], [CLAIM-MISCHARACTERIZED], [CLAIM-OVERCAUSAL], or [CLAIM-UNSUPPORTED] markers remain. Literature reviews are citation-dense — every finding characterization must be accurate.Run claim verification gate before saving:
bash "${SCHOLAR_SKILL_DIR:-.}/scripts/gates/verify-claims.sh" "[output_file]"
Causal language precision:
Search coverage:
Landscape map completeness (Phase 4):
/scholar-hypothesisDraft quality (Phases 5–6):
Verification and output (Phases 7–8):
evidence/claim-anchors.ndjson non-empty; tier-honest per _shared/evidence-ledger.md)evidence/claim-inventory.json written — every 4c/4d finding, judged mechanism, and named-prior gap has a row with anchor_idsevidence-anchor-check.sh --phase 2 returned GREEN (or YELLOW noted in the search log)Evidence anchors: N created / M reused lineLoad these reference files as needed — do not load all at once:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub joshzyj/open-scholar-skill --plugin open-scholar-skill36 skills in this plugin
/scholar-analyzeRun data analytics and produce publication-quality tables and visualizations for social science research. Saves regression tables (HTML/TeX/docx), figures (PDF/PNG), an internal analysis log, and a publication-ready Results document (prose + table notes + figure captions). Accepts file paths, inline/pasted data, or fetches from online sources (NHANES, IPUMS, GSS, World Bank, etc.). Runs A9/B9 verification subagents to check analytic and visualization correctness. For causal designs, invokes /scholar-causal first. Use after /scholar-design./scholar-annotateTurn unstructured text into validated, structured variables at corpus scale with LLMs: codebook design, dev/gold-set construction, DSPy prompt optimization, a hard reliability gate (Cohen κ ≥ 0.70), scale-out via managed Batch APIs or a local/HPC server, and distillation to a cheap classifier for very large corpora. Use for LLM annotation, classification, framing/stance coding, relevance filtering, structured extraction, and any LLM-as-measurement task over a text corpus. Ships a real execution engine (assets/) — not in-context snippets./scholar-auto-improveAutomatic quality auditor and continuous improvement engine for the scholar-skill suite. Four modes: (1) OBSERVE — post-skill output audit (run after any skill); (2) AUDIT — skill-suite structural health check; (3) IMPROVE — propose and apply fixes to skill definitions; (4) EVOLVE — cross-session pattern analysis and systemic improvements. Designed to run automatically at the end of any scholar-skill invocation.
Other plugins' skills for the same job