SkillsGrove
SkillsGrove/문서 작업/kevinxcw/paper-reader-skill/paper-reader

paper-reader

설치

$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
이 Agent Skill을 설치해 주세요: https://github.com/kevinxcw/paper-reader-skill/tree/2d14a538de58425246058f9b04bba54475cc2579/ — 먼저 SKILL.md와 스크립트를 읽고, 안전하다고 확인한 뒤에만 제 skills 폴더에 설치해 주세요.

요약

원문 설명 · 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.
아래 SKILL.md는 kevinxcw/paper-reader-skill(커밋 2d14a53)에서 MIT 라이선스에 따라 게시한 것입니다. 본문은 변경하지 않았으며, 파일 상단의 메타데이터만 생략하고 이미지는 링크로 표시하며 매우 긴 파일은 일부만 표시합니다. Copyright 2024 Paper Reader. 라이선스: LICENSE. 지침 파일만 표시되며 스크립트 등은 원본 저장소를 참고하세요.

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.

라이선스 전문 보기(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.