template-migrator

template-migrator is a skill for Claude Code from OpenRaiser/PaperFit. It costs 18 tokens per session (3,074 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 — 9 skills, 9 commands, 6 agents shipped together

Good fit Adapting figures between one- and two-column layouts, redistributing content for a new page limit, and adjusting template-specific commands and packages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openraiser/paperfit/template-migrator
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 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 9 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/github.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/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 template-migrator

Your own site · 80×15
<a href="https://agentmods.dev/skills/openraiser/paperfit/template-migrator"><img src="https://agentmods.dev/badge/skills/openraiser/paperfit/template-migrator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,074 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00018 $0.03074
Opus 5.5 $0.00007 $0.01230
Sonnet 5.5 $0.00004 $0.00615
Haiku 4.5 $0.00002 $0.00307

Measured 26d ago against content hash 46c28b91ef96, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 26d 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 · 265 lines

How it starts

The opening of the file, as written. The whole thing — 265 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 最具差异化价值的能力,直接解决了科研工作者切换会议投稿时的真实痛点。

能力边界:当前 typed runtime 没有自动模板迁移 executor,可选自动批处理的 --apply 必须报告不支持,不能偷偷回退到旧脚本。用户已授权迁移时,宿主可以用原生编辑工具完成并验证迁移,无需等待自动 executor。先核对建议:请你看看这是否是对的;保留原模板/源码及可回退候选,确认目标模板、当前编译页和内容。

适用场景

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

输入规范

输入项 来源 说明
主 .tex 文件路径 项目上下文 需修改的源文件
目标模板名称 用户命令参数 如 ECCV2024、ICLR2025
模板配置 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": "核对用户页数政策并比较保持内容的布局候选"
  }
}

迁移流程

第一步:加载模板配置

  1. 从 config/templates.yaml 读取目标模板的完整配置。
  2. 配置项包括:
    • documentclass:如 \documentclass[10pt,twocolumn]{article} 或 \documentclass{iclr2025}
    • column_type:single 或 double
    • default_figure_width:\linewidth 或 \textwidth
    • expected_pages:配置中的页数参考值;不能代替用户指定的 exact/at_most、正文/参考文献/附录范围或当前投稿规则
    • forbidden_packages:与新模板冲突的宏包列表
    • required_packages:新模板必须加载的宏包

Read the full file on GitHub · 265 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. 26d ago Changed · +4 lines · +18 tokens per session 46c28b91ef96
  2. 2mo ago Changed · +2 lines 65e37172920a
  3. 3mo 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 (337 stars, last pushed 26d ago), licensed MIT. It adds 18 tokens to every session and 3,074 once invoked, about $0.0001 per session on Opus 5.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

template-migrator compared with skills from other repositories

template-migrator next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
template-migratorOpenRaiser/PaperFitSkill33726d agoMITA18Claude Code
manimce-best-practicescalesthio/OpenMontageSkill84k14d agoAGPL-3.0A149Claude Code, Codex
setup-arxiv-mcpNeoLabHQ/context-engineering-kitSkill1.9k3mo agoGPL-3.0A19Claude Code, Codex
sn-search-academicOpenSenseNova/SenseNova-SkillsSkill6.1k4d agoMITA31Claude Code, Codex
peer-reviewxintaofei/codegSkill4.8kyesterdayApache-2.0A71Claude Code
datamolsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A67Claude Code, Codex
clinicaltrials-databasesynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A47Claude Code, Codex