Converts structured prose and research outputs into publication-ready LaTeX manuscript sections for a formal theory paper. Use when drafting, revising, or formatting paper sections (.tex files), when converting context artifacts (literature_review.md, model_equations.md) into LaTeX, when checking that text matches quantitative results in tables or figures, or when ensuring manuscript consistency with top-journal conventions. Also use when asked to "write the introduction", "draft a section", "format for LaTeX", "check the manuscript", or "convert to tex". Do NOT use for literature analysis (use literature-review-deep), model derivation (use economic-model-builder), or evaluation/scoring (use self-critique).
Produce publication-ready LaTeX manuscript sections for a formal theory paper targeting a top-5 journal in the relevant field. This skill is the final conversion layer: it takes structured prose and research outputs from upstream agents and produces .tex files that compile cleanly and meet top-journal conventions.
This skill does not perform research, derive models, or evaluate quality. It writes and formats.
Depending on which section is being written, read the relevant subset:
context/planning/paper_structure.md — section-by-section map from the Research Director (always read first)context/research_context.md — the permanent project specificationcontext/planning/research_plan_final.md — the finalised research plancontext/literature/review.md — structured prose literature review from the Literature Guardiancontext/literature/threat_map_final.md — for introduction framing and differentiatorscontext/model_equations.md — formal derivations and propositions from the Theory Buildercontext/evaluator_feedback.md — final evaluator notes (for addressing anticipated referee concerns)paper/sections/*.tex — any existing sections (for cross-referencing and consistency)paper/figures/ and paper/tables/ — for results sectionsAlways start by reading context/planning/paper_structure.md. This defines what each section must contain and how sections connect. Do not invent section structure; follow the map.
Determine which section is requested. The expected paper structure is defined in context/planning/paper_structure.md. A typical layout is:
paper/sections/
├── introduction.tex
├── literature.tex
├── model.tex
├── [section_name].tex # one file per model component / channel
├── ...
├── extensions.tex
├── empirics.tex
└── conclusion.tex
Each section has different source material and different conventions. See the section-specific guidance below.
Write LaTeX that compiles cleanly and reads as top-journal prose. Follow all style rules and LaTeX conventions specified below.
After writing the section, re-read it with one question: "If I cut this sentence, does the reader lose anything they need?"
Apply these rules before proceeding:
Section word-count targets (treat as hard ceilings, not aspirations):
Before finalising any section:
\cite{} keys exist (or flag missing entries for the human)context/model_equations.md\ref{}, \eqref{}) point to valid labelsSource material: threat_map_final.md (differentiators), research_plan_final.md (contributions), research_context.md (mechanism overview)
Structure:
Rules:
Source material: context/literature/review.md (the Literature Guardian's structured prose)
Task: Convert the prose into LaTeX. The analytical structure is already defined in the source file. Do not reorganise or rewrite the argument; format it.
Rules:
literature_review.md\citet{} (in-text) or \citep{} (parenthetical) as appropriateSource material: context/model_equations.md, context/research_context.md
Task: Write the prose that surrounds the formal derivations. The equations and propositions come from the Theory Builder; this skill writes the setup, motivation, interpretation, and discussion around them.
Structure per component section:
\begin{proposition}...\end{proposition}Rules:
align or equation environments with \label{eq:...}\label{prop:...}model_equations.md exactly; do not rename variablesSource material: research_plan_final.md (extension descriptions), model_equations.md (if formal results exist)
Rules:
Source material: research_plan_final.md, paper/figures/, paper/tables/
Rules:
\input{} to include tables generated by the Empirical AgentRules:
research_context.md honestlyThese rules apply to all sections.
\citet{author2024} when the author is the grammatical subject: "\citet{smith2024} show that..."\citep{author2024} for parenthetical references: "...as shown in prior work \citep{smith2024}"\citet{author2024a, author2024b} for multiple in-text citations\citet{} or \citep{}\begin{equation}...\end{equation} for single equations, \begin{align}...\end{align} for multi-line\label{eq:descriptive-name}\text{} inside math for subscript words: $c_{\text{P}}$ not $c_P$\left( and \right) for expressions that vary in height\max, \min, \arg\max, \mathbb{E} (never italic versions)\section{}, \subsection{} — never \paragraph{} or manual bold headers\begin{table}[t] with \caption{} above the tabular, \label{tab:...} inside the caption\begin{figure}[t] with \caption{} below, \label{fig:...} inside the caption\begin{proposition}[Short title]\label{prop:...} followed by \begin{proof} if proof is included\textbf{} for emphasis in running text; use italics sparingly or restructure the sentence\footnote{} for tangential points; keep footnotes shortBefore producing any .tex file, verify:
\cite key appears in the BibTeX file (or flag as missing)\ref and \eqref points to a defined \labelmodel_equations.md (variable names, subscripts, operator conventions)One or more .tex files in paper/sections/, written to or updated in place.
This skill produces LaTeX source only. It does not compile the document. If the project uses a build system (Quarto, Makefile, justfile), compilation is handled separately.
Do not:
model_equations.md)\textbf{} for section-like headers within the body text\cite{???} placeholders without flagging them for the human