SkillsGrove
SkillsGrove/Documents bureautiques/kevinxcw/paper-reader-skill/paper-reader

paper-reader

Installation

$npx skills add https://github.com/kevinxcw/paper-reader-skill --skill paper-reader
$git clone --depth 1 https://github.com/kevinxcw/paper-reader-skill.git /tmp/paper-reader-skill && mkdir -p ~/.claude/skills && cp -r /tmp/paper-reader-skill/. ~/.claude/skills/paper-reader
Installe pour moi cette Agent Skill : https://github.com/kevinxcw/paper-reader-skill/tree/2d14a538de58425246058f9b04bba54475cc2579/ — lis d’abord son SKILL.md et ses scripts, et ne l’installe dans mon dossier de compétences qu’après avoir vérifié qu’elle est sûre.

Résumé

Description d’origine · MITAI-powered academic paper analysis and summarization. Use when user wants to read, analyze, summarize, or extract key points from academic papers (PDF/HTML). Supports citation tracking, figure extraction, and structured markdown output.
Le SKILL.md ci-dessous est reproduit depuis kevinxcw/paper-reader-skill (commit 2d14a53) sous licence MIT. Le texte est inchangé ; seules les métadonnées d’en-tête du fichier sont omises, les images sont affichées sous forme de liens et les fichiers très longs sont tronqués. Copyright 2024 Paper Reader. Licence : LICENSE. Seul le fichier d’instructions est affiché ; consultez le dépôt d’origine pour les éventuels scripts.

Paper Reading Agent

AI-powered academic paper analysis and summarization with citation tracking and figure extraction.

When to Use

Use this skill when user requests:

  • Read paper / analyze paper / summarize paper
  • Extract key points / innovations from paper
  • Understand paper content
  • Generate paper summary
  • Extract citation relationships
  • Analyze citation relevance and identify key references
  • Fetch and integrate GitHub project code for better understanding

Project Structure

The project is bundled in ${CLAUDE_SKILL_DIR}/:

paper-reader/
├── SKILL.md                   # This file
├── README.md                  # Documentation
├── error_example/             # Example files with issues
└── scripts/                  # Project code
    ├── src/                   # Source code
    │   ├── agent/             # PaperAgent core
    │   │   ├── paper_agent.py
    │   │   └── github_integration.py  # GitHub integration
    │   ├── parsers/           # PDF/HTML parsers
    │   ├── llm/               # LLM integration
    │   ├── analysis/          # Citation tracking, analysis, figure analysis
    │   │   ├── citation_tracker.py    # Citation extraction
    │   │   ├── citation_analyzer.py   # Citation relevance analysis
    │   │   ├── citation_graph.py      # Citation graph visualization
    │   │   └── figure_analyzer.py     # Figure extraction
    │   └── output/            # Markdown generation
    ├── tests/                 # Test files
    ├── paper_reader.py # CLI entry point
    └── pyproject.toml         # Project configuration

Usage

Command Line

Run analysis using uv from the skill directory:

# Basic usage - specify paper path
uv --directory ${CLAUDE_SKILL_DIR}/scripts run python paper_reader.py /path/to/paper.pdf

# Specify output path
uv --directory ${CLAUDE_SKILL_DIR}/scripts run python paper_reader.py /path/to/paper.pdf -o ./output/

# Use specific model
uv --directory ${CLAUDE_SKILL_DIR}/scripts run python paper_reader.py /path/to/paper.pdf -m minimax/MiniMax-M2.5

# Enable verbose output
uv --directory ${CLAUDE_SKILL_DIR}/scripts run python paper_reader.py /path/to/paper.pdf -v

Python API

import sys
sys.path.insert(0, "${CLAUDE_SKILL_DIR}/scripts")

from pathlib import Path
from src.agent import PaperAgent

agent = PaperAgent(model="minimax/MiniMax-M2.5", temperature=0.7)

paper_path = Path("/path/to/paper.pdf")
output_path = Path("./output/summary.md")

summary = agent.read_and_summarize(paper_path, output_path)

print(f"Title: {summary.title}")
print(f"Abstract: {summary.abstract}")
print(f"Key Innovations: {summary.key_innovations}")

Parse Only (No LLM)

import sys
sys.path.insert(0, "${CLAUDE_SKILL_DIR}/scripts")

from pathlib import Path
from src.parsers import UniversalParser

parser = UniversalParser()
result = parser.parse(Path("paper.pdf"))

print(f"Title: {result.title}")
print(f"Full text length: {len(result.text)} chars")
print(f"Sections: {list(result.sections.keys())}")

Citation Graph Generation

import sys
sys.path.insert(0, "${CLAUDE_SKILL_DIR}/scripts")

from src.analysis.citation_tracker import CitationTracker
from src.analysis.citation_graph import CitationGraphVisualizer

tracker = CitationTracker()
tracker.extract_citations(paper_text)

viz = CitationGraphVisualizer()
graph = viz.build_graph_from_tracker(tracker, "Paper Title")

mermaid = viz.generate_mermaid(graph)
print(mermaid)

Configuration

Model Priority

  1. Anthropic (default) - Uses ANTHROPIC_API_KEY + ANTHROPIC_MODEL
  2. OpenAI - Uses OPENAI_API_KEY + OPENAI_MODEL
  3. MiniMax - Falls back to minimax/MiniMax-M2.5 if neither above configured
  4. Manual Override - Specify with -m flag

Environment Variables

# Anthropic API (recommended - default)
export ANTHROPIC_API_KEY=your-key
export ANTHROPIC_MODEL=claude-sonnet-4-20250514

# Or OpenAI
export OPENAI_API_KEY=your-key
export OPENAI_MODEL=gpt-4o

# Or MiniMax (fallback)
export MINIMAX_API_KEY=your-key
export MINIMAX_GROUP_ID=your-group-id

Output Format

Generated summary includes:

  • Abstract
  • Introduction
  • Key Innovations
  • Core Techniques
  • Experimental Results
  • Discussion
  • Conclusion
  • Datasets
  • Metrics
  • Citation Analysis - Relevant citations with author, year, topic, relevance score, and contribution

Examples

Direct Invocation

/paper-reader /path/to/your_paper.pdf

With Output Path

/paper-reader /path/to/your_paper.pdf -o ./my_summary.md

Analyze Paper Content

User says: "Can you read this paper and tell me what it's about?"

→ Use this skill to parse the PDF and generate a comprehensive summary.

Voir le texte intégral de la licence (MIT)
MIT License

Copyright (c) 2024 Paper Reader

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.