paper-ingestlisted
Install: claude install-skill L4pisLazuli/grounded-paper-skills
# Paper ingest
When a PDF exists under `sources/<source-id>/original/`, run the full set below.
Extraction details: read `/paper-extract` when math or algorithms are broken, `_raw/` is missing or the main task, or Marker / OCR / arXiv math is in play.
Templates: `_templates/source-index.md`, `_templates/summary.md`. Also `_templates/study-note.md`, `_templates/question-bank.md`, `_templates/algorithm.md`, `_templates/repro-readme.md` as mode requires.
Replace every `{{...}}` in copied templates (`source-id`, `title`, `mode`, `date`). Do not copy unused placeholder text into real notes.
## Steps
1. Confirm `source-id` and `mode` (`study` / `survey` / `both`). Ask if unspecified
2. Confirm extraction inputs (`/paper-extract`)
- If `_raw/` exists, use it as the primary input
- If missing, ask the user to run Marker (full text); for math, use the reference priority (arXiv source first). Continue only after inputs are ready
- Do not full-read the PDF to fill `extracted/` (short checks and missing-page fills only)
3. Normalize `_raw/` into section chunks `extracted/NN-<section-slug>.md`
- About 300–500 lines per file
- Add block IDs per `/paper-extract` (one ID = one block; unique in the file)
- Figures/tables: captions only; note "See original for figure"
- Do not change meaning. Mark doubtful extractions with `[extraction uncertain]`
- For survey/both, if math or algorithms are broken, follow `/paper-extract` (arXiv source → Mathpix → page image + vis