/oh-my-claudecode-research:paper-ingestfrom oh-my-claudecode-research
Ingests research papers into a project's two-folder reading library by accepting PDF paths, DOIs, or URLs, then summarizes, indexes, and optionally writes project-usage notes.
Ships in oh-my-claudecode-research. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Turn a paper into a clean record in the project's reading library, and (if relevant) a
project-usage note. Reading is the notes layer — separate from the manuscript
references.bib that literature-curator owns; a paper can be recorded here without ever
being cited. Default to English for the written records and the user-facing status
report; override the language via the project CLAUDE.md.
Resolve config in priority order: env var → project CLAUDE.md ## Research stack block → default.
| Setting | ## Research stack key | Env var | Default |
|---|---|---|---|
| Library root | Paper library dir | PAPER_LIBRARY_DIR | docs/papers/ |
| Bucket vocabulary | Paper buckets (comma-separated) | PAPER_BUCKETS | free-form (one-word tag) |
Paths below are written relative to the library root. On first run, if the library
root does not exist, scaffold it by copying the plugin template
templates/paper-library/ (its bibliographic-management/
with _TEMPLATE.md, index.csv header, figs/.gitkeep, and the root _TEMPLATE.md + README.md).
| Folder | Role | Template |
|---|---|---|
<library root>/bibliographic-management/<file>.md | Paper record — project-agnostic: what it is, claims, method, result, main figure | bibliographic-management/_TEMPLATE.md (A) |
<library root>/<file>.md | Project usage — only for relevant papers: how we cite/use it, links back to the record | <library root>/_TEMPLATE.md (B) |
<library root>/bibliographic-management/index.csv | flat index of all papers (relevant or not) | — |
The manuscript BibTeX file (## Research stack, default <Manuscript dir>/references.bib)
is a separate surface — do not write BibTeX here.
YYYY-firstauthor-keyword.md, lowercase, hyphen (e.g. 2022-smith-graph-attention.md). bibkey = firstauthorYYYY (e.g. smith2022).Paper buckets vocabulary; if none is configured, pick a short, distinctive one-word tag and reuse it consistently.to-read | skimmed | read.pdf_to_assets.sh.bash skills/paper-ingest/pdf_to_assets.sh "<pdf-path>"
It prints an out_dir holding text.txt (body text to read) and page-NN.png (low-res page renders for figure scouting). Read text.txt with the Read tool.verify-citation skill (CrossRef + OpenAlex → authors, title, year, venue, abstract). Summarize from the abstract; skip the figure step.Guard: if pdf_to_assets.sh reports poppler missing, surface the error and stop — do not fabricate a summary. If a DOI won't verify, write the summary but leave doi blank and flag it in the report.
From the metadata: bibkey = firstauthorYYYY, filename YYYY-firstauthor-keyword.md. Pick a short, distinctive keyword from the title.
Copy the shape of <library root>/bibliographic-management/_TEMPLATE.md. Fill the top table, ## One-line, ## Key claims, ## Method, ## Result, ## Key terms. Keep it tight — claims you'd actually use, not a full abstract dump. Write to <library root>/bibliographic-management/<file>.md.
Scout the page-NN.png renders, choose the single most representative figure, find its page + pixel region, then crop at higher resolution:
bash skills/paper-ingest/pdf_to_assets.sh --crop "<pdf>" <page> <x> <y> <W> <H> \
"<library root>/bibliographic-management/figs/<bibkey>-figN.png" 200
Coords are pixels at the crop dpi (200). Embed it under ## Main figure with a one-line What it shows. (Region-finding: render the page once at 200 dpi, read it, estimate the box; the cropfig band heuristic in skills/cropfig/crop_bounds.py is available if a simple region crop isn't clean enough.)
python3 skills/paper-ingest/update_index.py --csv "<library root>/bibliographic-management/index.csv" \
--bibkey <bibkey> --year <YYYY> --first_author "<Lastname I>" \
--title "<title>" --venue "<venue>" --doi <doi-or-blank> \
--bucket <bucket> --status <status> --in_project no \
--pdf "<pdf-path-or-—>" --figure "figs/<bibkey>-figN.png-or-—" \
--added_on "$(date +%F)"
Idempotent on bibkey (re-running updates in place). Leave relevance=—, in_project=no for now.
Decide whether the paper bears on the project's narrative — read CLAUDE.md ## Project context (hypothesis / topic / narrative spine). Assign a bucket. Report the verdict + rationale to the user and ask whether to create the <library root>/ usage note. Do not create it unprompted.
On yes:
<library root>/<file>.md from Template B — fill ## Why it's relevant, ## How we cite & use it (we-cite-for / position support|contrast / cited-in section / what-we-borrow-or-extend), ## Connections to our analyses. Link the record in the top table.update_index.py --bibkey <bibkey> --in_project yes --relevance "intro;R3" --status <status>.Never overwrite an existing <library root>/<file>.md without explicit confirmation.
State what was created/updated with paths, the relevance verdict, and the next-step prompt. Example shape:
📄 <Author YEAR> ingested
- record: <library root>/bibliographic-management/<file>.md (+ figs/<bibkey>-figN.png)
- index.csv: <inserted|updated> (bibkey=<bibkey>, bucket=<bucket>)
- relevance: <relevant to intro/R3 because … | low direct relevance to this project>
- create project-usage note (<library root>/)? → (awaiting confirmation)
pdf_to_assets.sh — poppler wrapper: extract mode (text + page renders) and --crop mode (figure region → PNG).update_index.py — idempotent bibkey upsert into index.csv (pure stdlib; --csv required).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub youngeun1209/oh-my-claudecode-research --plugin oh-my-claudecode-research18 skills in this plugin
/cropfigThree-step pipeline from a Keynote (.key) or PowerPoint (.pptx) deck to manuscript + outline. Func 1 exports vector PDFs per slide; func 2 crops them (vector preserved) and renders an outline-grade PNG from the same cropped artifact; func 3 copies PDFs into the LaTeX manuscript figures dir and PNGs into the outline.md figures dir, then inserts/updates image links after each result heading./figure-bakeDrive one figure from design idea to manuscript-ready vector PDF + outline-ready PNG. Loops `@figure-descriptor` → `@analysis-implementer` → `@reviewer` against a single fig-id in `figures.json`, with the `cropfig` skill auto-invoked at the end of each implement phase to keep manuscript + outline artifacts in lockstep. The third Phase 2 engine — a 3-agent loop, more complex than `/iterate-revision`'s 2-agent loop, and the only Phase 2 engine that executes real code per iteration. Safe to re-run; safe to resume after BLOCKED or HALT./iterate-revisionRevise one manuscript section against the reviewer team until DONE, BLOCKED, or HALT. Loops `@paper-writer` ↔ `@reviewer` with a venue-specific reviewer brief, recording every iteration's issues + verdict to `reviews.json` and updating `paper.json.sections[name]` status / iter. The first OMCR engine — a worked example of how to compose `skills/orchestrate/phases/*` primitives into a domain-specific loop. Safe to re-run; safe to resume after BLOCKED or HALT./literature-sweepFind, summarize, and verify N papers on a topic, then drop verified entries into `references.bib` and the literature summary CSV. Dispatches `@literature-curator` (one or many instances) over a CrossRef/OpenAlex candidate list, runs every survivor through the `verify-citation` skill, and writes the run summary to `citations.json.last_sweep`. Sequential by default; opt-in `--parallel N` (1 ≤ N ≤ 4) fan-out for speed. Safe to re-run; idempotent against duplicate DOIs (existing BibTeX entries are skipped, not double-added)./manuscript-scaffoldScaffold a LaTeX manuscript directory for a research project — copy the bundled skeleton (main.tex + sections/* + figures/ + references.bib + .gitignore + README), optionally apply a journal-specific documentclass from templates/journal-registry.json, optionally clone an Overleaf project and cache the Git credential helper (token never persisted to tracked files), commit on the default branch, and ask before pushing. Invoked by /start-research phase 6, but also standalone-callable when adding a manuscript dir to an existing project later./omcr-setupInstall OMCR infrastructure in a project — scaffold empty CLAUDE.md marker blocks (`## Project context` / `## Research stack` / `## Language preference`), create `.claude/agent-memory/` for the 6 core agents with canonical-template MEMORY.md, initialize empty `references.bib` + `references.csv`, and install a curated permission allowlist in `.claude/settings.json`. Does NOT ask about the user's research project (no working title / hypothesis / venue / preset interview). For that, run `/start-research` after this completes. Safe to re-run — never overwrites existing user content.Other plugins' skills for the same job