paper-extractlisted
Install: claude install-skill L4pisLazuli/grounded-paper-skills
# Paper extract (hybrid)
Do not treat direct PDF reading as the main path. Normalize machine output in `_raw/` into `extracted/`.
## Layout
```
sources/<source-id>/
├── original/ # PDF original (placed by human)
├── _raw/ # Machine extract (not the citation source of truth)
│ ├── marker.md # Marker full-text draft (single full-text extractor)
│ ├── arxiv/ # arXiv LaTeX / e-print source (authoritative math; preferred)
│ ├── mathpix/ # high-accuracy math pages (fallback for math)
│ └── pages/ # page images pXX.png (optional, for re-extract)
└── extracted/ # human-readable source of truth (cite here)
```
## Path priority (full text)
1. Markdown exists under `_raw/` (Marker) → read it and generate/update `extracted/`
2. `_raw/` missing → ask the user to run Marker (see tooling). **Do not silently fill `extracted/` by reading the whole PDF**
3. Exceptions: short checks (e.g., Abstract) or filling pages missing from `_raw` may use the PDF / page images
## Math / equation reference priority
Equations and algorithms must come from an authoritative source, not from full-text OCR. Use this fixed order:
1. **arXiv LaTeX / e-print source** (`_raw/arxiv/`) — preferred (compiled TeX; no OCR guesswork)
2. **Mathpix** (or equivalent high-accuracy math OCR) on the PDF math pages (`_raw/mathpix/`)
3. **PDF page image + vision re-extract** of only the affected pages (`_raw/pages/`)
### Fallback on fetch failure (must be e