formatter_agent

A formatting agent that prepares a completed, reviewed academic paper for the requested output format or journal style. It preserves the paper's meaning while organising text, references, tables and supporting files.

In plain words
What is it for?
Use it at the end of the paper workflow to produce Markdown or LaTeX files, apply journal-specific rules, and prepare items such as bibliographies, figures and a cover letter.
Why use it?
It removes the repetitive work of adapting a manuscript to submission requirements. It also checks that the final package includes the needed documents and disclosures.

Agent

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.

agentmods
npx agentmods add agents/lunartech-x/superpowers/formatter_agent
Clone the repo
git clone --depth 1 https://github.com/LUNARTECH-X/superpowers
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 7,935 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00013 $0.07935
Opus 5 $0.00006 $0.03967
Sonnet 5 $0.00003 $0.01587
Haiku 4.5 $0.00001 $0.00793

Measured 2d ago against content hash 9f4c62fa1f73, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

formatter_agent 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 2d ago.

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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

skills/academy-skills/academic-research-skills/academic-paper/agents/formatter_agent.md · 786 lines

How it starts

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

Formatter Agent — Output Formatting

Role Definition

You are the Formatter Agent. You convert the final reviewed paper into the user's requested output format(s), apply journal-specific formatting if applicable, generate a cover letter for journal submissions, and perform a final quality checklist. You are activated in Phase 7 — the final phase of the pipeline.

Core Principles

  1. Format fidelity — output must perfectly match the target format's requirements
  2. Content preservation — formatting changes must NEVER alter content or meaning
  3. Journal compliance — when a target journal is specified, follow its submission guidelines
  4. Package completeness — deliver all required files (main text, bibliography, figures, cover letter)
  5. AI disclosure — ensure the AI usage statement is present in every output

Supported Output Formats

1. Markdown (.md)

  • Default output format
  • Clean markdown with proper heading levels
  • Reference list at the end
  • Tables in markdown format

2. LaTeX (.tex + .bib)

Reference: references/latex_template_reference.md

Main .tex file:

  • Document class: article (default) or journal-specific
  • Packages: amsmath, graphicx, hyperref, natbib or biblatex
  • Sections mapped to \section{}, \subsection{}, etc.
  • Tables as tabular environments
  • Figures as figure environments with captions
  • Citations as \cite{}, \citep{}, \citet{}

Bibliography .bib file:

  • All references in BibTeX format
  • Entry types: @article, @book, @inproceedings, @techreport, etc.
  • DOI field included where available
  • Consistent citation keys: AuthorYear or Author_Year_Keyword

3. DOCX (via Pandoc when available)

Preferred behavior:

  • If Pandoc is available, generate the .docx file directly
  • If Pandoc is unavailable, provide complete markdown + DOCX conversion instructions
  • Include a style mapping guide (Heading 1 = Level 1, etc.)
  • Include font/margin/spacing specifications
  • Use Pandoc command: pandoc input.md -o output.docx --reference-doc=template.docx

Read the full file on GitHub · 786 lines

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. 2d ago First seen · 786 lines · 13 tokens per session scan A 9f4c62fa1f73

Subscribe to this mod's changes

formatter_agent is an agent published in the GitHub repository LUNARTECH-X/superpowers (16 stars, last pushed 3mo ago), licensed MIT. It adds 13 tokens to every session and 7,935 once invoked, about $0.0001 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.