Paper write nature

From FOURTEEN1416/academic-agent-toolkit · View interactive version

Paper write nature is an AI agent skill from the GitHub repository FOURTEEN1416/academic-agent-toolkit. Draft a Nature-style LaTeX paper with hourglass structure, reader-first logic, and publication-quality English. Use when the target venue is a Nature-family journal. 区别于 paper-write:本技能用 Nature 沙漏结构与期刊写作规范,ML 会议稿改用 paper-write;Word(docx) 输出改用 paper-write-nature-docx;仅重构个别章节(作者已有 claims/figures)用 pap

How to use this skill

Skill file

Nature-Style Paper Writing

Draft a Nature-quality LaTeX paper based on: $ARGUMENTS

分工:已有成稿的语言层润色/翻译用 paper-polish-nature;本技能负责结构起草与全文生成(沙漏架构与章节职责见下,为该架构的权威表述)。

Constants

Inputs

  1. PAPER_PLAN.md — outline with claims-evidence matrix, figure plan
  1. RESULTS.md — structured experiment results
  1. figures/ — SVGs/PDFs + latex_includes.tex
  1. Existing .bib file (or will create)

If no PAPER_PLAN.md, generate minimal outline from available docs.

Core Architecture

1. Identify Paper Type First

Before writing, determine the paper type:

Do not use one narrative logic for all paper types.

2. Reader-First Writing Order

Write for the reader's cognitive sequence:

  1. Is this relevant to me? (Introduction hook)
  1. What is new here? (Contribution statement)
  1. Do I trust it? (Results + Methods)
  1. Can I reuse it? (Methods detail + Data Availability)
  1. What does it mean? (Discussion + boundaries)

3. Productive Writing Order

For research articles, write in this order:

  1. Results — anchor everything in evidence
  1. Introduction — frame the gap now that you know the findings
  1. Title — crystallize the contribution
  1. Discussion — interpret and bound
  1. Materials and Methods — reproducibility
  1. Abstract — mini-paper summary last

4. Hourglass Structure

5. Paragraph Architecture: Claim-Evidence-Boundary

Every paragraph follows:

Section Responsibilities

Title

Abstract (150–200 words)

Mini-paper structure: context/problem → gap → approach → key result with numbers → implication

Introduction (~600–800 words for Nature)

Results

Discussion

Materials and Methods

Data Availability Statement

Generate using Nature data policy principles:

Failure Mode Diagnosis

Before editing any section, diagnose the main problem in priority order:

  1. Paper type — wrong narrative logic for this paper type?
  1. Section job — section not fulfilling its rhetorical responsibility?
  1. Paragraph logic — claim without evidence? evidence without claim? missing boundary?
  1. Sentence polish — clutter, passive voice, overclaim?

Fix from top down. Do not polish sentences while reasoning is broken.

Nature-Specific Style Rules

Sentence control

Paragraph control

De-AI Polish Rules

Remove or replace these AI-typical words:

Hedging (Academic Phrasebank patterns)

Transitions

Limitations acknowledgment

⛔⛔⛔ Output Contract (highest priority)

Mandatory output depends on params.output_format:

产出结构、存在性和最低完整性由 finish 按模板中的 output_contract 自动核验;修复返回的具体问题,不复制执行验证脚本。

If verification fails, complete the missing files instead of exiting.

执行与产出

使用当前执行会话完成本步工作;产物路径按当前步骤合同。程序采集真实操作、输入输出、版本与运行清单,模型只负责实质成果和领域质量。

建议额外记录:模板来源哈希、BibTeX 条目数、引用格式。

Workflow

Step 1: Read inputs and plan

Read PAPER_PLAN.md, RESULTS.md, figures/. Identify paper type and writing order.

⛔ MANDATORY: Read figures/latex_includes.tex first and build a FIGURE EMBEDDING PLAN before writing any section.


echo "=== Figures available ==="

ls -la figures/*.pdf figures/*.png 2>/dev/null

echo ""

echo "=== latex_includes.tex content (figure→PDF mapping) ==="

cat figures/latex_includes.tex 2>/dev/null || echo "⚠ No latex_includes.tex — figures may not be wired up"

Build mapping: every figure block in latex_includes.tex must be copied into an appropriate section. Sources:

⛔ Use figure blocks from latex_includes.tex — do NOT write \includegraphics from scratch. Path convention: figures/xxx.pdf (relative to repo root) or ../figures/xxx.pdf (relative to paper/sections/).

⛔ Every figure block from latex_includes.tex MUST appear in some section file — both data figures (Results section) and DrawIO architecture diagrams (Methods/Overview sections). Missing any figure = audit fail.

Step 2: Draft Results first

Write Results section anchored to figures and data. Each paragraph: orient → observe → quantify → pattern.

⛔ Cross-section context + figure-data binding (prevents the "two-layers" disconnect):

Step 3: Draft Introduction

Frame the gap now that findings are known. Hourglass: broad → narrow → specific aim.

Step 4: Draft Title

Crystallize contribution in ≤ 75 characters.

Step 5: Draft Discussion

Interpret findings, compare with literature, acknowledge limitations, state implications.

Step 6: Draft Methods

Complete, reproducible, specific. Include statistical tests, software versions, parameters.

Step 7: Draft Abstract

150–200 words. Context → gap → approach → key result → implication.

Step 8: Data Availability + Author Contributions

Generate Data Availability statement. Add Author Contributions template.

Step 9: Self-review

Run failure mode diagnosis on each section. Check:

Step 10: References + Compile

⛔ References — retrieve real entries, NEVER fabricate. Do NOT write BibTeX from memory.

Follow the <references_workflow> in shared-scripts/writing_rules.md: for every cited key,

restore it to search keywords and fetch real BibTeX via $SCHOLAR_SCRIPT (AMiner + Semantic

Scholar + DBLP + CrossRef + OpenAlex), e.g.:


PYTHON=""; for _c in "$MH_PYTHON" python python3; do [ -z "$_c" ] && continue; if $_c -c "import sys" >/dev/null 2>&1; then PYTHON="$_c"; break; fi; done; [ -z "$PYTHON" ] && PYTHON=python

# extract cited keys → _tmp/_cited_keys.txt, then:

while IFS= read -r key; do

    query=$(echo "$key" | sed 's/^TODO__//; s/_/ /g')

    echo "--- Fetching: $key (query: $query) ---"

    $PYTHON "$SCHOLAR_SCRIPT" bibtex "$query" --max 3

    sleep 0.5

done < _tmp/_cited_keys.txt

Copy the correct entry's bibtex field into paper/references.bib. If a source truly cannot be

found, flag it note = {[VERIFY] ...} — never invent a DOI/title/authors to fill the gap.

Then save to paper/main.tex with proper Nature formatting and compile.

Related Files

| File | Open when |

|------|-----------|

| references/section-moves.md | Section-specific move patterns and phrase families |

| references/style-guardrails.md | Academic style checks, hedging, transitions |

| shared-scripts/writing_rules.md | General LaTeX writing rules |

| shared-scripts/compile_check.sh | Compilation verification |

Key Rules


⛔ Figure embedding verification (MUST pass before finishing — file existence + actual `\includegraphics` reference both required)

已并入共享脚本 paper_write_audit.sh(paper-write 族单一实现)。怎么跑:

bash _utils/paper_write_audit.sh --mode latex   # 本目录无 _utils 时: bash skills/shared-scripts/paper_write_audit.sh --mode latex

怎么读结果:任何 MISSING: / ❌ 行或 Total missing embeddings > 0 都表示有图未嵌入或缺件——逐项补齐后重跑至 0;⛔ DO NOT finish until missing = 0.。该脚本同时执行下方 FIGURE_MANIFEST audit 与 universal paper audit;审计留痕由程序采集,不再手写 AUDIT_REPORT 审计文件;有引擎 finish 时以 output_contract/paper_write_gate 自动核验为准,本脚本为无引擎合同场景的兜底预检。


⛔ FIGURE_MANIFEST audit (run before finishing — must produce + embed every planned figure)

已并入共享脚本 paper_write_audit.sh(见上节,随 bash _utils/paper_write_audit.sh --mode latex 一并执行)。怎么读结果:✅ FIGURE_MANIFEST fully embedded = 通过;❌ MANIFEST: ... / ⛔ FIGURE_MANIFEST audit failed (N missing) = 计划图缺文件或未嵌入正文——补产/补嵌后重跑。判据与原内联版逐项一致(计划图清单取自 PROBLEM_ANALYSIS/PAPER_PLAN/MODELING_REPORT/TOPIC_PLAN 的 FIGURE_MANIFEST 块,检查 .pdf/.png 存在且被 paper/sections/ 或 paper/main.tex 引用)。

⛔ Universal paper-stage audit (shared across all writing steps)

已并入共享脚本 paper_write_audit.sh(见上节,随 bash _utils/paper_write_audit.sh --mode latex 一并执行;内部调 _utils/facts_audit.py --stage paper,无 PROBLEM_FACTS.json 时自动走简化模式)。检查项:[13] 正文结论与 results.json 一致;[14] 事件源归属。怎么读结果:输出 ❌ Universal paper-stage audit failed = 修正正文/results.json 后重跑。审计输出由程序采集留痕,不再手写 AUDIT_REPORT 审计文件。

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.