18-writeup — Claude Code prompt: what it does, how to install
18-writeup drafts academic research papers in LaTeX across 12 focused passes, grounding every claim in workspace evidence without guessing.
no license ★ 240 updated 2026-09-18
.claude/commands/18-writeup.mdWhat 18-writeup does
This prompt establishes a multi-stage writing pipeline for academic papers. Instead of generating a full document at once, the agent operates across two cycles of 6 passes each, totaling 12 steps. Cycle one plans structure, builds literature reviews, writes core technical sections, and tests the first LaTeX build. Cycle two polishes arguments, fixes references, and generates the final PDF.
State tracking is written directly to disk. The agent records completed sections inside paper_workspace/writeup_progress.json after each step. You can restart interrupted sessions with the RESUME: command prefix. This preserves context between runs.
The instructions ban unverified statements. If files like paper_workspace/formalized_results.md or mathematical claim graphs are missing, the agent will not fabricate results.
What it helps with
- split paper drafting into 12 distinct review and writing steps
- assemble modular LaTeX sections into a compile-ready document
- reconcile custom voice guidelines with default academic standards
- track section writing progress through interrupted sessions
Example prompts for the agent
- /18-writeup Start cycle 1 to draft the technical sections and bibliography
- RESUME: continue the writeup process from the last recorded pass
How to install 18-writeup
Manually: put the files in place
.claude/commands/18-writeup.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about 18-writeup
How to install 18-writeup in Claude Code?
Save the prompt file into .claude/commands/18-writeup.md within your project folder. Claude Code will then recognize it as a local custom command.
What does 18-writeup do?
It guides Claude Code through drafting and revising an academic research paper in LaTeX. The process is divided into two 6-pass cycles that cover planning, drafting, error fixing, and revision.
How does it prevent hallucinations in the text?
The prompt enforces strict factual verification against workspace files such as paper_workspace/formalized_results.md. The model must confirm every claim with local tools rather than relying on ungrounded assumptions.