Latex paper results backfill

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

Latex paper results backfill is an AI agent skill from the GitHub repository FOURTEEN1416/academic-agent-toolkit. Back-fill verified experiment results into an existing empirical paper draft. Resolves placeholders, upgrades weak claims, and syncs numbers and figures.

How to use this skill

Skill file

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

Results Back-fill

Use this skill after latex-paper-empirical-writer has produced a draft with

placeholders and the user has run experiments outside the AI session.

When to Use

When NOT to Use

Inputs

Outputs

Non-Negotiable Rules

  1. No fabrication: Only use data from actual result files. Never invent numbers.
  2. Verify before claiming: Only upgrade (hypothesis) to factual claim when CSV data confirms the result.
  3. Bounded claims: Factual statements must include specific numbers from verified results (e.g., "reduces violations by 12.3%"), not vague improvements.
  4. Dependency enforcement: Follow the same dependency rules as latex-paper-empirical-writer — never mark DONE if dependencies are not DONE/SKIP.

Workflow

Phase 1: Results Discovery

  1. Read paper.config.yaml for runtime configuration.
  2. Scan paper/results/ for all CSV, JSON, and data files.
  3. Read notes/design/experiment-matrix.csv to identify all planned experiments.
  4. Match result files to experiment-matrix rows:

```bash

python3 scripts/discover_results.py --project-dir <paper_dir>

```

See references/backfill-workflow.md for naming conventions and the

assets/result-file-template.csv schema.

  1. If matches look correct, update the matrix in-place:

```bash

python3 scripts/discover_results.py --project-dir <paper_dir> --update-status

```

  1. Read the issues CSV and update Result_Status for matched experiment issues (E5-E8).

Phase 2: Paper Back-fill

Execute in order:

  1. Contribution upgrade:
  1. Results section fill:
  1. LaTeX table/figure generation:

```bash

python3 scripts/generate_results_table.py <results.csv> -o paper/results/<name>.tex --bold-best --caption "..." --label "tab:..."

```

  1. Figure resolution:
  1. Abstract (W0):
  1. Conclusion upgrade:
  1. Mark issues DONE:

Phase 3: Polish

  1. RF1 — Rhythm refinement:
  1. QA:

```bash

python3 ../latex-paper-survey-writer/scripts/citation_policy.py --project-dir <paper_dir> audit-bib

python3 ../latex-paper-survey-writer/scripts/citation_policy.py --project-dir <paper_dir> audit-tex --issues <issues.csv>

```

```bash

python3 ../latex-paper-empirical-writer/scripts/validate_empirical_paper_issues.py <issues.csv> --audit-tex <paper_dir>/main.tex

```

  1. Compile:

```bash

python3 ../latex-paper-survey-writer/scripts/compile_paper.py --project-dir <paper_dir> --check-warnings --fail-on-warnings

```

  1. Deliver main.tex, ref.bib, figures, and main.pdf.

Runtime Environment

Before running any script:

  1. Read paper.config.yaml → runtime.conda_env or runtime.python.
  2. If conda_env is set, activate it: conda activate <env_name>.
  3. If python is set, use that interpreter directly.
  4. If neither is set, ask the user which conda environment to use.

Relationship to Other Skills

latex-paper-from-zero
    ↓ routes to
latex-paper-empirical-writer (design + code + placeholder draft)
    ↓ user runs experiments
results-backfill (this skill: back-fill results + complete paper)

Success Criteria

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.