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.
npx skills add OpenRaiser/PaperFit --skill template-migratorgit clone --depth 1 https://github.com/OpenRaiser/PaperFitWrote 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.
[](https://agentmods.dev/skills/openraiser/paperfit/template-migrator)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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.
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": "核对用户页数政策并比较保持内容的布局候选"
}
}
迁移流程
第一步:加载模板配置
- 从
config/templates.yaml读取目标模板的完整配置。 - 配置项包括:
documentclass:如\documentclass[10pt,twocolumn]{article}或\documentclass{iclr2025}column_type:single或doubledefault_figure_width:\linewidth或\textwidthexpected_pages:配置中的页数参考值;不能代替用户指定的 exact/at_most、正文/参考文献/附录范围或当前投稿规则forbidden_packages:与新模板冲突的宏包列表required_packages:新模板必须加载的宏包
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.
- 26d ago Changed · +4 lines · +18 tokens per session 46c28b91ef96
- 2mo ago Changed · +2 lines 65e37172920a
- 3mo ago First seen · 259 lines · 0 tokens per session scan A f2c505ef6e02
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.
template-migrator compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| template-migratorOpenRaiser/PaperFit | Skill | 337 | 26d ago | MIT | A | 18 | Claude Code |
| manimce-best-practicescalesthio/OpenMontage | Skill | 84k | 14d ago | AGPL-3.0 | A | 149 | Claude Code, Codex |
| setup-arxiv-mcpNeoLabHQ/context-engineering-kit | Skill | 1.9k | 3mo ago | GPL-3.0 | A | 19 | Claude Code, Codex |
| sn-search-academicOpenSenseNova/SenseNova-Skills | Skill | 6.1k | 4d ago | MIT | A | 31 | Claude Code, Codex |
| peer-reviewxintaofei/codeg | Skill | 4.8k | yesterday | Apache-2.0 | A | 71 | Claude Code |
| datamolsynthetic-sciences/openscience | Skill | 4.5k | yesterday | Apache-2.0 | A | 67 | Claude Code, Codex |
| clinicaltrials-databasesynthetic-sciences/openscience | Skill | 4.5k | yesterday | Apache-2.0 | A | 47 | Claude Code, Codex |