Generate the Methodology section of a LaTeX research paper from architecture notes and method descriptions. Trigger when the user says "write methodology", "generate method section", "describe the approach", "write system design", or asks to explain how the system works in paper format. Outputs to sections/methodology.tex.
After the user has a clear understanding of their method — either from reproduction notes or from designing a new approach.
Ask the user for:
Opening paragraph (3-4 sentences) High-level overview of the full pipeline. A reader should understand the entire approach from this paragraph alone before diving into subsections.
Subsection: Problem Formulation
Subsection per major component For each component of the pipeline:
Subsection: Key Design Decisions (optional) If there are non-obvious choices, explain them with brief justification.
For algorithms:
\begin{algorithm}[t]
\caption{Algorithm Name}
\label{alg:name}
\begin{algorithmic}[1]
\REQUIRE Input description
\ENSURE Output description
\STATE Step 1
\STATE Step 2
\IF{condition}
\STATE Step 3
\ENDIF
\RETURN result
\end{algorithmic}
\end{algorithm}
For equations:
\begin{equation}
\text{score}(p) = \alpha \cdot f(p) + (1-\alpha) \cdot g(p)
\label{eq:scoring}
\end{equation}
For figures:
\begin{figure}[t]
\centering
\includegraphics[width=\linewidth]{figures/pipeline.pdf}
\caption{Overview of our approach. [Describe what each part shows.]}
\label{fig:pipeline}
\end{figure}
\paragraph{Step 1: Name.} for fine-grained structure within subsectionsWrite to sections/methodology.tex. Git add, commit, push.