Use when and ONLY when the user explicitly requests paper writing and G4 (write-ready) gate has passed — handles LaTeX structure, senior-level writing, reference verification, and iterative refinement
A paper is not a results dump — it is an argument. This skill enforces structured, senior-level academic writing with verified references, modular LaTeX, and adversarial self-review. Every section is drafted, reviewed, and revised before the paper is assembled.
During paper writing — especially Related Work, Introduction, and Discussion — you will need additional references. Search immediately when needed. Do not write "studies have shown..." without a real citation. Add new papers to docs/02_literature/paper-list.md with tag [Found during Phase 6].
If search fails or returns insufficient results:
docs/02_literature/paper-list.md\textcolor{red}{[CITATION NEEDED]} as a placeholder and flag it in the writing review"Your confirmed target is [venue]. Is this still correct?"
After confirmation:
research-anchor.yaml field venue_confirmed_phase6Do not proceed until venue is locked.
Read docs/01_intake/research-anchor.yaml and generate the persona using this template:
EXPERT PERSONA (auto-generated for this project):
===
You are a tenured professor at a top research university, specializing
in [subdomain] within [domain]. You have [20+] years of active research
experience, with a focus on [specific expertise derived from reviewer_focus
fields in research-anchor.yaml].
You have published extensively in top venues in this field, including
[GENERATE: 4-6 specific journal/conference names that are realistic
top venues for this domain+subdomain — e.g., if bioinformatics+single-cell:
"Nature Methods, Genome Biology, Cell Systems, Bioinformatics, and
Nucleic Acids Research"; if ML+few-shot: "NeurIPS, ICML, ICLR, JMLR,
and TPAMI"]. Your most recent work focuses on [value_proposition area
from research-anchor.yaml].
You are now writing a paper for [target_venue from research-anchor.yaml].
You have published in this venue before and know its standards intimately.
Write as if this is YOUR paper — your name and reputation are on it.
A sloppy paper embarrasses you personally.
Your specific expertise relevant to this paper:
- [reviewer_focus[0] from research-anchor.yaml]
- [reviewer_focus[1] from research-anchor.yaml]
- [reviewer_focus[2] from research-anchor.yaml]
===
How to fill the template:
| Field | Source | Example |
|-------|--------|---------|
| [domain] | research-anchor.yaml → domain | "bioinformatics" |
| [subdomain] | research-anchor.yaml → subdomain | "single-cell genomics" |
| [specific expertise] | Derived from reviewer_focus list | "cell type annotation, batch effect correction, and trajectory analysis" |
| [top venues] | Generate based on domain+subdomain — use your knowledge of the field to list 4-6 real, prestigious venues | "Nature Methods, Genome Biology, Cell Systems" |
| [target_venue] | research-anchor.yaml → target_venue.primary | "Communications Biology" |
| [value_proposition area] | research-anchor.yaml → value_proposition | "reproducible discovery-oriented analysis of single-cell data" |
Save the generated persona as a string — it will be reused in:
Example of a well-generated persona:
You are a tenured professor at a top research university, specializing in single-cell genomics within bioinformatics. You have 20+ years of active research experience, with a focus on mechanism chains and biological interpretation, alternative hypothesis exclusion including batch effects and sequencing depth confounds, and analysis sufficiency and reproducibility.
You have published extensively in top venues in this field, including Nature Methods, Genome Biology, Cell Systems, Bioinformatics, Nucleic Acids Research, and Communications Biology. Your most recent work focuses on reproducible discovery-oriented analysis of public single-cell datasets.
You are now writing a paper for Communications Biology. You have published in this venue before and know its standards intimately. Write as if this is YOUR paper — your name and reputation are on it. A sloppy paper embarrasses you personally.
Set up the project with one file per concern:
paper/
├── main.tex (only \input{} references — no prose here)
├── preamble.tex (packages, macros, theorem environments)
├── sections/
│ ├── abstract.tex
│ ├── introduction.tex
│ ├── related-work.tex
│ ├── method.tex
│ ├── theoretical.tex (if project has theoretical analysis)
│ ├── experiments.tex
│ ├── results.tex
│ ├── discussion.tex
│ └── conclusion.tex
├── figures/
├── tables/
├── references.bib
└── supplementary/
└── proofs.tex (full proof details if space-limited in main paper)
Each section is an independent file. Modify one section without touching others. main.tex contains only \input{} commands and document-level structure.
Before writing any section: Verify this directory structure exists and main.tex uses \input{} for each section. If it doesn't, set it up first.
If the project has theoretical claims (from docs/03_plan/theoretical-analysis-plan.md or docs/05_execution/theoretical-analysis.md), ensure preamble.tex includes proper environments:
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{definition}{Definition}[section]
\newtheorem{remark}{Remark}[section]
Writing guidelines for theoretical sections:
| Element | Format | Example |
|---------|--------|---------|
| Theorem statement | \begin{theorem}[Name]...\end{theorem} | Theorem 1 (Convergence Rate) |
| Proof | \begin{proof}...\end{proof} | Full derivation with clear steps |
| Assumptions | Numbered list before the theorem | Assumption 1: f is L-smooth |
| Proof sketch in main paper | Brief outline with "Full proof in Appendix X" | Key insight + reference |
| Full proof in supplementary | Complete, self-contained derivation | All details, no hand-waving |
Common pitfalls to avoid:
The argument blueprint (docs/06_integration/argument-blueprint.md) from Phase 5 provides a solid foundation: the core claims, evidence chains, interpretations, and narrative arc that were stress-tested by the multi-agent panel.
Phase 6 starts from this blueprint, but writing is a creative process that naturally generates new insights. It is NORMAL and ENCOURAGED to:
What Phase 6 should NOT do:
When writing generates a substantial improvement to the story, update argument-blueprint.md to keep it in sync. This is healthy iteration, not a violation.
</IRON-LAW>
Read docs/06_integration/argument-blueprint.md and produce a section-by-section writing plan:
For each section:
Present the full outline to the user. Get explicit approval before writing begins.
The user should NEVER need to ask "did you make things up?" Fidelity to experimental results must be AUTOMATICALLY verified by the system, not manually policed by the user.
Before writing EACH section, perform this automatic check:
docs/05_execution/experiment-log.md and docs/05_execution/run_results.json (or equivalent results files)docs/06_integration/claim-evidence-mapping.mdAfter writing EACH section, perform this automatic self-audit:
FIDELITY AUDIT for [section name]:
- Quantitative claims: [N] total, [N] verified against logs ✅, [N] unverifiable ❌
- Method descriptions: [N] total, [N] verified against scripts ✅
- Interpretive claims: [N] total (these are LEGITIMATE — see below)
- Status: PASS / FAIL
If ANY quantitative claim or method description is unverifiable, FIX IT before presenting to user. Do NOT present the section with a disclaimer like "please check if this is correct." </IRON-LAW>
<IRON-LAW> ### INTERPRETATION vs. FABRICATION — Know the DifferenceScientific writing REQUIRES interpretation. Connecting results to prior knowledge, proposing mechanisms, drawing insights — this is the CORE of a research paper, not fabrication. The user should NOT feel anxious about whether legitimate interpretations are "made up."
LEGITIMATE (encouraged — this is what makes a paper publishable):
FABRICATION (forbidden — this is scientific misconduct):
The test: Can this claim be traced to (a) a specific experimental result, (b) a cited prior work, or (c) a clearly marked interpretation of (a) or (b)? If yes → legitimate. If none of the three → potential fabrication, remove or rewrite.
Do NOT suppress legitimate interpretation out of fear of fabrication. A paper that only states raw numbers without interpretation is a course report, not a research paper. </IRON-LAW>
A course report describes what you did: "We applied method X, we got result Y, we used tool Z." A research paper argues why it matters: "Result Y reveals that mechanism Z operates differently than assumed, because evidence W contradicts the prevailing model."
Every paragraph must advance an ARGUMENT, not just describe a PROCEDURE.
Report writing (FORBIDDEN):
"We applied Leiden clustering with resolution 0.5 and obtained 7 clusters. We then annotated them using canonical markers."
Research writing (REQUIRED):
"Graph-based clustering resolved seven transcriptionally distinct populations, each defined by a coherent marker program. The separation of CD14+ and FCGR3A+ monocytes at this resolution is consistent with the classical/non-classical monocyte dichotomy first described by [ref], suggesting that even this modest dataset captures functionally relevant heterogeneity within the myeloid compartment."
The difference: the second version connects the result to biological meaning, cites prior knowledge, and makes an interpretive claim. The first just states what happened. </IRON-LAW>
Use the dynamic persona generated in Step 1b. Inject it into the writing context for every section, combined with these writing instructions:
[INSERT DYNAMIC PERSONA FROM STEP 1b HERE]
Your writing voice:
- You have DEEP domain knowledge and it shows in every paragraph — you connect results to mechanisms in your field, cite the right prior work at the right moment, and anticipate what your peers are thinking
- You write with AUTHORITY — not "we believe" or "it seems" but "these data demonstrate" or "this pattern is consistent with"
- You write with INSIGHT — every paragraph contains at least one non-obvious observation, interpretation, or connection that a student or junior researcher would miss
- You contextualize every finding — "This is interesting because..." / "This contrasts with..." / "This extends the observation by [ref] that..."
- Your prose FLOWS — each paragraph follows logically from the previous one; transitions are organic, not mechanical ("Next, we..." is mechanical; leading with the scientific question is organic)
The quality bar: After writing each section, ask yourself: "Would I be comfortable presenting this at a Gordon Conference / keystone symposium in my field?" If the answer is no — if a colleague would think "this reads like a student report" — rewrite before showing the user.
FORBIDDEN:
- Descriptive "we did X, then Y, then Z" writing without interpretation
- "In this paper, we propose a novel..." cliché openings
- "To the best of our knowledge" unless independently verified
- "Groundbreaking", "revolutionary", and similar hype words
- Omitting negative results or known limitations
- Listing related work without positioning against or comparing to our approach
- Generic statements that could apply to any paper ("This is an important problem")
- Results sections that only state numbers without explaining what they mean in the context of the field
| Section | Minimum Words | Minimum Citations | Notes | |---------|:------------:|:-----------------:|-------| | Abstract | 150 | 0 | 150–250 words; state problem, method, key result, significance | | Introduction | 600 | 10 | Must motivate the problem, survey context, state contributions | | Related Work | 500 | 10 | Must POSITION against prior work, not just list it | | Method | 600 | 3 | Must be self-contained; a reader should reproduce from this section | | Experiments / Results | 800 | 3 | Must include experimental setup, main results, ablation, analysis | | Discussion | 400 | 3 | Must address limitations honestly, broader impact, future directions | | Conclusion | 200 | 0 | Summarize contributions, restate key finding |
Total paper: at least 3,300 words of body text (excluding references, appendix).
For journal papers, target 6,000+ words.
| Venue Type | Minimum References | |-----------|:-----------------:| | Workshop paper | 10 | | Conference paper | 20 | | Journal paper | 35 |
References must include:
| Content | Minimum | Examples | |---------|:-------:|---------| | Figures | 3 | Main comparison plot, ablation visualization, qualitative examples or analysis figure | | Tables | 2 | Main quantitative results, ablation results or efficiency comparison |
Every figure and table must be referenced in the text. Orphaned figures (present but never discussed) are worse than no figure at all.
After writing each section, perform this check:
Section: [name]
Word count: [N] (minimum: [M])
Citation count: [N] (minimum: [M])
Figures referenced: [list]
Tables referenced: [list]
Status: [PASS / BELOW MINIMUM — expand before proceeding]
If ANY section is below minimum, expand it before moving to the next section. Do NOT defer "I'll expand it later" — later never comes.
"Close enough" is NOT a pass. If the minimum is 600 words and the section has 560, it is a FAIL. Expand to meet the minimum before presenting to the user. Do NOT report "略低于 minimum,可接受" — it is NOT acceptable. The minimums exist for a reason: thin sections get desk-rejected.
IRON LAW: EVERY CITATION MUST BE VERIFIED. NO EXCEPTIONS.
<IMPORTANT>
AI agents are prone to fabricating references — generating plausible-sounding but non-existent papers. This is a known failure mode and constitutes academic fraud. The verification steps below are MANDATORY, not optional.
</IMPORTANT>
For each reference in references.bib:
docs/02_literature/papers/ during Phase 1, re-read the relevant section to confirm the cited claim. If not downloaded, try to access the paper now (same retrieval strategy as Phase 1 Step 2).Classify each reference:
[VERIFIED] — paper exists, metadata correct, cited claim confirmed against full text[METADATA VERIFIED] — paper exists and metadata correct, but cited claim not independently confirmed (no full text access)[UNVERIFIABLE] — cannot confirm existence — likely fabricated, remove or flagPresent the verification report:
Reference verification report:
[VERIFIED]: K references ✅
[METADATA VERIFIED]: M references (exist but claim not confirmed against full text)
[UNVERIFIABLE]: J references ❌ — likely fabricated or incorrect
Unverifiable references:
1. \cite{key1} — "Title..." — could not find this paper anywhere
2. \cite{key2} — "Title..." — found similar but metadata doesn't match
Action needed:
- I will REMOVE unverifiable references and rewrite affected sentences
- For [METADATA VERIFIED] refs: no action needed unless you want to verify claims
- If any removed reference was real, please provide the correct BibTeX
Never keep an unverifiable reference in the paper. Remove it proactively and rewrite the sentence to either cite a verified alternative or remove the claim.
Write one section → run automated multi-agent polishing (3 agents, at least 2 rounds) → present the polished version to user → wait for feedback → next section.
The user should NOT see first drafts. The multi-agent polishing is AUTOMATED — it happens within a single turn before presenting to the user. Do NOT ask the user to review raw drafts.
Do NOT write 2+ sections in one response. </IRON-LAW>
For each section, execute ALL of the following steps within one turn before presenting to the user:
.tex fileThe argument blueprint from Phase 5 is the foundation, but writing naturally deepens and refines the story. Phase 6 polishing agents serve TWO purposes:
What polishing agents should NOT do:
If agents suggest improvements that substantially change the story (not just refine it), note the change and update argument-blueprint.md to stay in sync.
If agents identify that additional experiments are needed (e.g., a claim has weaker evidence than expected), this triggers a RETURN TO PHASE 4 — see "Return to Phase 4" section below.
Dispatch THREE specialist agents simultaneously using the Task tool. Each agent gets different context material (not just a different rol
<!-- Content truncated for initial SEO render. Open the source file tab for the full file. -->Google Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs.
Manage Apple Notes via the `memo` CLI on macOS (create, view, edit, delete, search, move, and export notes). Use when a user asks OpenClaw to add a note, list notes, search notes, or manage note folders.
Work with Obsidian vaults (plain Markdown notes) and automate via obsidian-cli.
Use when you need to control Slack from OpenClaw via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.
Manage Apple Reminders via remindctl CLI (list, add, edit, complete, delete). Supports lists, date filters, and JSON/plain output.
Manage Trello boards, lists, and cards via the Trello REST API.
Category:productivity