Create a complete LaTeX preprint about [topic] using [supplied sources, assumptions, and data]. If the topic or required source material is missing, request it and stop. Do not invent claims, citations, or data. Use explicit placeholders for missing information. Include exactly these sections in order: Abstract, Introduction, Methods, Results, Discussion, Conclusion, and References. Build every figure and table with native LaTeX tools such as TikZ, pgfplots, and booktabs. Do not use \includegraphics, \svg, or external image files. Every substantive claim must trace to a numbered equation, citation, supplied datum, or labeled assumption. Compile using the project's documented command or latexmk when no command is specified. Inspect compilation errors, warnings, typography, cross-references, and figure placement. Fix the most serious issue and compile again for at most five rounds. Stop when compilation has zero errors, all seven sections are present, every figure and table is referenced before it appears, and no banned command remains. Otherwise stop as blocked or exhausted. Finish with the .tex file, compilation command and log, structural checks, three substantive weaknesses, three typography issues, and unresolved placeholders.
claude-code · codex
Use this when
Use this when supplied research material must become a complete, auditable LaTeX preprint without external image assets or fabricated evidence.
How it runs
Confirm the topic, supplied sources, assumptions, and data; mark missing information with explicit placeholders.
Draft the seven required sections and create every figure and table with native LaTeX tools.
Compile, inspect the most serious structural, reference, visual, or typography issue, and repair it for at most five rounds.
Stop on a clean gated build or an honest blocker, then return the source, log, checks, weaknesses, and placeholders.
Done when
✓ The preprint compiles cleanly and every claim and native visual is accounted for. The final source has all seven ordered sections, zero compilation errors, no banned image command, traceable claims, referenced native figures and tables, and explicit remaining weaknesses.
Why it works
A polished-looking preprint can still contain fabricated claims, broken references, external assets, or hidden compile failures. Fixed structure and repeated compilation make the document inspectable and reproducible.
Implementation note
Use only supplied material unless the user separately authorizes research. Do not fabricate citations or data. Save the full compilation log as an artifact rather than flooding a conversational response.
A source-grounded research workflow for contested or decision-relevant claims that records provenance, evidence polarity, negative checks, confidence, and stopping reasons.
Investigate exactly one contested or decision-relevant claim. Define the claim, decision it supports, source scope, known evidence, conflicts, confidence target, and pass limit. Inventory sources by type and choose the next highest-value evidence action: retrieve a primary source, verify a citation, compare conflicts, extract facts, test an alternate explanation, run a negative check, or mark access blocked. Update a source ledger and claim ledger with provenance, extracted facts, reliability, limitations, and whether each fact supports, weakens, contradicts, contextualizes, or does not affect the claim. Stop at confidence, contradiction, underdetermination, unavailable access, human judgment, or no useful next action.
Process unreviewed user transcripts in batches. Extract verbatim pain-point quotes, cluster them against the existing pain-point manifest, create new clusters only when the quote does not fit an existing theme, and update frequency and severity when new evidence changes a cluster. After each batch, rerun the same saturation check: whether the last two batches produced zero new clusters, enough total clusters exist, and enough transcripts have been processed. Stop at confirmed saturation, the transcript cap, low-quality input, blocked access, or human-review need. Return the manifest, batch log, weighted priorities, and stopping reason.
Find a repeatable weekly post format for [approved account, audience, and topic] through a six-week experiment. If the account, audience, or topic is missing, ask for it before drafting. Obtain approval before publishing anything externally. Each week, draft one short post about a real problem [person, product, or company] solves. Record substantive replies, saves, and questions after the same measurement window. Treat likes as secondary evidence. Keep the audience, topic area, cadence, and measurement window comparable. Change only one meaningful element each week, such as the opening, format, example, or call to action, based on the strongest signal from the previous post. Stop when one format materially outperforms the alternatives, the six-week experiment ends without a winner, approval is withheld, required metrics are unavailable, or the budget is exhausted. Never fabricate engagement data. Finish with every post, its measurements, the variables tested, the winning format or no-winner result, and the next recommendation.