template-migrator

template-migrator is a skill for Claude Code from OpenRaiser/PaperFit. It costs 0 tokens per session (2,904 once invoked), scanned A, original, MIT.

A paper-template migration guide for moving a LaTeX research paper from one publication format to another. LaTeX is a system for writing and typesetting documents in source files.

In plain words
What is it for?
Adapting figures between one- and two-column layouts, redistributing content for a new page limit, and adjusting template-specific commands and packages.
Why use it?
Changing conference or journal templates can alter column widths, page limits, figure sizes, and supported commands. This guide addresses those layout and compatibility problems while avoiding changes to the paper's meaning where possible.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the paperfit plugin — 8 skills, 9 commands, 6 agents shipped together

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 skills/openraiser/paperfit/template-migrator
Any agent
npx skills add OpenRaiser/PaperFit --skill template-migrator
Clone the repo
git clone --depth 1 https://github.com/OpenRaiser/PaperFit

Made for: Claude Code.

Or install paperfit, the plugin that ships this one along with the rest of its 8 skills, 9 commands, 6 agents.

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 template-migrator

README.md
[![agentmods](https://agentmods.dev/badge/skills/openraiser/paperfit/template-migrator.svg)](https://agentmods.dev/skills/openraiser/paperfit/template-migrator)
Your own site
<a href="https://agentmods.dev/skills/openraiser/paperfit/template-migrator"><img src="https://agentmods.dev/badge/skills/openraiser/paperfit/template-migrator.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,904 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.00000 $0.02904
Opus 5 $0.00000 $0.01452
Sonnet 5 $0.00000 $0.00581
Haiku 4.5 $0.00000 $0.00290

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

Security

Grade A, and why

template-migrator 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 6d 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.

skills/template-migrator/SKILL.md · 259 lines

How it starts

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

Template Migrator Skill

概述

本技能专门处理 Category E:跨模板迁移缺陷,包括:

  • E1:单栏↔双栏图表尺寸失配
  • E2:页数预算不匹配(如 9 页→14 页的内容重分布)
  • E3:模板特定宏兼容性

该技能由 code-surgeon-agent/migrate-template 命令触发时调用,负责将一篇论文从原模板平滑迁移至目标模板,并自动适配图表尺寸、页数预算和宏包兼容性。这是 PaperFit 最具差异化价值的能力,直接解决了科研工作者切换会议投稿时的真实痛点。

适用场景

缺陷 ID 描述 优先级 是否允许语义修改
E1 单栏↔双栏图表尺寸失配 Critical
E2 页数预算不匹配 Critical 是(最后手段)
E3 模板特定宏兼容性 Critical

输入规范

输入项 来源 说明
.tex 文件路径 项目上下文 需修改的源文件
目标模板名称 用户命令参数 ECCV2024ICLR2025
模板配置 config/templates.yaml 包含目标模板的栏数、默认字号、页宽、预期页数等
原模板信息 自动检测或用户指定 当前 \documentclass 及主要宏包
排版侦探报告 layout-detective-agent 迁移后首次编译的 E 类缺陷列表

输出规范

{
  "skill": "template-migrator",
  "status": "success | partial | failed",
  "modified_files": ["main.tex", "figures/fig1.tex"],
  "changes": [
    {
      "defect_id": "E1",
      "object": "Figure 1",
      "action": "单栏图改为跨栏图",
      "before": "\\begin{figure}\n\\includegraphics[width=\\linewidth]{fig1.pdf}\n\\end{figure}",
      "after": "\\begin{figure*}\n\\includegraphics[width=\\textwidth]{fig1.pdf}\n\\end{figure*}"
    }
  ],
  "macro_fixes": [
    {
      "issue": "\\theoremstyle undefined in ECCV",
      "fix": "改用 \\newtheorem 直接定义"
    }
  ],
  "unresolved": [],
  "page_budget_status": {
    "current_pages": 9,
    "target_pages": 14,
    "gap": 5,
    "action_taken": "触发 adjust-length 子流程"
  }
}

迁移流程

第一步:加载模板配置

  1. config/templates.yaml 读取目标模板的完整配置。
  2. 配置项包括:
    • documentclass:如 \documentclass[10pt,twocolumn]{article}\documentclass{iclr2025}
    • column_typesingledouble
    • default_figure_width\linewidth\textwidth
    • expected_pages:该会议/期刊的典型页数(如 ICLR 9 页,ECCV 14 页)
    • forbidden_packages:与新模板冲突的宏包列表
    • required_packages:新模板必须加载的宏包

示例配置(config/templates.yaml 片段):

ECCV2024:
  documentclass: "\documentclass[10pt,twocolumn]{article}"
  column_type: double
  default_figure_width: "\linewidth"
  expected_pages: 14
  forbidden_packages: ["amsthm", "algorithm2e"]
  required_packages: ["graphicx", "amsmath", "amssymb"]
  float_behavior: "figures may use figure* for wide content"

Read the full file on GitHub · 259 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. 6d ago First seen · 259 lines · 0 tokens per session scan A f2c505ef6e02

Subscribe to this mod's changes

template-migrator is a skill published in the GitHub repository OpenRaiser/PaperFit (333 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,904 tokens. 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

manimce-best-practices

Trigger when: (1) User mentions "manim" or "Manim Community" or "ManimCE", (2) Code contains from manim import , (3) User runs manim CLI commands, (4) Working with Scene, MathTex, Create(), or ManimCE-specific classes. Best practices for Manim Community Edition - the community-maintained Python animation engine.…

calesthio/OpenMontage · 149 tokens

setup-arxiv-mcp

Guide for setup arXiv paper search MCP server using Docker MCP.

NeoLabHQ/context-engineering-kit · 19 tokens

sn-search-academic

用于学术调研、论文精读、相关工作梳理、百科知识查询和引用链追溯。.

OpenSenseNova/SenseNova-Skills · 31 tokens

datamol

Pythonic wrapper around RDKit with simplified interface and sensible defaults. Preferred for standard drug discovery including SMILES parsing, standardization, descriptors, fingerprints, clustering, 3D conformers, parallel processing. Returns native rdkit.Chem.Mol objects. For advanced control or custom parameters…

synthetic-sciences/openscience · 67 tokens

clinicaltrials-database

Query ClinicalTrials.gov via API v2. Search trials by condition, drug, location, status, or phase. Retrieve trial details by NCT ID, export data, for clinical research and patient matching.

synthetic-sciences/openscience · 47 tokens

openalex-database

Query and analyze scholarly literature using the OpenAlex database. This skill should be used when searching for academic papers, analyzing research trends, finding works by authors or institutions, tracking citations, discovering open access publications, or conducting bibliometric analysis across 240M+ scholarly…

synthetic-sciences/openscience · 76 tokens