Skip to content
cccskills
FreePublished on GitHubEnglish overview

nature-paper2word

Turn an academic Markdown manuscript into a formatted Word document for journal or school requirements. The pipeline handles equations, tables, captions, cross-references, and bibliographies, then checks the document structure and formatting before and after export.

OriginalShow the original description

Compile an academic Markdown manuscript into a journal- or school-compliant Word (.docx): declared typography, native OMML equations, three-line tables, cross-references, per-section page numbers, CSL bibliographies (GB/T 7714, APA, Nature, IEEE), and pre/post-export quality gates. 把学术论文的 Markdown 稿件导出为符合期刊或学位论文规范的 Word:摘要、公式编号、三线表、题注、交叉引用、目录域、参考文献。

Use when the user wants a submission-ready .docx — 论文转 Word、学位论文排版、期刊投稿排版、prepare submission docx — or a readable copy of a manuscript. Not for PDF, HTML or LaTeX output, and not for slide decks or grant forms.

Yuan1z0825/nature-skills51,364 stars(GitHub 51,364 + cccskills 0)
Works withWord

Run score Not tested

See how to install

Good for

  • Preparing a journal submission in Word
  • Formatting a thesis to a school specification
  • Exporting a readable Word copy of a manuscript

Overview

What it does

nature-paper2word converts an academic Markdown manuscript into a Word (.docx) document that follows stated formatting requirements. When requirements are provided, it can use a template or specification to prepare a format file. Otherwise, it selects a preset based on the manuscript language. It supports headings, paragraph styles, numbered equations, three-line tables, figure and table captions, tables of contents, section page numbers, cross-references, and CSL bibliographies. It checks the manuscript before export and reviews numbering and formatting afterward. The source must first be arranged to match the Markdown input format.

When it helps

Use it to prepare a Word manuscript for journal submission or a thesis, make a Markdown paper easier to read, or apply a lab, school, or journal format. It helps preserve the manuscript structure and references while preparing a document for submission.

Example requests

  • “Format this Markdown manuscript as a Word document using my university’s requirements.”
  • “Export this in the format for Nature submission.”
  • “Convert this manuscript to Word.”

Notes

The md-to-word command is required. If it is not installed, install md-to-word-docx. Manuscripts with citations also need a .bib file. PDF, HTML, LaTeX, slides, and grant applications are not supported. Merged table cells, multiple columns, and custom cover pages are not supported. Check the layout in Word after export. The skill is MIT-licensed.

This overview was written by AI (OpenAI Codex) from the public SKILL.md. Check the original below for the exact behavior.

Document check

AI checked the SKILL.md for operations that need care and for setup requirements. The score comes only from actually running the skill (hands-on test).

SafetyAre sending data, deleting files, and running commands disclosed?
AGoodIt says not to edit the source in place and describes checks and unsupported outputs.
Easy setupDoes it need few tools or API keys, and are they documented?
BPartly lackingIt requires `md-to-word` and, for citations, `.bib`; installation is given for the command.

Not counted in the score. Rated by AI (OpenAI Codex) as of Oct 28, 2026. Treat it as a guide and read the original before installing.

Disagree? Request a re-evaluation

Tell us which point is wrong and why. No login needed. We will check it against the SKILL.md, redo the evaluation, and show the result here.

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

Files included (6)

  • SKILL.md10.8 KB
  • agents/openai.yaml241 B
  • manifest.yaml390 B
  • README_EN.md3.7 KB
  • README.md3.3 KB
  • UPSTREAM-LICENSE.txt1.3 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Markdown → compliant Word

This file is the router. The engine is deterministic: the same manuscript and the same format requirements always produce a byte-identical .docx. Do not substitute a hand-written python-docx script; run the installed pipeline.

Before the first export in a session, confirm the engine is available: md-to-word --version must print a version. This skill ships documentation only; if the command is missing, install it with pip install md-to-word-docx, then run the check again.

The full vocabulary lives in the manual inside the package, not here. md-to-word --contract prints its absolute path (Chinese or English, following the manuscript). Everything below is order of work; every spelling is looked up in the manual.

1. Decide the scenario first

ScenarioWhat the user saysWhat to do
Journal or school compliance"format it for Nature / my university"Get a target .docx template or a written spec, then build a requirements file.
Existing requirements"use our lab's spec file"Pass it with -r.
Baseline export (no explicit spec)"turn this into a Word file"Normalize the manuscript to the contract, then export with the built-in preset. The preset is a complete, valid format, not a provisional default.

State the chosen preset or requirements path in one line, then proceed. Without -r the only file picked up is one named exactly format.txt beside the manuscript; no other .txt is guessed at (if one is there, the run names it in a reminder). With no format.txt, the preset follows the manuscript's language: zh-academic for Chinese, en-nature for everything else. The run reports which one it used.

No path accepts arbitrary Markdown and returns a finished document: a preset supplies formatting, not missing structure. When the manuscript violates the contract, pre-flight stops with a line number rather than emitting a document that looks acceptable while its formatting was never mapped.

2. Bring the manuscript to the input contract

The source may be pasted text, .txt, .md, an old .docx, or a PDF. Normalize it to Markdown first; never edit the user's original file in place.

  • Headings: #, ##, ###, consecutive and unskipped; a heading that carries its own number (1., 2.1) needs as many # as its number has levels.
  • Paragraph styles: a line starting with %% sets that paragraph's style — %% Abstract …, %% Table Caption **Table 1** …, %% Image Caption Figure 1 …. One line is one paragraph, ended by a blank line, with no closing fence. Style names come from a closed list (manual §3.4) in either language; heading levels are set by # only.
  • Title, author, abstract, keywords are style lines in the body, never YAML — their position on the page is the author's decision, and YAML has no position. Pre-flight blocks those keys with the exact line to write instead.
  • Paragraphs: one line is one paragraph; consecutive lines are never joined, so a file of short one-sentence paragraphs is already correct. For a break inside one paragraph (an address, verse, a long title), end the line with a backslash or two spaces — it becomes a line break within the same paragraph. Suspected wrapping is reported as a grouped warning with the line numbers.
  • YAML holds only position-independent configuration: bibliography:, csl:, crossref:, link-citations:.
  • Equations: $$...$$ {#eq-name} on its own line, referenced as @eq-name. Chinese manuscripts get 「式/图/表」 prefixes and (1)numbering, English ones get Equation/Figure/Table and (1). Add crossref: chapters: true for per-chapter numbering. \tag{} is blocked.
  • Citations: [@key] parenthetical, @key narrative, from bibliography: + csl:. A .bib is mandatory once the manuscript cites: handwritten reference lists are not supported, and [@key] without bibliography: would be printed literally.
  • Figures and tables: ![](path/img.png){width=13cm} with the caption in its own %% Image Caption / %% 图片题注 paragraph; table caption above, note below. Do not put {#fig-...} labels on images. Column widths follow the separator row's dash lengths.
  • Block markers (three, each on its own line with blank lines around): {{< pagebreak >}}, {{< toc >}}, {{< section page_number=lowerRoman start=1 >}} (Chinese parameters 页码= 起始= also work). The section marker closes the section above it; never add a page break next to it.
  • Unsupported Markdown is blocked with a replacement, never printed literally: HTML tags, --- rules, ==== headings, definition lists, - [ ] boxes, tables without outer pipes, nested block quotes, full-width %%, four-space code blocks, a second paragraph inside a list item, ==highlight==, [text]{.class} (except .underline), \(...\) inline math, and a percentage image width ({width=60%} — write an absolute length).

3. Choose or build the format requirements

  1. Starting from nothing — md-to-word init writes a complete preset copy plus a one-page manuscript that exports as-is.
  2. Built-in preset — zh-academic or en-nature. Use as-is when the user gave no detailed spec.
  3. Copy and edit a preset — change only the lines the user mentioned. Field order is fixed: font, size, bold, italic, alignment, line spacing, space before, space after, indent. Every style line must be complete; missing fields are errors.
  4. Reverse-engineer a target .docx — md-to-word-template target.docx -o format.txt, then review the "to confirm" list at the end of the draft.

Each property has exactly one accepted spelling (two in total: the canonical Chinese and English forms); anything else is a hard error with a line number. Full table: manual §3.1. Style names: §3.4. Presets are the reference examples — md-to-word --contract prints their paths.

Throughout this file, format.txt means the format requirements file — any path works, -r takes it.

Citation style comes from csl: with a bundled file name (manual §7) or a path to the user's own CSL. Without csl:, Chinese manuscripts get GB/T 7714 numeric, others APA 7th. A user-supplied CSL is normalized on export so that one requirements file always produces one layout.

4. Export

Run the installed command from the manuscript's directory:

md-to-word manuscript.md -o manuscript.docx
md-to-word manuscript.md -r format.txt -o manuscript.docx
md-to-word --contract          # contract + paths to the manual and presets

The pipeline runs: pre-flight validation → style template generation → manuscript model → OOXML writing → number-integrity check → line-by-line audit against the requirements file.

5. How to read the gates

Two levels, split by "would the mistake be visible afterwards":

  • Blocking — silently wrong later: dropped content, syntax printed literally, formatting never mapped, a title in YAML, a caption inside an image's brackets. Fix the reported line; do not reach for --no-check, which turns off the blocking gates too.
  • Warning — visible but non-compliant: an image wider than the text block (it gets clamped), a caption far from its figure, a skipped heading level, a page break after a section marker, suspected line wrapping. Warnings of one kind arrive as a single line (up to eight line numbers, then a count).

Add --json when the result has to be read back programmatically: stdout then carries one JSON object — ok, returncode, input, output, pdf, lang, messages, errors — with progress and reminders on stderr. The keys are fixed; the sentences inside them follow the manuscript's language, and the reminders are in messages.

Exit codes: 0 every gate passed; 1 manuscript, gate or dependency problem; 2 a usage error (bad flags or a missing argument); 3 the .docx was written but the optional --pdf proof was skipped (non-macOS). Messages follow the manuscript's language. Add --verbose when a format does not seem to take effect.

6. Verify before delivery

  • Confirm the .docx exists and the command exited 0.
  • Report the applied preset or requirements file, the citation style, and anything the run warned about.
  • Say plainly that the layout still needs a manual check in Word. The engine verifies text and structure; row heights, column widths and where equations and captions settle are only visible in a real renderer.
  • When the document has a TOC, {style-title} headers or per-section page numbers, run once with --pdf (macOS with Word) — that is the only way fields are expanded — and spot-check the first page, the widest table, an equation-heavy page and the references.

7. Boundaries

  • No custom cover pages, merged cells, multi-column text, inline text colour, or text-wrapped figures. Export the body, then complete those in Word.
  • Only equation cross-references are supported ({#eq-x} + @eq-x); figure and table numbers are typed into the caption.
  • Sum and integral limits stay on the right of the symbol in numbered equations (Word stacks limits only in display math). Content and symbols are correct; only the arrangement differs.
  • TOC page numbers and chapter headers are Word fields; Word asks once whether to update them. Full statements: manual §6 (limits) and §8 (symptom → fix).

8. Related skills

This skill compiles the manuscript; these cover the steps around it. Hand off rather than re-implement:

SkillWhat it covers
nature-writingDrafting the manuscript and its section-level argument (input to this one)
nature-polishingLanguage polishing and academic phrasing (input to this one)
nature-citationSearching for and exporting reference entries (RIS / ENW / Zotero RDF); export BibTeX from the reference manager for the .bib this skill consumes
nature-ref-verifierCross-checking reference metadata before submission
nature-paper2pptTurning the same manuscript into a presentation deck

Upstream engine, the general-purpose pip package, and the changelog: md-to-word.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Search academic literature across sources, verify references, and convert citation files. Build PubMed queries using MeSH, its subject vocabulary, or audit citations to distinguish independent citations and document who cited a paper and how.

  • Search academic literature across multiple sources
  • Verify references extracted from a document
  • Build a MeSH-based PubMed search strategy
Yuan1z0825/nature-skills51.4KUpdated Oct 28, 2026

nature-citation

FreeSummary

Find papers from Nature or a specified Cell, Nature, and Science journal group to support manuscript claims. Check abstracts or publisher pages, map sources to individual claims, and export verified reference details for reference managers.

  • Find Nature-family references for manuscript claims
  • Map supporting papers to individual paragraphs
  • Check whether a paper supports a specific claim
Yuan1z0825/nature-skills51.4KUpdated Oct 28, 2026

nature-data

FreeSummary

Draft or review manuscript statements explaining where data and code can be accessed. Organize repository choices, access restrictions, identifiers, and dataset citations, and check metadata that helps others find and reuse the research data.

  • Draft data and code availability statements
  • Choose repositories and access routes for research data
  • Review dataset citations and metadata
Yuan1z0825/nature-skills51.4KUpdated Oct 28, 2026

Retrieve academic full texts and supporting files through open access, publisher APIs, or authorized institutional access. The skill selects a route for each paper, checks downloaded files, and records sources, formats, and download outcomes.

  • Download papers from a confirmed DOI list
  • Find legally available open-access full texts
  • Retrieve Chinese papers through institutional CNKI access
Yuan1z0825/nature-skills51.4KUpdated Oct 28, 2026

Organize experiment photos, audio, and notes into Markdown logs with structured metadata. Assign experiment and sample batch IDs, archive original attachments, and optionally connect records to Feishu group messages or an Obsidian notebook.

  • Turning experiment photos and voice notes into consistent logs
  • Tracking the same sample batch across multiple experiments
  • Archiving original files with links from experiment logs
Yuan1z0825/nature-skills51.4KUpdated Oct 28, 2026

nature-figure

FreeSummary

Create, revise, and export scientific figures for manuscripts using Python or R. Check panel alignment and overlapping elements, or prepare editable diagrams and explicitly requested AI-generated graphical abstracts that visually summarize a paper.

  • Create scientific plots for a manuscript
  • Review the layout of a multi-panel figure
  • Prepare a graphical abstract
Yuan1z0825/nature-skills51.4KUpdated Oct 28, 2026

See all skills by Yuan1z0825

Report a problem with this skill