paper-formatter

paper-formatter is a skill for Claude Code, Codex from yipng05-max/-skills. It costs 108 tokens per session (1,369 once invoked), scanned A, original, MIT.

A document-formatting tool that reshapes an academic manuscript to match a target journal, using a sample paper as the model. It works with Word and LaTeX files, in Chinese or English.

In plain words
What is it for?
Use it to reformat titles, abstracts, headings, body text, tables, captions, and references for a journal. Provide a sample paper and your manuscript, then choose a Word or LaTeX output.
Why use it?
It removes the manual work of comparing margins, fonts, headings, spacing, tables, and citations with a journal’s example. This helps make a manuscript’s layout consistent before submission.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit Use it to reformat titles, abstracts, headings, body text, tables, captions, and references for a journal. Provide a sample paper and your manuscript, then choose a Word or LaTeX output.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yipng05-max/-skills/paper-formatter
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add yipng05-max/-skills --skill paper-formatter
Clone the repo
git clone --depth 1 https://github.com/yipng05-max/-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for paper-formatter

README.md
[![agentmods](https://agentmods.dev/badge/skills/yipng05-max/-skills/paper-formatter/github.svg)](https://agentmods.dev/skills/yipng05-max/-skills/paper-formatter)
Your own site
<a href="https://agentmods.dev/skills/yipng05-max/-skills/paper-formatter"><img src="https://agentmods.dev/badge/skills/yipng05-max/-skills/paper-formatter/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for paper-formatter

Your own site · 80×15
<a href="https://agentmods.dev/skills/yipng05-max/-skills/paper-formatter"><img src="https://agentmods.dev/badge/skills/yipng05-max/-skills/paper-formatter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,369 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00108 $0.01369
Opus 5 $0.00054 $0.00685
Sonnet 5 $0.00022 $0.00274
Haiku 4.5 $0.00011 $0.00137

Measured 10d ago against content hash c350b8c15676, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

paper-formatter scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/analyze_docx.py, scripts/format_docx.py, scripts/generate_latex.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

paper-formatter/SKILL.md · 147 lines

How it starts

The opening of the file, as written. The whole thing — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Paper Formatter Skill

Reformat an academic manuscript to match the style of a target journal, based on a sample paper (范文).

Workflow

Step 1: Receive Inputs

Ask the user for:

  1. Sample paper (范文): A paper from the target journal that exemplifies its formatting. Can be .docx or .tex.
  2. User manuscript: The manuscript to reformat. Can be .docx, .tex, or plain text.
  3. Desired output format: .docx or .tex (default: same as manuscript format).

Step 2: Analyze Sample Paper Style

If sample is .docx:

Run the analysis script:

pip install python-docx 2>/dev/null
python ~/.claude/skills/paper-formatter/scripts/analyze_docx.py "<sample.docx>" "<output_rules.json>"

This extracts:

  • Page layout (margins, paper size, orientation, columns)
  • Paragraph styles per role (title, headings, body, abstract, captions, references)
  • Font families, sizes, bold/italic
  • Line spacing, indentation, paragraph spacing
  • Table styles
  • Citation style detection (numeric, author-year, etc.)

If sample is .tex:

Read the .tex file and extract style information from the preamble:

  • \documentclass options (font size, paper, columns)
  • \usepackage{geometry} margins
  • Font packages and settings (fontspec, xeCJK, ctex)
  • \usepackage{setspace} line spacing
  • \titleformat / \titlesec heading styles
  • Citation package (natbib, biblatex) and style
  • \fancyhdr header/footer settings
  • Custom commands for title, abstract, keywords formatting

Produce a JSON style-rules object with the same structure as the docx analyzer output.

Step 3: Present Extracted Style Rules

Show the user a summary of extracted formatting rules organized by the checklist in references/formatting-elements.md:

  • Page: paper size, margins, orientation
  • Title: font, size, bold, alignment
  • Authors/Affiliations: format
  • Abstract: font, size, indentation
  • Keywords: separator, font
  • Headings: each level's font, size, bold, numbering scheme
  • Body: font, size, line spacing, first-line indent, alignment
  • Captions: position, font, size
  • References: citation style, bibliography format
  • Header/Footer: content

Read the full file on GitHub · 147 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 147 lines · 108 tokens per session scan A c350b8c15676

Subscribe to this mod's changes

paper-formatter is a skill published in the GitHub repository yipng05-max/-skills (285 stars, last pushed 4mo ago), licensed MIT. It adds 108 tokens to every session and 1,369 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

clinical-case-report

Structured medical case presentation for clinical rounds, conferences, and documentation. Generates SOAP-format or narrative case reports with physiologically accurate vitals, labs, and evidence-based plans. Use when the brief mentions "case report", "case presentation", "SOAP note", "clinical case", "ward rounds"…

nexu-io/open-design · 73 tokens

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

pydicom

Use pydicom to read, inspect, write, transform, and safely preflight local DICOM datasets and pixel data. Applies to DICOM metadata, transfer syntaxes, compression plugins, frames, private elements, JSON, and bounded de-identification review.

K-Dense-AI/scientific-agent-skills · 56 tokens

nature-experiment-log

A workflow for turning experiment notes, images, audio, or text into structured Markdown laboratory logs with YAML metadata. It can also organize raw attachments and optionally connect the logs to Feishu or Obsidian.

Yuan1z0825/nature-skills · 45 tokens

nature-paper2ppt

A workflow for turning a scientific paper, preprint, PDF, article, figure legends, or reading notes into a complete Chinese PowerPoint presentation. It is designed for journal clubs, group meetings, thesis seminars, conferences, defences, and paper-sharing talks.

Yuan1z0825/nature-skills · 177 tokens

parsing-ccda-documents

Parses C-CDA / CCD XML clinical documents to extract human-readable section narrative plus coded entries, keyed by section LOINC codes and templateIds. Use before OpenMed processing when ingesting C-CDA R2.1 documents (CCD, Discharge Summary, H&P, Consultation Note) exported from an EHR and you need the narrative…

maziyarpanahi/openmed · 152 tokens