scientist-writeup
Generate or edit LaTeX / Markdown paper content directly from an existing experiment directory. Model output is produced by Copilot in-session; NEVER call workspace-custom model scripts.
Execution model
This is a Copilot-native model task. Copilot reads results, writes content, and edits LaTeX files; the terminal handles non-model commands like pdflatex.
Workflow
- Read the experiment directory, summary files, figures, and logs.
- Identify the user-supplied
latex/template.texor the existing draft. - Write or edit paper content directly in the editor.
- On user request, run
pdflatex/bibtexfor a compilation check. - Report the produced manuscript path, compilation result, and remaining gaps.
Verification before declaring completion
Before claiming the paper is drafted, you MUST produce one of:
- the file path + a short verbatim quote of new content,
- a
Readconfirmation that the new content is in the file, - a successful
pdflatexexit and the produced PDF path, - or an explicit "drafted but could not verify — here is what I have so far."
A turn that ends with "the paper is drafted" without one of the above is a failure mode.
Input
folder: experiment directoryfolder/latex/template.tex: user-provided template entry- Figures, summarized results, citation info, and target-layout requirements
Output
- Edited LaTeX / Markdown files
- Compiled PDF path (if compilation was run)
- List of unmet prerequisites
Operating principles
- Confirm the template and dependency files exist before writing.
- Write from real experimental results; NEVER fabricate conclusions or citations.
- When the user only wants a text draft, do not force a PDF compile.
Forbidden
- NEVER call any workspace-custom writeup model pipeline.
- NEVER use custom model calls in workspace code to generate paper text.
Deliverable requirements
- Name which paper files were edited.
- If compilation fails, return the real LaTeX error summary.
- If conclusions still lack experimental support, name the missing results explicitly.