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 overflow-repairgit 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/overflow-repair)<a href="https://agentmods.dev/skills/openraiser/paperfit/overflow-repair"><img src="https://agentmods.dev/badge/skills/openraiser/paperfit/overflow-repair/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/overflow-repair"><img src="https://agentmods.dev/badge/skills/openraiser/paperfit/overflow-repair.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.00016 | $0.03044 |
| Opus 5.5 | $0.00006 | $0.01218 |
| Sonnet 5.5 | $0.00003 | $0.00609 |
| Haiku 4.5 | $0.00002 | $0.00304 |
Grade A, and why
overflow-repair 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 1mo 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 — 312 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Overflow Repair Skill
概述
本技能专门处理 Category D:溢出与对齐缺陷,包括:
- D1:Overfull hbox(段落文本、表格单元格、公式溢出栏宽)
- D2:长公式未合理断行
- D3:URL/长标识符溢出
该技能由 code-surgeon-agent 调用,执行对 .tex 源码的精确修改,以消除或缓解溢出问题。所有修复遵循 最小修改原则,不改变学术内容。
Source-changing 边界:在 PaperFit runtime 中,本技能默认只贡献 repair plan 和风险说明;只有显式 --apply 或宿主等价授权存在时才可写回源码。多轮写回必须同时显式启用 --apply --max-rounds N,并且每轮通过 approval carry-forward、artifact freshness、candidate approval scope gate 和 gatekeeper CONTINUE 后才能继续。
适用场景
当 layout-detective-agent 或 rule-engine-agent 报告中出现以下缺陷 ID 时,路由至本技能:
| 缺陷 ID | 描述 | 优先级 |
|---|---|---|
| D1 | Overfull hbox(段落/表格/公式) | High |
| D2 | 长公式未断行 | High |
| D3 | URL/长标识符溢出 | Medium |
输入规范
| 输入项 | 来源 | 说明 |
|---|---|---|
主 .tex 文件路径 |
项目上下文 | 需修改的源文件 |
| 规则引擎报告 | rule-engine-agent 输出 |
包含溢出位置(行号)、溢出量、对象 |
| 排版侦探报告 | layout-detective-agent 输出 |
包含视觉确认的溢出页面和对象 |
| 当前编译日志 | .log 文件 |
用于验证修复后溢出是否消除 |
输出规范
修改完成后,必须返回以下信息:
{
"skill": "overflow-repair",
"status": "success | partial | failed",
"modified_files": ["main.tex", "tables/table1.tex"],
"changes": [
{
"defect_id": "D1",
"object": "Table 2",
"action": "替换 tabular 为 tabularx,设置列宽比例",
"before": "\\begin{tabular}{|l|c|c|}",
"after": "\\begin{tabularx}{\\linewidth}{|l|X|X|}"
}
],
"unresolved": []
}
修复策略
策略选择流程
- 根据日志和视觉报告定位溢出位置与类型(段落/表格/公式/URL)。
- 按照下文各类型的修复策略依次尝试,从最不侵入的方案开始。
- 每次修改后,通知
orchestrator-agent触发重新编译以验证效果。 - 若当前策略无效,回退并尝试下一策略。
D1:段落文本溢出
问题特征:
- 日志:
Overfull \hbox (Xpt too wide) in paragraph at lines A--B - 视觉:某行文本伸出右边界
修复策略(按优先级):
-
引入断词点
在溢出单词的合适位置添加\-连字符,使 LaTeX 能在该处断行。% 修改前 This is a verylongwordthatdoesnotbreak. % 修改后 This is a very\-long\-word\-that\-does\-not\-break. -
调整段落级容差
在段落前临时增加\emergencystretch或调整\tolerance。{\emergencystretch=1em % 允许额外拉伸 1em This is the problematic paragraph content... }注意:修改后需恢复默认值,避免影响全局。
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.
- 1mo ago Changed · +5 lines · +16 tokens per session 185c5554bf99
- 2mo ago Changed · +2 lines 04ecdac3f634
- 3mo ago First seen · 305 lines · 0 tokens per session scan A 6debe42611c8
overflow-repair is a skill published in the GitHub repository OpenRaiser/PaperFit (338 stars, last pushed 1mo ago), licensed MIT. It adds 16 tokens to every session and 3,044 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.
overflow-repair compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| overflow-repairOpenRaiser/PaperFit | Skill | 338 | 1mo ago | MIT | A | 16 | Claude Code |
| speech-to-textcalesthio/OpenMontage | Skill | 84k | 18d ago | AGPL-3.0 | A | 37 | Claude Code, Codex |
| spreadsheetssenoff/xlsx-for-ai | Skill | 6 | 6d ago | MIT | A | 99 | Claude Code |
| pdfAlenryuichi/openmemory-plus | Skill | 20 | 9mo ago | MIT | A | 50 | Claude Code, Codex |
| doc-coauthoringAlenryuichi/openmemory-plus | Skill | 20 | 9mo ago | MIT | A | 77 | Claude Code, Codex |
| pptxAlenryuichi/openmemory-plus | Skill | 20 | 9mo ago | MIT | B | 62 | Claude Code, Codex |
| pdfagentscope-ai/QwenPaw | Skill | 38k | today | Apache-2.0 | A | 95 | Claude Code, Codex |