Skip to content
zotero-literature-verification logo

Zotero Literature Verification

zotero-literature-verification

Complete workflow for verifying academic literature citations using Zotero MCP with full PDF reading and token management

SKILL.md

Full skill instructions

Zotero Literature Verification

Complete workflow for verifying academic literature citations using Zotero MCP with 100% word-by-word PDF reading and token budget management.

Quick Start

When invoked with /​zotero-literature-verification, guide the user through:

  1. Token Budget Estimation - Calculate required tokens based on page count
  2. PDF Extraction - Extract complete PDF text using PyMuPDF
  3. Sequential Reading - Read every word from first to last page in chunks
  4. Citation Verification - Verify citations with line numbers and exact quotes
  5. Reference Generation - Generate ACM-formatted reference list from Zotero

Zero-Tolerance Protocol ⚠️

CRITICAL: When verifying citations, you MUST:

  • ✅ Extract COMPLETE PDF text to /​tmp
  • ✅ Read EVERY word from first page to last page
  • ✅ Record line numbers for all verified citations
  • ✅ NEVER use keyword search as substitute for complete reading
  • ✅ Monitor token usage after each paper

FORBIDDEN:

  • ❌ Reading only Abstract and Conclusion
  • ❌ Using grep/​search without full text reading
  • ❌ Skipping middle sections of papers
  • ❌ Assuming content without reading

Token Budget Estimation

Formula: Pages × 700 + 1000 = Estimated Tokens

PapersPagesEst. TokensSafe?
1-210-20~20k✅ Safe
3-430-40~50k✅ Safe
5-650-90~90k✅ Safe
7+100+~140k+⚠️ Split sessions

Token Zones:

  • Safe: < 100k used (100k+ remaining)
  • Caution: 100-150k used (50-100k remaining)
  • Danger: > 150k used (< 50k remaining) → Pause and wait for user

Workflow

Step 1: Extract PDF

import fitz
doc = fitz.open('/​Users/​Zhuanz/​Zotero/​storage/​XXXXXXXX/​Paper.pdf')
text = '\n'.join([p.get_text() for p in doc])
with open('/​tmp/​paper_full.txt', 'w') as f:
    f.write(text)
print(f"✅ {doc.page_count} pages, {len(text)} chars")

Step 2: Read Sequentially

Read in chunks of 250-300 lines:

# Chunk 1: Lines 0-250 (Title, Abstract, Introduction)
Read("/​tmp/​paper_full.txt", offset=0, limit=250)

# Chunk 2: Lines 250-500 (Methods, early Results)
Read("/​tmp/​paper_full.txt", offset=250, limit=250)

# Chunk 3: Lines 500-750 (Results, Discussion)
Read("/​tmp/​paper_full.txt", offset=500, limit=250)

# Chunk 4: Lines 750-1000 (Conclusion, References)
Read("/​tmp/​paper_full.txt", offset=750, limit=250)

Step 3: Verify Citations

After complete reading, locate exact quotes:

# Find exact line number
grep -n "exact quoted phrase" /​tmp/​paper_full.txt

# Read context (±20 lines)
Read("/​tmp/​paper_full.txt", offset=436, limit=40)

Step 4: Get Metadata from Zotero

Use Zotero MCP tools:

  • mcp__zotero__zotero_get_item_metadata - Get complete metadata
  • mcp__zotero__zotero_search_items - Search by author/​year/​title
  • mcp__zotero__zotero_get_item_fulltext - Get PDF text

Step 5: Generate Report

## Verification Report

| Paper | Pages | Status | Issues |
|-------|-------|--------|--------|
| Author 2025 | 15 | ✅ | Corrected: false attribution |
| Author 2024 | 19 | ✅ | None - accurate |

## References (ACM Format)

[Author Year] FirstName LastName, FirstName LastName. Year.
Title of Paper. In Proceedings of CONF (CONF 'YY), Vol. 19.
AAAI Press, Pages. DOI: https://doi.org/​XX.XXXX/​XXXXXXX

Token Management

Monitor after each paper:

if tokens_remaining < 50000:
    print("⚠️ WARNING: Less than 50k tokens remaining")
    print("Recommend: Save progress and continue in new session")

Real Performance (from 2026-02-05):

  • 6 papers, 91 pages, 369,478 characters
  • Token used: 113,000 / 200,000 (56.5%)
  • Time: ~2 hours
  • Result: 100% accurate verification

Emergency Procedures

Token Budget Exhausted (< 30k remaining)

# Save progress
cat > /​tmp/​verification_progress.txt << EOF
Completed: Paper1, Paper2, Paper3
Current: Paper4 (line 500/​1200)
Pending: Paper5, Paper6
Token used: 150,000
EOF

# Report to user and STOP

Quality Checklist

Before claiming "verification complete":

  • Read complete text (first page → last page)
  • Located References section (proves completeness)
  • Recorded line numbers for all citations
  • Verified numerical data (N=X, p<0.05)
  • Checked author's evaluation words
  • Collected complete metadata from Zotero
  • Generated ACM-formatted reference list
  • Stayed within token budget

Dependencies

# Install PyMuPDF
pip install PyMuPDF

# Ensure Zotero is running with local API enabled
# Settings → Advanced → "Allow other applications to communicate with Zotero"

Documentation

  • instructions.md - Complete workflow details
  • QUICK_REFERENCE.md - Quick reference card
  • example_workflow.py - Working example
  • README.md - Project overview

Version History

  • v2.0.0 (2026-02-05): Added token management, 6-paper verification workflow
  • v1.0.0 (2026-02-02): Initial release

More skills from diegosouzapw

accessibility logo
diegosouzapw/awesome-omni-skill

accessibility

Accessibility guidelines for VS Code features — covers accessibility help dialogs, accessible views, verbosity settings, accessibility signals, ARIA alerts/status announcements, keyboard navigation, and ARIA labels/roles. Applies to both new interactive UI surfaces and updates to existing feature...

62 1
View
mermaid-diagrams logo
diegosouzapw/awesome-omni-skill

mermaid-diagrams

Mermaid diagram creation for flowcharts, sequences, ERDs, and more. Generate diagrams from text in markdown files. Use for documentation, architecture diagrams, and visual representations. Triggers on mermaid, flowchart, sequence diagram, ERD, entity relationship, gantt chart, pie chart, class di...

62 1
View
tauri2-react-rust logo
diegosouzapw/awesome-omni-skill

tauri2-react-rust

Guides development of cross-platform desktop apps with Tauri 2, TypeScript, React, and Rust. Use when building Tauri apps, implementing IPC, designing Rust backend or TypeScript/React frontend, when researching or cloning a website (open site, snapshot elements), when verifying local dev or built...

62 1
View
fp-ts-errors logo
diegosouzapw/awesome-omni-skill

fp-ts-errors

Handle errors as values using fp-ts Either and TaskEither for cleaner, more predictable TypeScript code. Use when implementing error handling patterns with fp-ts.

62 0
View
ring:pre-dev-research logo
diegosouzapw/awesome-omni-skill

ring:pre-dev-research

Gate 0 research phase for pre-dev workflow. Dispatches 3 parallel research agents to gather codebase patterns, external best practices, and framework documentation BEFORE creating PRD/TRD. Outputs research.md with file:line references.

62 0
View
create-assistant logo
diegosouzapw/awesome-omni-skill

create-assistant

Create and configure Vapi voice AI assistants with models, voices, transcribers, tools, hooks, and advanced settings. Use when building voice agents, phone bots, customer support assistants, or any conversational AI that handles phone or web calls.

62 0
View
codex-headless logo
diegosouzapw/awesome-omni-skill

codex-headless

Delegiere Aufgaben an OpenAI Codex CLI im Headless-Mode. Nutzt ChatGPT Subscription (KEIN API Key). Nur Workspace-Zugriff, KEIN System-Zugriff. Auto-Accept mit --full-auto. Web-Recherche mit --search.

62 0
View
social-media-scheduler logo
diegosouzapw/awesome-omni-skill

social-media-scheduler

Generate a full week of social media content for any topic. Outputs platform-optimized posts for Twitter/X, LinkedIn, and Instagram with hashtags and posting times.

62 0
View
Data Privacy Compliance logo
diegosouzapw/awesome-omni-skill

Data Privacy Compliance

Data privacy and regulatory compliance specialist for GDPR, CCPA, HIPAA, and international data protection laws. Use when implementing privacy controls, conducting data protection impact assessments, ensuring regulatory compliance, or managing data subject rights. Expert in consent management, da...

62 0
View
triple-review logo
diegosouzapw/awesome-omni-skill

triple-review

Reviews a task using the TRIPLE protocol, as the review agent.

62 0
View
Tech Stack & Architecture Decision logo
diegosouzapw/awesome-omni-skill

Tech Stack & Architecture Decision

Define and document the technology stack and architecture decisions for a project. Use when the user needs to choose a tech stack, make architecture decisions, define infrastructure choices, or document technology selections. Triggers on requests like "define the tech stack", "choose technologies...

62 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View