section-writing-agent

Generate missing LaTeX paper sections with verified citations and booktabs tables.

2|1|Updated Apr 19, 2026
One-click install
npx skills add https://github.com/raja21068/AutoResearch --skill section-writing-agent-raja21068
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: section-writing-agent
Source: https://github.com/raja21068/AutoResearch/tree/main/skills/paper-pipeline/section-writing-agent
Command: npx skills add https://github.com/raja21068/AutoResearch --skill section-writing-agent-raja21068

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Producing coherent Methods/Experiments/Conclusion LaTeX sections from messy research inputs is time-consuming and error-prone, especially when tables and figure references must be accurate and compile cleanly.

Core Features & Use Cases

  • One multimodal drafting pass: Generates the remaining sections (Abstract, Methodology, Experiments, Conclusion) plus integrates figures and citations without splitting the work across multiple LLM calls.
  • Grounded table creation: Extracts numeric metrics from workspace/inputs/experimental_log.md into LaTeX booktabs tables so values are not hallucinated.
  • Template-safe merging: Preserves the already-filled Intro + Related Work in workspace/drafts/intro_relwork.tex verbatim while compiling the complete manuscript into workspace/drafts/paper.tex.
  • Deterministic validation gates: Runs citation orphan checks, LaTeX structural sanity checks, and anti-leakage validation before finalizing output.

Quick Start

Use the agent to fill the remaining paper sections when the orchestrator delegates Step 4 by providing a workspace that includes outline.json, intro_relwork.tex, experimental_log.md, figures, and refs.bib, then run the full Step 4 writing-and-gate flow so workspace/drafts/paper.tex is produced.

Frequently Asked Questions about section-writing-agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate LaTeX methodology and experiments sections from research logs?

To generate LaTeX methodology and experiments sections, the agent drafts missing manuscript parts by extracting numeric metrics from experimental logs into booktabs tables and integrating verified citations from refs.bib in a single multimodal LLM call.

What is the best way to compile a complete LaTeX paper when only the intro and related work are finished?

Compiling a complete LaTeX paper from an existing intro and related work is handled by template-safe merging, which preserves the filled intro_relwork.tex verbatim while appending drafted Abstract, Methodology, Experiments, and Conclusion sections into a final paper.tex file.

How do I prevent citation errors and hallucinated data when writing paper sections?

To prevent citation errors and hallucinated data during paper writing, the agent applies deterministic validation gates including strict citation-key resolution against refs.bib, grounded metric extraction from logs, and post-generation anti-leakage checks.

Can I integrate figures into LaTeX sections without splitting the work across multiple LLM calls?

Integrating figures into LaTeX sections without multiple LLM calls is supported by a single comprehensive multimodal drafting pass that processes workspace figures, experimental logs, and citations together to produce the final manuscript.

Does the paper section drafting process require a specific workspace folder structure?

The paper section drafting process requires a workspace containing outline.json, intro_relwork.tex, experimental_log.md, figures, and refs.bib to execute the writing-and-gate flow and produce the compiled draft.

What happens if a citation key in my LaTeX draft does not match the refs.bib file?

If a citation key in the LaTeX draft does not match refs.bib, the deterministic validation gate flags the orphaned citation during the post-generation sanity check, preventing the manuscript from finalizing with unresolved references.