claude-paper
NewA plugin for studying research papers with automated material generation, code demos, and a web viewer
Overview
<div align="center">
Claude Paper
Transform research papers into comprehensive learning environments
  
A powerful Claude Code plugin that automates research paper study through intelligent material generation, code demonstrations, and an interactive web viewer.
<table> <tr> <td align="center"> <img src="assets/screenshot1.png" alt="Library View" width="100%"/> <br/> <sub>Library View - Browse and search your paper collection</sub> </td> <td align="center"> <img src="assets/screenshot2.png" alt="Reading View" width="100%"/> <br/> <sub>Reading View - Study papers with rich formatting and math support</sub> </td> </tr> </table>
</div>
Features
- •Automatic PDF parsing - Extract title, authors, abstract, and full content
- •Smart content truncation - Handles large papers (50k char limit) intelligently
- •Code repository detection - Automatically finds GitHub, arXiv, CodeOcean links
- •Adaptive learning materials - Generates README, summary, insights, Q&A based on paper complexity
- •Code demonstrations - Clean implementations with Jupyter notebooks and original code integration
- •Interactive web viewer - Nuxt.js interface with math equation support (KaTeX)
- •Intelligent assessment - Difficulty levels and paper type detection for adaptive content generation
Quick Start
Installation
Install from the Claude Code marketplace:
# Add the marketplace
/plugin marketplace add alaliqing/claude-paper
# Install the plugin
/plugin install claude-paper
# Restart Claude Code for the plugin to take effectThat's it! The plugin will automatically:
- •Install all dependencies (pdf-parse for PDF processing)
- •Create the papers directory at
~/claude-papers/ - •Initialize the search index
- •Install web viewer dependencies
System Requirements
- •Node.js: 18.0.0 or higher
- •npm: Comes with Node.js
- •Claude Code: Latest version with plugin support
- •poppler-utils: For PDF image extraction (install via system package manager)
- macOS: brew install poppler - Ubuntu/Debian: sudo apt-get install poppler-utils - Arch Linux: sudo pacman -S poppler
Usage
Study a Research Paper
Simply talk to Claude Code to study a paper:
Help me study the paper at ~/Downloads/attention-is-all-you-need.pdfYou can also use URLs:
# Direct PDF URL
Help me study the paper at https://arxiv.org/pdf/1706.03762.pdf
# arXiv abstract URL (automatically converted to PDF)
Help me study the paper at https://arxiv.org/abs/1706.03762Claude will automatically trigger the study workflow and:
- Parse the PDF and extract metadata
- Analyze paper complexity and type
- Generate adaptive learning materials
- Create code demonstrations (if applicable)
- Extract and include original code (if available)
- Extract key figures and images
- Update the global search index
- Launch the web viewer automatically
Launch Web Viewer
/claude-paper:webuiOpens the interactive web interface at http://localhost:5815 where you can:
- •Browse all studied papers
- •View generated materials with math rendering
- •Access code demonstrations and notebooks
- •Search through your paper library
Paper Storage Structure
Papers are organized in ~/claude-papers/papers/{paper-slug}/:
~/claude-papers/
├── papers/
│ └── {paper-slug}/
│ ├── paper.pdf # Original PDF file
│ ├── meta.json # Paper metadata (title, authors, etc.)
│ ├── README.md # Quick navigation and overview
│ ├── summary.md # Detailed summary
│ ├── insights.md # Key insights (most important!)
│ ├── method.md # Methodology (if complex)
│ ├── mental-model.md # Paper categorization (if needed)
│ ├── reflection.md # Future directions (if needed)
│ ├── qa.md # Learning questions
│ ├── index.html # Interactive HTML explorer
│ ├── images/ # Extracted figures and tables
│ │ ├── fig1.png
│ │ └── fig2.png
│ └── code/ # Code demonstrations
│ ├── core-demo.py # Clean reference implementation
│ └── concept-demo.ipynb # Interactive Jupyter notebook
│
└── index.json # Global search indexArchitecture
Plugin Structure
claude-paper/
├── .claude-plugin/
│ └── marketplace.json # Marketplace catalog entry
├── plugin/
│ ├── .claude-plugin/
│ │ └── plugin.json # Plugin manifest
│ ├── skills/
│ │ └── study/
│ │ ├── SKILL.md # Study workflow definition
│ │ └── scripts/
│ │ ├── parse-pdf.js # PDF parsing utility
│ │ └── extract-images.py # Image extraction
│ ├── commands/
│ │ └── webui.md # /webui command
│ ├── hooks/
│ │ ├── hooks.json # Session lifecycle hooks
│ │ └── check-install.sh # Installation verification
│ ├── src/
│ │ └── web/ # Nuxt.js web viewer
│ │ ├── components/ # Vue components
│ │ ├── composables/ # Vue composables
│ │ ├── server/ # API endpoints
│ │ └── package.json
│ └── package.json
└── README.mdKey Components
- Study Skill - Main workflow agent that orchestrates paper processing
- PDF Parser - Extracts text, metadata, and code links using pdf-parse
- Image Extractor - Python script for PDF figure extraction
- Web Viewer - Nuxt.js application with Nitro API server
- Hooks System - Automatic dependency installation and setup
Development
Running Tests
# Test PDF parsing
node plugin/skills/study/scripts/parse-pdf.js /path/to/paper.pdf
# Test web viewer
cd plugin/src/web
npm run dev
# Test full workflow
cd /path/to/claude-paper
claude --plugin-dir ./plugin
/claude-paper:study /path/to/paper.pdfBuilding for Production
# Build web viewer
cd plugin/src/web
npm run build
# The built viewer will be in .output/Configuration
Environment Variables
No configuration required! The plugin uses sensible defaults:
- •Papers directory:
~/claude-papers/ - •Web viewer port:
5815 - •Content limit:
50,000characters (with intelligent truncation)
Advanced Customization
You can modify behavior by editing the skill file at: plugin/skills/study/SKILL.md
Contributing
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Add tests if applicable
- Commit your changes (
git commit -m 'add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- •Built with Claude Code
- •PDF parsing powered by pdf-parse
- •Web viewer built with Nuxt.js
- •Math rendering by KaTeX
Install & Usage
mkdir -p .claude/skillsmkdir -p .claude/skills && curl -o .claude/skills/claude-paper.md https://raw.githubusercontent.com/alaliqing/claude-paper/main/SKILL.md/claude-paperFrequently Asked Questions
What is claude-paper?
A plugin for studying research papers with automated material generation, code demos, and a web viewer
How to install claude-paper?
To install claude-paper, create the .claude/skills directory in your project, then run the curl command to download the skill file. Once installed, invoke it in Claude Code with /claude-paper.
What is claude-paper best for?
claude-paper is a community categorized under Development. It is designed for: plugin. Created by alaliqing.