/oh-my-claudecode-research:literature-sweep runs instead · from oh-my-claudecode-research
Searches CrossRef/OpenAlex for papers on a topic, dispatches curator instances to read and summarize them, verifies citations, and writes verified entries to references.bib and a CSV. Supports parallel fan-out for speed.
This skill never runs in Claude Code
It ships in oh-my-claudecode-research at skills/, but /oh-my-claudecode-research:literature-sweep (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
This engine is the parallel-dispatch worked example: the first OMCR engine that fans out across several @literature-curator instances in a single message and then re-collects their work. The other Phase 2 engines (/respond-reviewer, /figure-bake, /outline-expand) all reference this skill's phase 03 for the parallel-dispatch pattern.
If you are reading this because Claude Code's skill auto-discovery surfaced it: invoke it via /literature-sweep <topic>. Do not hand-edit references.bib, the summary CSV, or .claude/omcr-state/citations.json while a run is in flight.
When this skill is invoked, immediately execute the workflow below. Do not only restate or summarize these instructions back to the user.
/literature-sweep <topic> [--n N] [--depth basic|deep] [--source crossref|openalex|both] [--parallel P]
| Flag | Default | Purpose |
|---|---|---|
--n | 20 | Target number of verified entries (final). Phase 02 pulls 3 * N candidates; phase 04 dedupes and trims; phase 05 verifies. |
--depth | basic | basic extracts title/authors/year/venue/abstract. deep adds a per-entry curator dispatch for methodology + key findings. |
--source | both | crossref | openalex | both. both queries each source and merges. |
--parallel | 1 | Phase 03 concurrent curator instances. Clamped to 1 ≤ P ≤ 4 (Phase 2 decision §1). Phase 01 warns and clamps values > 4; aborts on < 1. |
Examples:
/literature-sweep "neural manifolds in motor cortex" — defaults: 20 entries, basic depth, both sources, sequential./literature-sweep "diffusion models for protein design" --n 30 --parallel 4 — 30 entries, four curator instances in parallel./literature-sweep "transformer attention sparsity" --depth deep --source crossref — deeper extraction, CrossRef only, sequential.phase 01 — precheck (validate topic, ping APIs, resolve bib + CSV paths, clamp --parallel)
phase 02 — search (CrossRef and/or OpenAlex → 3N candidates, dedupe by DOI)
phase 03 — parallel-read (@literature-curator × P, each handles a batch — BibTeX + CSV row per paper)
phase 04 — deduplicate (merge batches, dedupe by DOI, score, trim to N)
phase 05 — verify (verify-citation skill per survivor — HARD GATE)
phase 06 — finalize (append to references.bib + CSV; write citations.json.last_sweep; append to _run-log.jsonl)
Phases 02–05 form the read-then-verify pipeline. Unlike /iterate-revision, there is no inner loop — each phase runs once. The parallel concurrency lives entirely in phase 03 and is transparent to phases 04 and 05.
Execute phases sequentially. For each phase, read the linked file and follow its instructions exactly.
phases/01-precheck.md.phases/02-search.md.phases/03-parallel-read.md.phases/04-deduplicate.md.phases/05-verify.md.phases/06-finalize.md.This engine imports the following primitives from skills/orchestrate/:
phases/01-state-read.md — read citations.json in phase 01 (bootstrap if missing) and re-read in phase 06 for the durable last_sweep write.phases/02-dispatch.md — dispatch @literature-curator. Phase 03 uses it in two shapes: a single sequential call per batch when --parallel 1, or multiple concurrent calls in one assistant message when --parallel > 1 (Claude Code Agent-tool parallel invocation).phases/04-loop.md — used only for the _run-log.jsonl phase: "start" + phase: "end" records and run_id generation. There is no inner iteration loop in this engine (one shot, not iterative), so phase 04 of orchestrate is invoked with max_iter = 1 and a trivial always-after-n verdict rule that emits DONE immediately. The real engine logic lives in phases 02–06 here, not inside the loop body.This engine does not import orchestrate/phases/03-evaluate.md — there is no severity-threshold verdict to compute. The verification gate in phase 05 is a hard pass/fail per entry, not an aggregate verdict over the run.
verify-citationPhase 05 calls the standalone skills/verify-citation/SKILL.md skill once per surviving entry (after phase 04's dedupe), via its --doi <doi> mode (we have a DOI by then; we are not auditing an existing BibTeX file). The skill returns one of PASS | MISMATCH | NOT_FOUND | NOT_VERIFIED per entry.
The hard gate (Phase 2 decision §1, locked):
PASS → entry is added to references.bib and to the summary CSV; recorded in citations.json.verified.MISMATCH / NOT_FOUND / NOT_VERIFIED → entry is rejected; recorded in citations.json.last_sweep.rejected with reason. Never written to references.bib.The user reviews citations.json.last_sweep.rejected after the run and decides whether to manually rescue any rejected entries (typo in DOI, network outage, etc.).
Per-entry cost is dominated by:
@literature-curator dispatch per --parallel-batch in phase 03 (handles up to 3N / P candidates per dispatch).verify-citation call per surviving entry in phase 05 (cheap; a single HTTP roundtrip per source, stdlib-only Python).--depth deep (rough cost doubling for the dispatch portion).With --n 20 --parallel 1 --depth basic: ~1 curator dispatch over 60 candidates + 20 verify-citation calls. The frontmatter cost_estimate_tokens: 50000 is the coarse upper bound for /supervisor-drive budget gating (Phase 3 §6); actuals land in _run-log.jsonl post-hoc per Phase 0 decision §6.
--parallel 4 does not multiply token cost — the work is sharded, not duplicated — but it does multiply concurrent token throughput, which is the relevant constraint for the runtime's rate limiter.
From develop/phase-2-decisions.md §1:
--parallel defaults to 1. Power users opt in.> 4; aborts on < 1.citations.json.last_sweep.notes. No in-loop retry; the user can re-run with --parallel 1 if they want a clean sequential pass.references.bib. Always recorded in citations.json.last_sweep.rejected with a reason so the user can audit.verify-citation before being added — by construction, fabricated DOIs cannot pass.bucket, our_use, or cited_sections columns in the summary CSV. Those are human-curated columns that the literature-curator agent leaves blank in a sweep; the user (or a later curator pass keyed to a specific manuscript section) fills them./iterate-revision, /respond-reviewer, /figure-bake, or /outline-expand. Engines are leaves (Phase 2 decision §5).[CITE: ...] placeholders inside the manuscript. That is the standalone @literature-curator agent's day-job. /literature-sweep is about building a bibliography, not patching a specific placeholder./sync afterward if you want a commit-and-push snapshot.citations.json.last_sweep.topic and the user re-runs the same topic → the engine still runs. Newer candidates may exist on CrossRef/OpenAlex since the last sweep; dedupe against the BibTeX file (not against last sweep) ensures no double-adds.references.bib (case-insensitive) → phase 03 / 04 skip it, count it toward the --n target, and the curator dispatch never re-extracts it. The summary CSV row is left as-is.citations.json.verified (from a prior sweep) but missing from references.bib (e.g., user hand-edited the bib) → treated as new; re-verified; re-added.notes: "API <name> unreachable; partial result" in last_sweep. Any entries that did verify are still added.../orchestrate/SKILL.md — the 4 primitives this engine composes.../verify-citation/SKILL.md — the standalone verifier called from phase 05.../iterate-revision/SKILL.md — pattern reference; voice and structure of this skill mirror it.../../agents/literature-curator.md — the primary dispatched persona; phase 03 inlines its body via orchestrate/phases/02-dispatch.md.../../develop/example-state/README.md — citations.json schema reference, including the last_sweep block this engine writes.../../develop/phase-2-additional-engines.md — full design rationale (Engine 2).../../develop/phase-2-decisions.md — locked decisions §1 (concurrency).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./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./orchestrateInternal primitive skill — engine skills compose these four phases. Not invoked directly by the user. Provides state-read, dispatch, evaluate, and loop primitives over `.claude/omcr-state/` so that engines (`/iterate-revision`, `/literature-sweep`, `/respond-reviewer`, `/figure-bake`, `/outline-expand`, `/supervisor-drive`) can be expressed as a small composition declaration instead of bespoke code.Other plugins' skills for the same job