---
name: add-paper
description: Add a research paper to the maxpool research-papers collection. Use when the user provides an ArXiv URL, PDF link, or asks to add/summarize a research paper for the website. Handles paper fetching, insight extraction, HTML generation, and index updates.
allowed-tools: WebFetch, Read, Write, Edit, Glob, Grep, Bash(ls:*), Bash(mkdir:*)
---
# Add Research Paper Skill
This skill automates adding research papers to the `/research-papers/` directory following the established template patterns.
## When to Use This Skill
Trigger this skill when the user:
- Provides an ArXiv URL (html, abs, or pdf format)
- Asks to "add a paper" or "create a research summary"
- Wants to include a paper in the research-papers collection
## Input URL Handling
The user may provide URLs in different formats. Convert them to HTML format for best parsing:
| Input Format | Example | Convert To |
|--------------|---------|------------|
| ArXiv HTML | `arxiv.org/html/2512.04123v1` | Use as-is (preferred) |
| ArXiv Abstract | `arxiv.org/abs/2512.04123v1` | `arxiv.org/html/2512.04123v1` |
| ArXiv PDF | `arxiv.org/pdf/2512.04123v1.pdf` | `arxiv.org/html/2512.04123v1` |
| AlphaXiv | `alphaxiv.org/abs/2512.04123` | Fetch directly |
## Workflow
### Step 1: Fetch and Parse Paper
1. Use `WebFetch` to retrieve the paper content from the HTML URL
2. Extract these key elements:
- **Title**: Full paper title
- **Authors**: Author names and affiliations
- **Date**: Publication/submission date
- **Abstract**: Paper abstract
- **Key Sections**: Introduction, methodology, results, conclusion
### Step 2: Analyze and Extract Insights
From the paper content, identify:
1. **3-5 Key Findings** - The most important discoveries or contributions
2. **Performance Metrics** - Specific percentages, improvements, benchmarks
- Use `+24%` for improvements
- Use `-15%` for declines
- Use `73%` for neutral metrics
3. **Methodology** - How the research was conducted
4. **Benchmarks/Datasets** - What was tested and where
5. **Figure URLs** - Extract image URLs from the HTML for inclusion
### Step 3: Extract Figure URLs and Determine Sizing
For ArXiv HTML pages, figures are typically at:
- Direct `` tags in the HTML content
- ArXiv CDN paths
For AlphaXiv papers, use pattern:
```
https://paper-assets.alphaxiv.org/figures/[paper-id]/img-[N].jpeg
```
#### Image Sizing Guidelines
**IMPORTANT**: Paper figures vary greatly in size. Apply appropriate sizing based on content type:
| Figure Type | Recommended Width | Usage |
|-------------|-------------------|-------|
| Architecture diagrams | `max-width: 100%` | Full width for complex diagrams |
| Most paper figures | `max-width: 800px` | **Default** - bar charts, results, comparisons |
| Charts with legends | `max-width: 750px` | Pie charts, distribution charts |
| Tables as images | `max-width: 800px` | Comparison tables, results |
| Simple diagrams | `max-width: 650px` | Flowcharts, concept illustrations |
| Very small figures | `max-width: 500px` | Icons, simple symbols |
**Apply sizing using inline style on the `
` tag:**
**IMPORTANT**: Use `width: 100%; max-width: Xpx;` — not just `max-width` alone!
- `max-width` alone won't scale up small images
- `width: 100%` makes the image fill its container
- `max-width` then caps it at a reasonable size
```html