Agent skill

Article Format Adjustment

by aipoch in aipoch/medical-research-skills

Adjust academic paper formatting and convert between DOCX/LaTeX/Markdown when you need to meet a journal or school template requirement.

MITAuto-check passedDocuments & Office

Install Article Format Adjustment

skills CLI
$ npx skills add aipoch/medical-research-skills --skill article-format-adjustment -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aipoch/medical-research-skills article-format-adjustment --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/scientific-skills/Other/article-format-adjustment .claude/skills/article-format-adjustment && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
article-format-adjustment
GitHub stars
2k
Token cost
~2.4k tokens
SKILL.md length
918 words
Files
29 (incl. scripts, assets)
Skills in repo
567
Repo updated
First seen
Licence
MIT

At a glance

Adjust academic paper formatting and convert between DOCX/LaTeX/Markdown when you need to meet a journal or school template requirement.

  • Works in 4 steps: Apply a built-in journal template (DOCX… → Apply a custom configuration (MD →… → Download a journal template configuration → …
  • Tasks that involve Word documents
  • SKILL.md covers Validation Shortcut, When to Use, Key Features and Dependencies, plus 11 more sections
  • Calls python, choco and brew

What it does

Article Format Adjustment is an agent skill from aipoch/medical-research-skills. Adjust academic paper formatting and convert between DOCX/LaTeX/Markdown when you need to meet a journal or school template requirement.

Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 30 other files, including scripts and assets (for example `article-format-adjustment_audit_result_v1.json`, `assets/formats/apa.json` and `assets/formats/bmc.json`).

It sits in Documents & Office, covering Word documents and LaTeX. It works with Microsoft Word, LaTeX, Python and Pandoc. The repository describes itself as: Hundreds of agent skills for medical research, including protocol design, data analysis, evidence insights, and academic writing. The licence is MIT.

When your agent uses it

  • Tasks that involve Word documents
  • Tasks that involve LaTeX

Example prompts

  • “/article-format-adjustment”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Apply a built-in journal template (DOCX → formatted DOCX)
  2. Apply a custom configuration (MD → formatted MD)
  3. Download a journal template configuration
  4. Minimal end-to-end runnable Python example (module usage)

What it can do on your machine

Read from SKILL.md and the folder at commit 686e09d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/, which the agent can run.

    Shell commands in SKILL.md call:

    • python
    • choco
    • brew
    • apt

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Article Format Adjustment loads about 2.4k tokens when it runs. Until then it costs about 41 tokens; SKILL.md has 918 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~41
When it runs · the whole SKILL.md, loaded when a task matches
~2.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from aipoch/medical-research-skills at commit 686e09d, republished under its MIT licence (© aipoch). 918 words, ~2,441 tokens.

Download SKILL.mdSave it as .claude/skills/article-format-adjustment/SKILL.md (or your agent's skills folder). This skill also uses 28 other files; get the full folder from GitHub.
name
article-format-adjustment
description
Adjust academic paper formatting and convert between DOCX/LaTeX/Markdown when you need to meet a journal or school template requirement.
license
MIT
author
AIPOCH

Source: https://github.com/aipoch/medical-research-skills

Validation Shortcut

Run this minimal command first to verify the supported execution path:

bash
python scripts/format_adjuster.py --help

When to Use

  • You have a draft in Word/LaTeX/Markdown and must submit it in a different format (e.g., DOCX → LaTeX).
  • A journal or school requires strict typography rules (fonts, sizes, margins, spacing) and you want them applied automatically.
  • You need to enforce consistent figure/table captions and table border styles across the whole manuscript.
  • You must switch or standardize citation/reference styles (e.g., IEEE, APA, GB/T 7714) before submission.
  • You want to apply a known journal template (e.g., Nature/Science/Elsevier) or a custom JSON/YAML template to multiple papers.

Key Features

  • Format conversion

    • Word (.docx) ↔ Markdown (.md)
    • Word (.docx) ↔ LaTeX (.tex) (via Pandoc)
    • Markdown (.md) ↔ LaTeX (.tex)
    • Preserves document structure and basic formatting as much as possible
  • Full formatting adjustment

    • Typography: fonts, font sizes (body/headings/footnotes), line spacing, margins, paragraph indentation and spacing
    • Figures/Tables: caption font size, caption position, table font, table border/line styles
    • References: citation styles (APA/MLA/Chicago/IEEE/GB/T 7714), reference list formatting, in-text citation formatting
    • Terminology: first-occurrence abbreviation annotation, terminology consistency checks, unit formatting standardization
  • Journal template management

    • Built-in templates (e.g., Nature, Science, IEEE, Elsevier)
    • Template download by journal name (best-effort from official sources/Overleaf)
    • Custom templates via JSON/YAML configuration
  • Validation

    • Checks whether the output meets the configured formatting requirements.

Dependencies

Runtime
  • Python >= 3.8
Python packages (typical)
  • python-docx (Word read/write)
  • markdown (Markdown processing)
  • PyYAML (YAML parsing)
  • requests (template download)
  • beautifulsoup4 (HTML parsing)
System tools
  • pandoc (required for DOCX ↔ LaTeX conversions)
    • Windows: choco install pandoc
    • macOS: brew install pandoc
    • Linux (Debian/Ubuntu): apt install pandoc

Note: Exact package versions depend on requirements.txt in your repository.

Example Usage

1) Apply a built-in journal template (DOCX → formatted DOCX)
bash
python scripts/init_run.py \
  --input paper.docx \
  --journal "Nature" \
  --output paper_formatted.docx
2) Apply a custom configuration (MD → formatted MD)
bash
python scripts/init_run.py \
  --input paper.md \
  --config formats/my_journal.json \
  --output paper_adjusted.md
3) Download a journal template configuration
bash
python scripts/init_run.py \
  --download-template "Science" \
  --output templates/science_format.json
4) Minimal end-to-end runnable Python example (module usage)
python
from scripts.format_converter import FormatConverter
from scripts.format_adjuster import FormatAdjuster

def run(input_file: str, config: dict, output_file: str):
    converter = FormatConverter()
    adjuster = FormatAdjuster(config)

    # 1) Normalize to Markdown as an intermediate representation
    md = converter.to_markdown(input_file)

    # 2) Apply formatting rules
    formatted_md = adjuster.apply_format(md, config)

    # 3) Validate against the same rules
    ok = adjuster.validate_format(formatted_md, config)
    if not ok:
        raise RuntimeError("Validation failed: output does not meet the configured requirements.")

    # 4) Convert back to the desired output format inferred from output_file
    converter.from_markdown(formatted_md, output_file)

if __name__ == "__main__":
    config = {
        "font": {"body": "Times New Roman", "body_size": 10},
        "spacing": {"line_space": "single", "paragraph_space": 6, "indent": 0.5},
        "margins": {"top": 2.54, "bottom": 2.54, "left": 2.54, "right": 2.54},
        "references": {"style": "Nature", "format": "numbered"},
        "figures": {"caption_position": "below", "font_size": 9},
        "tables": {"caption_position": "above", "font_size": 9, "borders": True},
    }
    run("paper.docx", config, "paper_formatted.docx")

Implementation Details

Processing pipeline
  1. Detect input format (.docx / .md / .tex)
  2. Convert to Markdown as a unified intermediate representation
  3. Apply formatting rules from a selected journal template or custom config
  4. Validate the formatted result against the config
  5. Convert to target format (DOCX/MD/TEX)
Core modules (typical responsibilities)
  • format_converter.py
    • Conversion engine between Word/Markdown/LaTeX
    • Uses Pandoc for conversions involving LaTeX and/or DOCX where needed
  • format_adjuster.py
    • Applies typography, figure/table, and reference formatting rules
    • Provides validation routines to check compliance
  • template_downloader.py
    • Downloads template/config by journal name (best-effort)
    • Parses web sources (often via requests + beautifulsoup4)
  • format_validator.py
    • Performs rule-based checks (margins, font sizes, caption placement, citation style selection, etc.)
Configuration schema (key parameters)

A configuration file (JSON/YAML) typically includes:

  • font
    • body, body_size, title, title_size, caption, caption_size
  • spacing
    • line_space (single / 1.5 / double)
    • paragraph_space (e.g., points)
    • indent (e.g., first-line indent)
  • margins
    • top, bottom, left, right (commonly in cm)
  • references
    • style (e.g., IEEE, APA, GB/T 7714-2015)
    • format (e.g., numbered, author-year)
  • figures / tables
    • caption_position (above / below)
    • font_size
    • borders (tables)
CLI parameters (behavior)
  • --input: input file path (required)
  • --output: output file path (auto-generated if omitted)
  • --config: path to JSON/YAML config (uses built-in default if omitted)
  • --journal: journal name (selects a built-in or downloaded template)
  • --download-template: journal name to download a template config
  • --format: output format (docx / md / tex), defaults to the input format

When Not to Use

  • Do not use this skill when the required source data, identifiers, files, or credentials are missing.
  • Do not use this skill when the user asks for fabricated results, unsupported claims, or out-of-scope conclusions.
  • Do not use this skill when a simpler direct answer is more appropriate than the documented workflow.
Show full SKILL.md (354 more words)Show less

Required Inputs

  • A clearly specified task goal aligned with the documented scope.
  • All required files, identifiers, parameters, or environment variables before execution.
  • Any domain constraints, formatting requirements, and expected output destination if applicable.
  1. Validate the request against the skill boundary and confirm all required inputs are present.
  2. Select the documented execution path and prefer the simplest supported command or procedure.
  3. Produce the expected output using the documented file format, schema, or narrative structure.
  4. Run a final validation pass for completeness, consistency, and safety before returning the result.

Output Contract

  • Return a structured deliverable that is directly usable without reformatting.
  • If a file is produced, prefer a deterministic output name such as article_format_adjustment_result.md unless the skill documentation defines a better convention.
  • Include a short validation summary describing what was checked, what assumptions were made, and any remaining limitations.

Validation and Safety Rules

  • Validate required inputs before execution and stop early when mandatory fields or files are missing.
  • Do not fabricate measurements, references, findings, or conclusions that are not supported by the provided source material.
  • Emit a clear warning when credentials, privacy constraints, safety boundaries, or unsupported requests affect the result.
  • Keep the output safe, reproducible, and within the documented scope at all times.

Failure Handling

  • If validation fails, explain the exact missing field, file, or parameter and show the minimum fix required.
  • If an external dependency or script fails, surface the command path, likely cause, and the next recovery step.
  • If partial output is returned, label it clearly and identify which checks could not be completed.

Quick Validation

Run this minimal verification path before full execution when possible:

bash
python scripts/format_adjuster.py --help

Expected output format:

text
Result file: article_format_adjustment_result.md
Validation summary: PASS/FAIL with brief notes
Assumptions: explicit list if any

Deterministic Output Rules

  • Use the same section order for every supported request of this skill.
  • Keep output field names stable and do not rename documented keys across examples.
  • If a value is unavailable, emit an explicit placeholder instead of omitting the field.

Completion Checklist

  • Confirm all required inputs were present and valid.
  • Confirm the supported execution path completed without unresolved errors.
  • Confirm the final deliverable matches the documented format exactly.
  • Confirm assumptions, limitations, and warnings are surfaced explicitly.

© aipoch, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 28 other files (scripts, assets) in scientific-skills/Other/article-format-adjustment of aipoch/medical-research-skills.

  • SKILL.md
  • article-format-adjustment_audit_result_v1.json
  • assets/formats/apa.json
  • assets/formats/bmc.json
  • assets/formats/cell.json
  • assets/formats/cell_ffc.json
  • assets/formats/cell_reports.json
  • assets/formats/embo.json
  • assets/formats/faseb.json
  • assets/formats/ieee.json
  • assets/formats/jbc.json
  • assets/formats/jimmunol.json
  • assets/formats/lancet.json
  • assets/formats/molecular_cell.json
  • assets/formats/nature.json
  • assets/formats/nature_ffc.json
  • assets/formats/nejm.json
  • assets/formats/plos.json
  • assets/formats/pnas.json
  • … and 10 more

Open the folder on GitHubat commit 686e09d

Compare with similar skills

Article Format Adjustment next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Article Format Adjustment compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Article Format Adjustment this skillaipoch/medical-research-skills2k—~2.4kAutomated safety check: PassMIT
MineruNebutra/MinerU-Skill122—~504Automated safety check: PassMIT
MineruNebutra/MinerU-Skill122—~1.4kAutomated safety check: PassMIT
Lexoid CLIoidlabs-com/Lexoid109—~2kAutomated safety check: NotesApache-2.0
Lexoid Pythonoidlabs-com/Lexoid109—~3.5kAutomated safety check: NotesApache-2.0
Ambiguity Reportlawve-ai/awesome-legal-skills836—~4.6kAutomated safety check: PassApache-2.0

Similar skills

  • Mineru

    Nebutra/MinerU-Skill

    An AI-Native skill for parsing PDF / Office / image files into Markdown with MinerU — a fast, zero-config document parser for AI agents.

    122 GitHub stars~504 tokensUpdated 13 days ago
    Documents & OfficeAuto-check passed
  • Mineru

    Nebutra/MinerU-Skill

    An AI-Native skill for parsing PDF / Office / image files into clean Markdown with MinerU — a fast, zero-config document parser for AI agents.

    122 GitHub stars~1.4k tokensUpdated 13 days ago
    Documents & OfficeAuto-check passed
  • Lexoid CLI

    oidlabs-com/Lexoid

    Parse and convert documents (PDFs, images, web pages, DOCX/XLSX/PPTX, audio) from the terminal using the lexoid CLI.

    109 GitHub stars~2k tokensUpdated today
    Documents & OfficeAuto-check: notes
  • Lexoid Python

    oidlabs-com/Lexoid

    Parse and convert documents (PDFs, images, web pages, DOCX/XLSX/PPTX, audio) inside a Python program using the lexoid library.

    109 GitHub stars~3.5k tokensUpdated today
    Documents & OfficeAuto-check: notes
  • Ambiguity Report

    lawve-ai/awesome-legal-skills

    Turn an interpretive-ambiguity audit of a legal text — contract, statute, regulation, or judicial opinion — into a polished deliverable.

    836 GitHub stars~4.6k tokensUpdated 5 days ago
    Documents & OfficeAuto-check passed
  • Latex To Word Workflow

    hajimi-kun/latex-to-word-workflow

    Load when the user asks to convert an academic LaTeX manuscript, thesis, or report into an editable Word DOCX, adapt it to a Word template, preserve citations or cross-references, or diagnose a…

    128 GitHub stars~2.3k tokensUpdated 2 mo ago
    Documents & OfficeAuto-check passed

More from aipoch/medical-research-skills

All 567 skills in this repo
  • Academic Poster Generator

    aipoch/medical-research-skills

    Complete workflow for generating academic research posters from PDF literature; use when you need to extract paper content from PDFs and produce a LaTeX-based poster…

    2k GitHub stars~2.2k tokensUpdated 20 days ago
    Auto-check passed
  • Diagnostic Study Quality Assessment Quadas

    aipoch/medical-research-skills

    Analyzes clinical diagnostic accuracy studies for bias using the QUADAS-2 tool.

    2k GitHub stars~1.4k tokensUpdated 20 days ago
    Auto-check passed
  • Exploratory Data Analysis

    aipoch/medical-research-skills

    Perform comprehensive exploratory data analysis on scientific data files across 200+ file formats.

    2k GitHub stars~3.7k tokensUpdated 20 days ago
    Auto-check passed
  • Iso Certification

    aipoch/medical-research-skills

    A toolkit for preparing ISO 13485:2016 certification documentation for medical device QMS.

    2k GitHub stars~1.8k tokensUpdated 20 days ago
    Auto-check passed
  • Journal Skills

    aipoch/medical-research-skills

    Recommends target journals for manuscript submission by analyzing the paper topic/abstract and the journal distribution of similar PubMed literature; use when users ask for journal…

    2k GitHub stars~1.7k tokensUpdated 20 days ago
    Auto-check passed
  • Latex Posters

    aipoch/medical-research-skills

    Creates academic-poster writing packages for LaTeX using beamerposter, tikzposter, or baposter.

    2k GitHub stars~1.3k tokensUpdated 20 days ago
    Auto-check passed

Questions about Article Format Adjustment

What does Article Format Adjustment do?

Adjust academic paper formatting and convert between DOCX/LaTeX/Markdown when you need to meet a journal or school template requirement. Article Format Adjustment is an agent skill from aipoch/medical-research-skills. Adjust academic paper formatting and convert between DOCX/LaTeX/Markdown when you need to meet a journal or school template requirement.

When should I use Article Format Adjustment?

Article Format Adjustment fits situations like: tasks that involve Word documents; tasks that involve LaTeX.

How do I install Article Format Adjustment in Claude Code?

Run `npx skills add aipoch/medical-research-skills --skill article-format-adjustment -a claude-code`. Or copy the skill folder (scientific-skills/Other/article-format-adjustment in aipoch/medical-research-skills) into .claude/skills/article-format-adjustment in your project. Claude Code loads it when a task matches its description.

How do I install Article Format Adjustment in Codex?

Run `npx skills add aipoch/medical-research-skills --skill article-format-adjustment -a codex`. Or copy the skill folder (scientific-skills/Other/article-format-adjustment in aipoch/medical-research-skills) into .agents/skills/article-format-adjustment in your project. Codex loads it when a task matches its description.

Can I use Article Format Adjustment in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aipoch/medical-research-skills --skill article-format-adjustment -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/article-format-adjustment, .gemini/skills/article-format-adjustment, .github/skills/article-format-adjustment and .opencode/skills/article-format-adjustment in your project.

What does Article Format Adjustment need to run?

Going by SKILL.md and its folder, Article Format Adjustment needs the command-line tools its instructions call (python, choco, brew and apt). Our summary lists: Python 3.

Does Article Format Adjustment access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Article Format Adjustment safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Article Format Adjustment use?

Article Format Adjustment is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Article Format Adjustment use?

About 2.4k tokens (SKILL.md is roughly 9.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Article Format Adjustment?

Skills that share tags, products or a category with Article Format Adjustment: Mineru (Nebutra/MinerU-Skill, 122 stars), Mineru (Nebutra/MinerU-Skill, 122 stars), Lexoid CLI (oidlabs-com/Lexoid, 109 stars) and Lexoid Python (oidlabs-com/Lexoid, 109 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Article Format Adjustment?

aipoch (a GitHub organization) maintains it in aipoch/medical-research-skills, which has 1,974 GitHub stars. The repository holds 567 skills in this directory. The repository was last updated on September 17, 2026.

Source: aipoch/medical-research-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.