Arxiv summarizer orchestrator

From lxyeternal/MalSkillBench · View interactive version

Arxiv summarizer orchestrator is an AI agent skill from the GitHub repository lxyeternal/MalSkillBench. End-to-end orchestration skill for periodic arXiv collection and reporting using three sub-skills: arxiv-search-collector, arxiv-paper-processor, and arxiv-batch-reporter. Supports manual language control across all markdown outputs and Stage-B processing strategy (`subagent_parallel` default max 5,

How to use this skill

Skill file

ArXiv Summarizer Orchestrator

Run the full pipeline by composing three sub-skills.

Sub-skill Order

  1. arxiv-search-collector
  2. arxiv-paper-processor
  3. arxiv-batch-reporter

Workflow Parameters

Workflow

Stage A: Collection Setup + Query Retrieval

  1. Initialize one run with arxiv-search-collector/scripts/init_collection_run.py.
  2. Model generates multiple focused queries from original topic and writes a minimal query_plan.json (label + query only).
  3. Run arxiv-search-collector/scripts/fetch_queries_batch.py with the plan file (recommended).
  4. (Optional fallback) call arxiv-search-collector/scripts/fetch_query_metadata.py manually for one-by-one fetch.
  5. Model reads each indexed query list and decides keep indexes.
  6. Merge selected items with arxiv-search-collector/scripts/merge_selected_papers.py.
  7. If relevance/coverage is still not good, iterate Stage A:

Pass --language <LANG> to collector scripts so all generated markdown files in Stage A follow the selected language.

Use serial query fetch in Stage A with conservative controls (for example --min-interval-sec 5, --retry-max 4).

Default collector settings already include retries/backoff and run-local throttle state (<run_dir>/.runtime/arxiv_api_state.json), so manual tuning is usually unnecessary.

Prefer cache reuse (no --force) unless query parameters changed or data refresh is required.

Output: one run directory with per-paper metadata subdirectories.

Stage B: Per-paper Artifact Download + Manual Summary

For each paper directory, invoke sub-skill arxiv-paper-processor once and let that skill produce <paper_dir>/summary.md.

Recommended pre-step for many papers:

  1. Run one batch artifact download before per-paper reading:
python3 arxiv-paper-processor/scripts/download_papers_batch.py \
  --run-dir /path/to/run \
  --artifact source_then_pdf \
  --max-workers 3 \
  --min-interval-sec 5 \
  --language <LANG>

Per-paper execution steps (inside arxiv-paper-processor):

  1. If <paper_dir>/summary.md already exists and is complete, skip this paper.
  2. If usable source (source/source_extract/*.tex) or PDF (source/paper.pdf) already exists, skip download.
  3. If artifacts are missing, download source with arxiv-paper-processor/scripts/download_arxiv_source.py.
  4. If source is unusable, download PDF with arxiv-paper-processor/scripts/download_arxiv_pdf.py.
  5. Model reads content and manually writes <paper_dir>/summary.md by reference format, in language.

Parallel strategy for many papers:

Output: all paper directories contain summary.md.

Stage C: Bundle + Final Hierarchical Report

  1. Run arxiv-batch-reporter/scripts/collect_summaries_bundle.py --language <LANG>.
  2. Model reads summaries_bundle.md and writes collection_report_template.md in base dir.
  3. In template, each paper leaf entry must include one standalone placeholder line: {{ARXIV_BRIEF:<arxiv_id>}}.
  4. Run arxiv-batch-reporter/scripts/render_collection_report.py to generate final collection_report.md.
  5. Do not manually paraphrase per-paper conclusion lines in final report; they must come from per-paper summary.md section 10 via script injection.

If language is non-English (for example Chinese), all intermediate markdown files and final reports should follow that language.

Periodic Scheduling

This orchestrator is suitable for cron/scheduled execution in OpenClaw:

Output Layout

<output-root>/<topic>-<timestamp>-<range>/

Use references/workflow-checklist.md as execution checklist.

Related Skills

This is the top-level orchestration skill.

Before using it, install and enable these three sub-skills:

Execution order inside this orchestrator:

  1. arxiv-search-collector (Stage A)
  2. arxiv-paper-processor (Stage B)
  3. arxiv-batch-reporter (Stage C)
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.