space-util-fixer

space-util-fixer is a skill for Claude Code from OpenRaiser/PaperFit. It costs 0 tokens per session (3,446 once invoked), scanned A, original, MIT.

A LaTeX layout helper for improving how content fills pages and columns. It addresses issues such as isolated lines, large blank areas, incorrect page counts, and uneven columns in two-column papers.

In plain words
What is it for?
Use it to balance page and column space, meet a target page count, reduce isolated lines, and correct large gaps after compiling and reviewing the PDF.
Why use it?
It reduces awkward page breaks and wasted space that make a paper look unfinished or fail a required page limit.

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 Use it to balance page and column space, meet a target page count, reduce isolated lines, and correct large gaps after compiling and reviewing the PDF.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openraiser/paperfit/space-util-fixer
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 space-util-fixer
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 space-util-fixer

README.md
[![agentmods](https://agentmods.dev/badge/skills/openraiser/paperfit/space-util-fixer/github.svg)](https://agentmods.dev/skills/openraiser/paperfit/space-util-fixer)
Your own site
<a href="https://agentmods.dev/skills/openraiser/paperfit/space-util-fixer"><img src="https://agentmods.dev/badge/skills/openraiser/paperfit/space-util-fixer/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 space-util-fixer

Your own site · 80×15
<a href="https://agentmods.dev/skills/openraiser/paperfit/space-util-fixer"><img src="https://agentmods.dev/badge/skills/openraiser/paperfit/space-util-fixer.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 3,446 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.03446
Opus 5.5 $0.00000 $0.01378
Sonnet 5.5 $0.00000 $0.00689
Haiku 4.5 $0.00000 $0.00345

Measured 1mo ago against content hash 4e2e79f565a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

space-util-fixer 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.

skills/space-util-fixer/SKILL.md · 327 lines

How it starts

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

Space Utilization Fixer Skill

概述

本技能专门处理 Category A:空间利用缺陷,包括:

  • A1:孤行/寡行(Widow/Orphan Lines)
  • A2:末页大面积留白(Excessive Trailing Whitespace)
  • A3:页数预算违反(Page Budget Violation)
  • A4:双栏末页左右栏高度不齐(Unbalanced Column Heights)
  • A5:双栏页内列竖向空洞(栏内中段大块无图无表空白,常与 figure*/[H]/不当断页有关)

该技能由 code-surgeon-agent 或 semantic-polish-agent 调用,通过对段落级排版控制、浮动体调度和最小语义改写的组合运用,优化页面空间分配,使文档达到专业级的视觉均衡。

空间利用问题的修复常常需要多轮迭代,因为局部调整会影响全局分页。因此,每次修改后必须重新编译并审查页图。

Source-changing 边界:本技能默认只生成空间利用 repair plan、风险和 approval 状态;只有显式 --apply 或宿主等价授权存在时才写回源码。多轮写回必须同时显式启用 --apply --max-rounds N,并由 runtime 的 second_round_apply_readiness、approval carry-forward、artifact freshness、candidate approval scope gate 和 gatekeeper CONTINUE 控制。


适用场景

缺陷 ID 描述 优先级 是否允许语义修改
A1 孤行/寡行 High 是(最后手段)
A2 末页大面积留白 High 是(最后手段)
A3 页数预算违反 Critical 是(最后手段)
A4 双栏末页左右栏高度不齐 Medium 否
A5 双栏页内列竖向空洞(非末页、栏内大块无正文空白) High 视情况

输入规范

输入项 来源 说明
主 .tex 文件路径 项目上下文 需修改的源文件
排版侦探报告 layout-detective-agent 输出 包含 A 类缺陷的页码和描述
目标页数(若适用) 用户约束 A3 修复必须提供
模板类型 templates.yaml 或上下文 单栏/双栏

输出规范

{
  "skill": "space-util-fixer",
  "status": "success | partial | failed",
  "modified_files": ["main.tex"],
  "changes": [
    {
      "defect_id": "A1",
      "object": "第4页顶部孤行",
      "action": "在段落前添加 \\looseness=-1",
      "before_snippet": "The proposed method achieves...",
      "after_snippet": "{\\looseness=-1 The proposed method achieves...}"
    }
  ],
  "unresolved": []
}

修复策略

通用原则

  1. 先排版,后语义:优先使用 LaTeX 原生的排版控制命令,仅在无效时才考虑语义级改写。
  2. 局部修改,全局验证:改动一段可能影响后续多页分页,必须完整编译并检查全文档。
  3. 避免硬性分页:禁止滥用 \newpage 或 \clearpage 来“凑页数”,这会破坏文档结构的自然性。

A1:孤行/寡行修复

问题特征:

  • 段落最后一行单独出现在下一页顶部(孤行)。
  • 段落第一行单独留在上一页底部(寡行)。
  • 段落末尾仅含 1-3 个单词的短行(段尾小尾巴)。

修复策略(严格按优先级顺序尝试):

策略 1:段落级收紧 (\looseness=-1)

Read the full file on GitHub · 327 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. 1mo ago Changed · +3 lines 4e2e79f565a6
  2. 1mo ago First seen · 324 lines · 0 tokens per session scan A 842866c1f0d0

Subscribe to this mod's changes

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

figures

Makes publication-quality plots from data with matplotlib, learning curves, scaling laws, benchmark and ablation comparisons, Pareto trade-offs, heatmaps and confusion matrices, sized for the page, vector, with uncertainty shown. Use whenever results are plotted, charted or visualized for a paper, report or answer, or…

synthetic-sciences/openscience · 99 tokens

paper-length-gate

Deterministic artifact-backed manuscript readiness gate for meta-paper-write. Validates the workspace LaTeX artifact before compilation while leaving final page-count enforcement to compilepdf.

opensquilla/opensquilla · 38 tokens

paper-plot-stub

Plot a results CSV (x, ybaseline, yours) as a two-line matplotlib chart and write a PDF. Demo-only.

opensquilla/opensquilla · 35 tokens

speech-to-text

Transcribe audio to text using ElevenLabs Scribe v2. Use when converting audio/video to text, generating subtitles, transcribing meetings, or processing spoken content.

calesthio/OpenMontage · 37 tokens

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

6verity

A final-checking workflow for mathematical modelling competition papers, using either Typst or LaTeX to build the document. It checks the finished paper and its supporting files before submission.

jihe520/MathModelAgent · 76 tokens