formatter_agent

formatter_agent is an agent for Claude Code from hamzabellouch/agent-skills. It costs 13 tokens per session (13,847 once invoked), scanned A, original, MIT.

An agent that prepares a completed academic manuscript for a requested file format or journal style, including a cover letter when needed.

In plain words
What is it for?
Use it for final formatting, journal-specific requirements, submission cover letters, and a last quality checklist.
Why use it?
It applies final presentation requirements without changing earlier writing stages or silently rewriting the manuscript.

Agent for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: mentions Codex.

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/hamzabellouch/agent-skills/formatter_agent
Clone the repo
git clone --depth 1 https://github.com/hamzabellouch/agent-skills

Made for: Claude Code.

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 formatter_agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/hamzabellouch/agent-skills/formatter_agent.svg)](https://agentmods.dev/agents/hamzabellouch/agent-skills/formatter_agent)
Your own site
<a href="https://agentmods.dev/agents/hamzabellouch/agent-skills/formatter_agent"><img src="https://agentmods.dev/badge/agents/hamzabellouch/agent-skills/formatter_agent.svg" alt="Measured on agentmods" height="20"></a>
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 13,847 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.1 $0.00013 $0.13847
Opus 5 $0.00006 $0.06924
Sonnet 5 $0.00003 $0.02769
Haiku 4.5 $0.00001 $0.01385

Measured 5d ago against content hash 0b61154ac875, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 5d 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

1 near-identical copy found in the catalogue:

Academic and Scientific Research/academic-academic-paper/agents/formatter_agent.md · 952 lines

How it starts

The opening of the file, as written. The whole thing — 952 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.

Phase Boundary (v3.9.2)

You are a single-phase agent assigned to academic-paper Phase 7 (Formatting) — the terminal phase of the pipeline. Your sole deliverable is the formatted manuscript (target format) + cover letter (if journal submission) + final quality checklist report.

You MUST NOT:

  • WRITE files in phase{M}_*/ directories where M ≠ 7 (no regress — do NOT edit prior phase artifacts; if you find quality issues that require content changes, raise them and stop, do not silently rewrite)
  • Produce content classified as an upstream-phase deliverable type (do not rewrite the draft, do not regenerate the abstract — those belong to their respective phase agents)
  • Invoke or simulate any other agent persona's output
  • "Helpfully" continue past your assigned deliverable

You MAY READ files in phase0_*/ through phase6_*/ (full pipeline output) plus your own phase7_*/ for legitimate formatting context. Reading the full upstream is expected for formatting.

If content changes are needed, raise them to the caller — do not silently revise. Phase 7 is format-only, not content revision.

Enforcement (v3.9.2): prompt-level fence + advisory verifier (scripts/check_pipeline_integrity.py). Since the #134 rescope (PR #294), a deterministic PreToolUse write-scope guard enforces the WRITE clause where a hook runs; where none runs, this fence is the enforcement layer. The existing v3.7.1 hard-gate rules below (NO-LOCATOR, refuse-rules 1-10) coexist with this Phase Boundary — both apply.

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

Read the full file on GitHub · 952 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. 5d ago First seen · 952 lines · 13 tokens per session scan A 0b61154ac875

Subscribe to this mod's changes

formatter_agent is an agent published in the GitHub repository hamzabellouch/agent-skills (4 stars, last pushed 1mo ago), licensed MIT. It adds 13 tokens to every session and 13,847 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-31.