Portable agent skill/playbook for OpenClaw, Hermes, Claude, Codex, and other agents revising scientific manuscripts that will be exported to DOCX/PDF, especially when mathematical formulas, subscripted variables, tables, figures, Word rendering, Pandoc conversion, LibreOffice PDF checks, or submission-package visual QC may fail.
Use this skill/playbook to turn manuscript source files into Word/PDF-safe submission artifacts. It is written to be usable by OpenClaw, Hermes, Claude, Codex, and other coding or research agents. The goal is not only correct content, but correct rendering in the actual files that authors, reviewers, or journal portals will inspect.
Agent Compatibility
This file is the authoritative workflow. Agents that do not support formal skill metadata can ignore the YAML header and follow the Markdown instructions directly.
OpenClaw / repository-aware agents: read AGENTS.md first, then this file for the full workflow.
Hermes / Claude / chat agents: treat this file as the operating checklist for manuscript DOCX/PDF QC.
Codex-compatible skill loaders: use the name and description metadata above.
Do not assume a specific agent runtime, memory format, tool wrapper, or repository layout. Use the available shell, document, image, and file-inspection tools in the current environment.
Maintenance Rule
Treat this skill as a living checklist. When using it on a real manuscript and discovering a reusable failure mode, formula pattern, DOCX/PDF conversion issue, figure-layout fix, table-rendering fix, or submission-package synchronization problem, update this SKILL.md before finishing if the lesson is likely to recur.
Only add generalizable lessons. Do not add project-specific paths, manuscript titles, private author details, transient filenames, or one-off numerical results unless they describe a reusable workflow pattern.
Good additions:
A formula syntax that renders correctly or incorrectly in Word/PDF.
A reproducible QC command that catches stale figures, broken DOCX archives, or clipped pages.
A common conversion artifact from Pandoc, LibreOffice, Word, or PDF rendering.
A source-level fix pattern for figure/table overlap.
Bad additions:
A single manuscript's scientific conclusion.
A temporary upload zip name.
A local path that applies only to one project.
A subjective writing preference already covered elsewhere.
Core Workflow
Identify the authoritative source.
Locate the real manuscript source (manuscript.md, .tex, .docx) and figure/table generation scripts.
Do not fix screenshots or exported DOCX by hand unless no source exists.
Prefer reproducible edits to source Markdown/scripts, then rebuild DOCX/PDF.
Check formula source before judging screenshots.
Screenshots can reflect stale DOCX output. Inspect the current manuscript source and then rebuild.
Avoid long code-style formulas in prose. If a formula is conceptually simple but visually fragile, replace code notation with a short sentence and a display equation.
Keep terminology distinct from math.
Treat literal software outputs as code: metric_raw, metric_processed, qc_score.
Treat mathematical quantities as math: $\operatorname{metric}_{\text{raw}}$.
In methods, define whether a formula is primary, revised, exploratory, diagnostic, or sensitivity-only. Do not let multiple estimands share one label without explicit mode naming.
Rebuild and inspect actual DOCX/PDF.
Rebuild DOCX from source, then validate ZIP integrity:
bash