overflow-repair

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

A guide for fixing LaTeX content that extends beyond its available line or column width. It covers paragraphs, table cells, formulas, URLs, and long identifiers.

In plain words
What is it for?
Repairing overfull text boxes, breaking long formulas, fitting tables to a column, and preventing long URLs or identifiers from running past the page edge.
Why use it?
Overflow can create clipped or badly aligned paper layouts. The guide uses targeted source changes and checks compiler logs and visual reports to confirm the problem is reduced or fixed without changing academic content.

Skill for Claude Code

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

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

Good fit Repairing overfull text boxes, breaking long formulas, fitting tables to a column, and preventing long URLs or identifiers from running past the page edge.

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

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 overflow-repair

README.md
[![agentmods](https://agentmods.dev/badge/skills/openraiser/paperfit/overflow-repair/github.svg)](https://agentmods.dev/skills/openraiser/paperfit/overflow-repair)
Your own site
<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.

agentmods 80×15 button for overflow-repair

Your own site · 80×15
<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>
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,931 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.00000 $0.02931
Opus 5 $0.00000 $0.01465
Sonnet 5 $0.00000 $0.00586
Haiku 4.5 $0.00000 $0.00293

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

Security

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 9d 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/overflow-repair/SKILL.md · 305 lines

How it starts

The opening of the file, as written. The whole thing — 305 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 源码的精确修改,以消除或缓解溢出问题。所有修复遵循 最小修改原则,不改变学术内容。


适用场景

layout-detective-agentrule-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": []
}

修复策略

策略选择流程

  1. 根据日志和视觉报告定位溢出位置与类型(段落/表格/公式/URL)。
  2. 按照下文各类型的修复策略依次尝试,从最不侵入的方案开始。
  3. 每次修改后,通知 orchestrator-agent 触发重新编译以验证效果。
  4. 若当前策略无效,回退并尝试下一策略。

D1:段落文本溢出

问题特征

  • 日志:Overfull \hbox (Xpt too wide) in paragraph at lines A--B
  • 视觉:某行文本伸出右边界

修复策略(按优先级)

  1. 引入断词点
    在溢出单词的合适位置添加 \- 连字符,使 LaTeX 能在该处断行。

    % 修改前
    This is a verylongwordthatdoesnotbreak.
    % 修改后
    This is a very\-long\-word\-that\-does\-not\-break.
    
  2. 调整段落级容差
    在段落前临时增加 \emergencystretch 或调整 \tolerance

    {\emergencystretch=1em  % 允许额外拉伸 1em
     This is the problematic paragraph content...
    }
    

    注意:修改后需恢复默认值,避免影响全局。

  3. 局部微调措辞(需 semantic-polish-agent 介入)
    若排版手段无法解决,可替换为稍短的近义词或调整语序。

    % 修改前
    the implementation of the proposed methodology
    % 修改后
    the implementation of our method
    

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

Subscribe to this mod's changes

overflow-repair 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,931 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.