Latex paper survey writer

From FOURTEEN1416/academic-agent-toolkit · View interactive version

Latex paper survey writer is an AI agent skill from the GitHub repository FOURTEEN1416/academic-agent-toolkit. Writes ML/AI review and survey papers for arXiv using the IEEEtran LaTeX template with verified BibTeX citations.

How to use this skill

Skill file

<!--ACAT-ADAPTED: 资产补齐自 yunshenwuchuxun/latex-paper-skills@d0f106108cb0(arxiv-paper-writer + _shared),正文未改。溯源见 references/UPSTREAM.md。2026-09-09 专项治理。-->

ML/AI Review Paper Workflow (IEEEtran template)

Prerequisites

When to Use

When NOT to Use

Role in the Paper Stack

Inputs

Outputs

Conventions: run python3 scripts/... from this skill folder (where scripts/ lives); <paper_dir> is the paper/project root (contains main.tex, ref.bib, paper.config.yaml, plan/, issues/, notes/). Paths like plan/... are under <paper_dir>. For arXiv discovery/metadata/BibTeX, use scripts/arxiv_registry.py (no ad-hoc curl/wget). Use scripts/source_ranker.py, scripts/citation_policy.py, and scripts/style_profile.py for source-quality, venue-policy, and style-profile workflows.


Gated Workflow

Tip: Run python3 scripts/<script>.py --help before use.

Open reference files only when a step calls them out.

Non-Negotiable Rules

  1. No prose in main.tex until plan approved AND issues CSV exists.
  2. First deliverable: research snapshot + outline + clarification questions + draft plan.
  3. Use plan + issues tracking for all new papers; do not opt out.
  4. Issues CSV is the execution contract; update Status and Verified_Citations per issue, and add/split/insert issue rows when scope grows (do not do untracked work).
  5. Template is fixed: use IEEEtran two-column layout (assets/template/IEEEtran.cls).

Treat two-column width as a layout constraint (use two-column floats when needed).

Gate 0: Research Snapshot + Draft Plan

  1. Confirm constraints (venue, page limit, author block, date range).
  2. Translate the topic into search keywords and run a light discovery pass:

10-20 key papers (see references/research-workflow.md). After step 4 (once <paper_dir> exists), cache arXiv discovery with arxiv_registry.py search.

  1. Propose 2-4 candidate titles aligned to the topic.
  2. Scaffold the project folder and draft plan:

```bash

python3 scripts/bootstrap_ieee_review_paper.py --stage kickoff --topic "<topic>"

```

For a lighter entrypoint that still creates paper.config.yaml and a draft plan, use:

```bash

python3 scripts/bootstrap_ieee_review_paper.py --stage outline --topic "<topic>"

```

This copies LaTeX templates from assets/template/; plan/issues are generated from templates in assets/.

Initialize arXiv registry (once): python3 scripts/arxiv_registry.py --project-dir <paper_dir> init.

  1. Create a framework skeleton in main.tex

(section headings + 2-4 bullets per section + seed citations; no prose).

  1. Update the plan file to reflect the framework, proposed titles, and section/subsection plan.
  2. Compile early: python3 scripts/compile_paper.py --project-dir <paper_dir> --check-warnings

Fix any Overfull \hbox warnings (see Layout Hygiene below).

  1. Return to user:
  1. STOP until user approves.

Gate 1: Create Issues CSV (after approval)

  1. Check kickoff gate in plan: - [x] User confirmed scope + outline in chat.
  2. Create issues CSV (script refuses if gate unchecked):

```bash

python3 scripts/bootstrap_ieee_review_paper.py --stage issues --topic "<topic>" --with-literature-notes

```

  1. Validate:

```bash

python3 scripts/validate_paper_issues.py <paper_dir>/issues/<timestamp>-<slug>.csv

```

  1. If literature notes are enabled, keep short summaries and (optional) abstract snippets to avoid re-search.
  2. The plan may evolve; add/split/insert issues as needed, re閳ユ唺alidate after edits, and keep going until all issues (including inserted ones) are DONE or SKIP (when feasible, in the same run).

Phase 1.5: Literature Enrichment Gate

Before starting the writing loop, ensure citation coverage is adequate for a

review/survey paper. Review papers require substantially more references than

empirical papers.

  1. Gather candidates: collect papers from initial discovery, spine set,

and sub-area searches. Aim for 50-80 candidate entries in ref.bib.

  1. Sub-area coverage: for each Related Work subsection (from the outline

contract or framework skeleton), verify ≥ 5 cited papers. If any sub-area

has fewer, search for additional papers in that cluster.

  1. Seminal work: for each major research thread in the taxonomy, verify

at least 1 foundational/seminal paper (pre-2020) is cited alongside

recent work. Review papers that cite only recent work look shallow.

  1. Key method citations: every method, algorithm, or benchmark mentioned

by name in the outline must have a corresponding ref.bib entry.

  1. Quality screening: verify and filter all citations via the standard

verification pipeline (arxiv_registry.py → source_ranker.py →

citation_policy.py). Remove entries that fail verification, are

duplicates, or are Tier C (low-quality) sources unless no better

alternative exists for that claim.

  1. Gate (post-screening): do not start W1 until ref.bib has

≥ 30 verified entries after screening. Target 60-80 for the

finished paper (additional citations are added during Phase 2 writing).

Every Related Work sub-area must still have ≥ 5 verified citations

after screening. If the gate fails, return to enrichment (repeat

steps 2-5) before proceeding.

Phase 2: Per-Issue Writing Loop

For each writing issue in the CSV:

  1. Research: 8-12 section-specific papers.
  2. Write: Never 3 sentences without citations; varied paragraph rhythm

(see references/writing-style.md).

For section intent and structure, use references/template-usage.md.

  1. Visualize: Match content triggers (see references/visual-templates.md).

Prioritize single-column sizing; use double-column spans only when necessary (see Layout Hygiene).

Cite externally sourced figure content.

  1. Verify: Web search + open source page (and PDF if available) before adding to ref.bib.

For arXiv entries, append BibTeX via python3 scripts/arxiv_registry.py --project-dir <paper_dir> export-bibtex <arxiv_id> --out-bib <paper_dir>/ref.bib.

For a per-issue shortcut with stable cite keys, use python3 scripts/issue_workflow.py --project-dir <paper_dir> append-bibtex --issue-id <Wx> <arxiv_id> [<arxiv_id> ...].

  1. Update: Mark issue DONE with Verified_Citations count.

To sync Verified_Citations from actual section citations, run python3 scripts/issue_workflow.py --project-dir <paper_dir> sync-verified --issues <issues.csv>.

  1. Compile after meaningful changes; fix Overfull \hbox before marking DONE.

Phase 2.2: Issue Execution Helpers

Phase 2.5: Rhythm Refinement

After all writing issues are DONE, refine prose section-by-section using the latex-paper-prose-rhythm skill. This step varies sentence/paragraph lengths and removes filler phrases while preserving all citations.

Phase 3: QA Gate

  1. Run internal QA checklist (see references/quality-report.md).
  2. Audit source quality and venue policy:
  1. Compile; ensure no Overfull \hbox warnings in main.log.
  2. Deliver main.tex, ref.bib, figures, and main.pdf.

Existing Paper Workflow (No Re-Scaffold)

If a paper folder already exists, do NOT rerun scaffold:

# Create plan
python3 scripts/create_paper_plan.py --topic "<topic>" --stage plan --output-dir <paper_dir>
# STOP for approval, then check kickoff gate box
# Create issues (use timestamp/slug from plan filename/frontmatter)
python3 scripts/create_paper_plan.py --topic "<topic>" --stage issues --timestamp "<TS>" --slug "<slug>" --output-dir <paper_dir> --with-literature-notes

Citation-Validation Variant

  1. Treat provided path as LaTeX project root.
  2. Follow references/citation-workflow.md.
  3. Use references/bibtex-guide.md for BibTeX rules if entries need repair.
  4. Deliver validation report and corrected ref.bib if requested.

Success Criteria

Compilation: python3 scripts/compile_paper.py --project-dir <paper_dir> --check-warnings --fail-on-warnings (exit 0). Use --report-page-counts for main-text page count.

Quality Metrics:


Safety & Guardrails

Layout Hygiene

Fix Overfull \hbox warnings before marking issues DONE:


Issues CSV Schema

| Phase | Issues |

|-------|--------|

| Research | Rx: discovery, scaffolding, framework, viz planning |

| Writing | Wx: each section with Section_Path, Source_Policy, target citations, and visualization |

| Refinement | RFx: apply latex-paper-prose-rhythm skill (after all Wx DONE) |

| QA | Qx: citation verification, QA checklist, compilation, final review |

Status: TODO -> DOING -> DONE. Schema validated by validate_paper_issues.py.

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.